From 15125d2a9305e0250e4525375c3406b72b97a39a Mon Sep 17 00:00:00 2001 From: Alessandro Portale <alessandro.portale@nokia.com> Date: Fri, 20 Aug 2010 19:52:43 +0200 Subject: [PATCH] De-duplicate tr("Qml Sources") --- .../qmlprojectmanager/wizards/qmlstandaloneappwizard.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/qmlprojectmanager/wizards/qmlstandaloneappwizard.cpp b/src/plugins/qmlprojectmanager/wizards/qmlstandaloneappwizard.cpp index 614198277e3..c26f2c44258 100644 --- a/src/plugins/qmlprojectmanager/wizards/qmlstandaloneappwizard.cpp +++ b/src/plugins/qmlprojectmanager/wizards/qmlstandaloneappwizard.cpp @@ -79,9 +79,10 @@ QmlStandaloneAppWizardDialog::QmlStandaloneAppWizardDialog(QmlStandaloneAppWizar m_qmlSourcesPage = new QmlStandaloneAppWizardSourcesPage; m_qmlSourcesPage->setMainQmlFileChooserVisible(m_type == QmlStandaloneAppWizard::ImportQmlFile); + const QString qmlSourcesTitle = tr("Qml Sources"); if (m_type == QmlStandaloneAppWizard::ImportQmlFile) { const int qmlSourcesPagePageId = addPage(m_qmlSourcesPage); - wizardProgress()->item(qmlSourcesPagePageId)->setTitle(tr("Qml Sources")); + wizardProgress()->item(qmlSourcesPagePageId)->setTitle(qmlSourcesTitle); } m_qmlOptionsPage = new QmlStandaloneAppWizardOptionsPage; @@ -90,7 +91,7 @@ QmlStandaloneAppWizardDialog::QmlStandaloneAppWizardDialog(QmlStandaloneAppWizar if (m_type == QmlStandaloneAppWizard::NewQmlFile) { // In case of NewQmlFile, we show that page at the end. Is that useful? Or irritating? const int qmlSourcesPagePageId = addPage(m_qmlSourcesPage); - wizardProgress()->item(qmlSourcesPagePageId)->setTitle(tr("Qml Sources")); + wizardProgress()->item(qmlSourcesPagePageId)->setTitle(qmlSourcesTitle); } } -- GitLab