1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

refactor: Remove html tags from 'IMPORTANT NOTE'

This commit is contained in:
Diadlo 2016-08-18 23:50:11 +03:00
parent f0402bb3d3
commit 61f81b824d
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727
2 changed files with 14 additions and 1 deletions

View File

@ -57,6 +57,19 @@ AdvancedForm::AdvancedForm()
bodyUI->proxyType->setCurrentIndex(index);
on_proxyType_currentIndexChanged(index);
QString warningBody = tr("Unless you %1 know what you are doing, "
"please do %2 change anything here. Changes "
"made here may lead to problems with qTox, and even "
"to loss of your data, e.g. history.</p>")
.arg(QString("<b>%1</b>").arg(tr("really")))
.arg(QString("<b>%1</b>").arg(tr("not")));
QString warning = QString("<div style=\"color:#ff0000;\">"
"<p><b>%1</b></p><p>%2</p></div>")
.arg(tr("IMPORTANT NOTE")).arg(warningBody);
bodyUI->warningLabel->setText(warning);
eventsInit();
Translator::registerHandler(std::bind(&AdvancedForm::retranslateUi, this), this);
}

View File

@ -32,7 +32,7 @@
<item>
<widget class="QLabel" name="warningLabel">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600; color:#ff0000;&quot;&gt;IMPORTANT NOTE&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot; color:#ff0000;&quot;&gt;Unless you &lt;/span&gt;&lt;span style=&quot; font-weight:600; color:#ff0000;&quot;&gt;really&lt;/span&gt;&lt;span style=&quot; color:#ff0000;&quot;&gt; know what you are doing, please do &lt;/span&gt;&lt;span style=&quot; font-weight:600; color:#ff0000;&quot;&gt;not&lt;/span&gt;&lt;span style=&quot; color:#ff0000;&quot;&gt; change anything here. Changes made here may lead to problems with qTox, and even to loss of your data, e.g. history.&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string notr="true">{IMPORTANT NOTE HERE}</string>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>