summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/customwizard/customwizardpage.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@digia.com>2014-05-30 11:47:56 +0200
committerTobias Hunger <tobias.hunger@digia.com>2014-06-12 16:10:15 +0200
commit4a72355b27fb34cc976a6d56f04d424cf51d6899 (patch)
tree7cfd9749275536d14d5f5bb89786f371aaf272b1 /src/plugins/projectexplorer/customwizard/customwizardpage.cpp
parentce37f05297f17cadd6d73771d0ceeaa3e73080c3 (diff)
downloadqt-creator-4a72355b27fb34cc976a6d56f04d424cf51d6899.tar.gz
CustomWizardPage: Set page title in constructor
That avoids having to do it whenever the page is created. Change-Id: Ie58288a66af79301295d74c3c9f892dc20a832af Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/projectexplorer/customwizard/customwizardpage.cpp')
-rw-r--r--src/plugins/projectexplorer/customwizard/customwizardpage.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/customwizard/customwizardpage.cpp b/src/plugins/projectexplorer/customwizard/customwizardpage.cpp
index 1881933623..9836a5893c 100644
--- a/src/plugins/projectexplorer/customwizard/customwizardpage.cpp
+++ b/src/plugins/projectexplorer/customwizard/customwizardpage.cpp
@@ -193,6 +193,8 @@ CustomWizardFieldPage::CustomWizardFieldPage(const QSharedPointer<CustomWizardCo
vLayout->addItem(new QSpacerItem(0, 0, QSizePolicy::Ignored, QSizePolicy::MinimumExpanding));
vLayout->addWidget(m_errorLabel);
setLayout(vLayout);
+ if (!parameters->fieldPageTitle.isEmpty())
+ setTitle(parameters->fieldPageTitle);
}
CustomWizardFieldPage::~CustomWizardFieldPage()