diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-10-22 13:42:22 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-11-13 18:53:12 +0000 |
commit | 24d1565789cbd31ce383ac789bb6d69116a77a09 (patch) | |
tree | f5b4e15ac728ec08519146672ad35d1f12c88539 /tests/auto/tools/uic/baseline/browserwidget.ui.h | |
parent | dbffff0116f9618902cf4e9615a0ca6a7a6db9ed (diff) |
uic: Use the Qt configure system when generating code
Replace the generation of #ifdef's for the macros by QT_CONFIG
checks. Implement it using streamable classes to make it easier
to switch the output language later.
Task-number: PYSIDE-797
Change-Id: I28b5ed3ec80cd525a3df0cd54d9be4f09149cde4
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'tests/auto/tools/uic/baseline/browserwidget.ui.h')
-rw-r--r-- | tests/auto/tools/uic/baseline/browserwidget.ui.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/tools/uic/baseline/browserwidget.ui.h b/tests/auto/tools/uic/baseline/browserwidget.ui.h index 3db93c34cf..7b666858b0 100644 --- a/tests/auto/tools/uic/baseline/browserwidget.ui.h +++ b/tests/auto/tools/uic/baseline/browserwidget.ui.h @@ -157,13 +157,13 @@ public: { Browser->setWindowTitle(QApplication::translate("Browser", "Qt SQL Browser", nullptr)); insertRowAction->setText(QApplication::translate("Browser", "&Insert Row", nullptr)); -#ifndef QT_NO_STATUSTIP +#if QT_CONFIG(statustip) insertRowAction->setStatusTip(QApplication::translate("Browser", "Inserts a new Row", nullptr)); -#endif // QT_NO_STATUSTIP +#endif // QT_CONFIG(statustip) deleteRowAction->setText(QApplication::translate("Browser", "&Delete Row", nullptr)); -#ifndef QT_NO_STATUSTIP +#if QT_CONFIG(statustip) deleteRowAction->setStatusTip(QApplication::translate("Browser", "Deletes the current Row", nullptr)); -#endif // QT_NO_STATUSTIP +#endif // QT_CONFIG(statustip) groupBox->setTitle(QApplication::translate("Browser", "SQL Query", nullptr)); clearButton->setText(QApplication::translate("Browser", "&Clear", nullptr)); submitButton->setText(QApplication::translate("Browser", "&Submit", nullptr)); |