diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2017-07-04 13:04:59 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2017-07-05 12:20:09 +0000 |
commit | 8e40050efed8bc5bf262123c59a36f6a47594bab (patch) | |
tree | a75c054bdb80c05b349fa0df9bcd5c94caa0e5e0 /tests/auto/tools/uic/baseline/embeddeddialog.ui.h | |
parent | 8095c33bcddefebd16b7cb08b07690caf877f600 (diff) |
uic: Don't clear and readd combobox items in retranslateUi
Task-number: QTBUG-61778
Change-Id: If7a15ef69fcfe459f177ff8b671f53a6022ab335
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'tests/auto/tools/uic/baseline/embeddeddialog.ui.h')
-rw-r--r-- | tests/auto/tools/uic/baseline/embeddeddialog.ui.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/auto/tools/uic/baseline/embeddeddialog.ui.h b/tests/auto/tools/uic/baseline/embeddeddialog.ui.h index 69027286b6..446c5d54ff 100644 --- a/tests/auto/tools/uic/baseline/embeddeddialog.ui.h +++ b/tests/auto/tools/uic/baseline/embeddeddialog.ui.h @@ -1,7 +1,7 @@ /******************************************************************************** ** Form generated from reading UI file 'embeddeddialog.ui' ** -** Created by: Qt User Interface Compiler version 5.0.0 +** Created by: Qt User Interface Compiler version 5.10.0 ** ** WARNING! All changes made in this file will be lost when recompiling UI file! ********************************************************************************/ @@ -49,6 +49,8 @@ public: formLayout->setWidget(0, QFormLayout::LabelRole, label); layoutDirection = new QComboBox(embeddedDialog); + layoutDirection->addItem(QString()); + layoutDirection->addItem(QString()); layoutDirection->setObjectName(QStringLiteral("layoutDirection")); formLayout->setWidget(0, QFormLayout::FieldRole, layoutDirection); @@ -100,11 +102,9 @@ public: { embeddedDialog->setWindowTitle(QApplication::translate("embeddedDialog", "Embedded Dialog", Q_NULLPTR)); label->setText(QApplication::translate("embeddedDialog", "Layout Direction:", Q_NULLPTR)); - layoutDirection->clear(); - layoutDirection->insertItems(0, QStringList() - << QApplication::translate("embeddedDialog", "Left to Right", Q_NULLPTR) - << QApplication::translate("embeddedDialog", "Right to Left", Q_NULLPTR) - ); + layoutDirection->setItemText(0, QApplication::translate("embeddedDialog", "Left to Right", Q_NULLPTR)); + layoutDirection->setItemText(1, QApplication::translate("embeddedDialog", "Right to Left", Q_NULLPTR)); + label_2->setText(QApplication::translate("embeddedDialog", "Select Font:", Q_NULLPTR)); label_3->setText(QApplication::translate("embeddedDialog", "Style:", Q_NULLPTR)); label_4->setText(QApplication::translate("embeddedDialog", "Layout spacing:", Q_NULLPTR)); |