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/qtresourceeditordialog.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/qtresourceeditordialog.ui.h')
-rw-r--r-- | tests/auto/tools/uic/baseline/qtresourceeditordialog.ui.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/auto/tools/uic/baseline/qtresourceeditordialog.ui.h b/tests/auto/tools/uic/baseline/qtresourceeditordialog.ui.h index 6a8c9c7172..b97833dd63 100644 --- a/tests/auto/tools/uic/baseline/qtresourceeditordialog.ui.h +++ b/tests/auto/tools/uic/baseline/qtresourceeditordialog.ui.h @@ -142,23 +142,23 @@ public: void retranslateUi(QDialog *QtResourceEditorDialog) { QtResourceEditorDialog->setWindowTitle(QApplication::translate("QtResourceEditorDialog", "Dialog", nullptr)); -#ifndef QT_NO_TOOLTIP +#if QT_CONFIG(tooltip) newQrcButton->setToolTip(QApplication::translate("QtResourceEditorDialog", "New File", nullptr)); -#endif // QT_NO_TOOLTIP +#endif // QT_CONFIG(tooltip) newQrcButton->setText(QApplication::translate("QtResourceEditorDialog", "N", nullptr)); -#ifndef QT_NO_TOOLTIP +#if QT_CONFIG(tooltip) removeQrcButton->setToolTip(QApplication::translate("QtResourceEditorDialog", "Remove File", nullptr)); -#endif // QT_NO_TOOLTIP +#endif // QT_CONFIG(tooltip) removeQrcButton->setText(QApplication::translate("QtResourceEditorDialog", "R", nullptr)); importQrcButton->setText(QApplication::translate("QtResourceEditorDialog", "I", nullptr)); -#ifndef QT_NO_TOOLTIP +#if QT_CONFIG(tooltip) newResourceButton->setToolTip(QApplication::translate("QtResourceEditorDialog", "New Resource", nullptr)); -#endif // QT_NO_TOOLTIP +#endif // QT_CONFIG(tooltip) newResourceButton->setText(QApplication::translate("QtResourceEditorDialog", "N", nullptr)); addResourceButton->setText(QApplication::translate("QtResourceEditorDialog", "A", nullptr)); -#ifndef QT_NO_TOOLTIP +#if QT_CONFIG(tooltip) removeResourceButton->setToolTip(QApplication::translate("QtResourceEditorDialog", "Remove Resource or File", nullptr)); -#endif // QT_NO_TOOLTIP +#endif // QT_CONFIG(tooltip) removeResourceButton->setText(QApplication::translate("QtResourceEditorDialog", "R", nullptr)); } // retranslateUi |