Enable QT_NO_CAST_FROM_ASCII & QT_NO_CAST_TO_ASCII

* Added a couple of utility macros to help with the conversion. lit() is
  paired with tr() for untranslated text.
* QFormatStr is more explicitly for non-textual formatting strings.
* Both are just #define'd to QStringLiteral()
This commit is contained in:
baldurk
2017-05-02 22:58:12 +01:00
parent 474ba91d8b
commit 0ecc6ca877
50 changed files with 2076 additions and 1921 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ BufferFormatSpecifier::BufferFormatSpecifier(QWidget *parent)
QObject::connect(ui->toggleHelp, &QPushButton::clicked, this, &BufferFormatSpecifier::toggleHelp);
setErrors("");
setErrors(QString());
ui->formatText->setFont(QFontDatabase::systemFont(QFontDatabase::FixedFont));
}
@@ -81,6 +81,6 @@ void BufferFormatSpecifier::showHelp(bool help)
void BufferFormatSpecifier::on_apply_clicked()
{
setErrors("");
setErrors(QString());
emit processFormat(ui->formatText->toPlainText());
}