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:
parent
f0402bb3d3
commit
61f81b824d
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
<item>
|
||||
<widget class="QLabel" name="warningLabel">
|
||||
<property name="text">
|
||||
<string><html><head/><body><p><span style=" font-weight:600; color:#ff0000;">IMPORTANT NOTE</span></p><p><span style=" color:#ff0000;">Unless you </span><span style=" font-weight:600; color:#ff0000;">really</span><span style=" color:#ff0000;"> know what you are doing, please do </span><span style=" font-weight:600; color:#ff0000;">not</span><span style=" color:#ff0000;"> change anything here. Changes made here may lead to problems with qTox, and even to loss of your data, e.g. history.</span></p></body></html></string>
|
||||
<string notr="true">{IMPORTANT NOTE HERE}</string>
|
||||
</property>
|
||||
<property name="textFormat">
|
||||
<enum>Qt::RichText</enum>
|
||||
|
|
Loading…
Reference in New Issue
Block a user