diff options
author | Tobias Hunger <tobias.hunger@digia.com> | 2014-05-30 11:38:08 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@digia.com> | 2014-06-12 16:10:03 +0200 |
commit | ce37f05297f17cadd6d73771d0ceeaa3e73080c3 (patch) | |
tree | 7c1a4e9530254046333ddee67138098f95625891 /src/plugins/coreplugin/basefilewizardfactory.cpp | |
parent | d0f00cc29d1f53ab6c3378046827d8abaa844cbd (diff) | |
download | qt-creator-ce37f05297f17cadd6d73771d0ceeaa3e73080c3.tar.gz |
BaseFileWizard: Get rid of applyExtensionPageShortTitle(...)
That method was used to set a title in the progress view of the wizard
that is different from the page title. That is used exactly once and
there it adds more confusion than it helps. So get rid of the whole
thing.
Consistently set the "shortTitle" property instead for all wizards
that want to have a separate short title.
Change-Id: Ia4881e9c00891058629491f9e9de4ac421c59727
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/coreplugin/basefilewizardfactory.cpp')
-rw-r--r-- | src/plugins/coreplugin/basefilewizardfactory.cpp | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/src/plugins/coreplugin/basefilewizardfactory.cpp b/src/plugins/coreplugin/basefilewizardfactory.cpp index 5e35d7ba23..c5add16214 100644 --- a/src/plugins/coreplugin/basefilewizardfactory.cpp +++ b/src/plugins/coreplugin/basefilewizardfactory.cpp @@ -330,26 +330,6 @@ bool BaseFileWizardFactory::writeFiles(const GeneratedFiles &files, QString *err } /*! - Reads the \c shortTitle dynamic property of \a pageId and applies it as - the title of corresponding progress item. -*/ - -void BaseFileWizardFactory::applyExtensionPageShortTitle(Utils::Wizard *wizard, int pageId) -{ - if (pageId < 0) - return; - QWizardPage *p = wizard->page(pageId); - if (!p) - return; - Utils::WizardProgressItem *item = wizard->wizardProgress()->item(pageId); - if (!item) - return; - const QString shortTitle = p->property("shortTitle").toString(); - if (!shortTitle.isEmpty()) - item->setTitle(shortTitle); -} - -/*! Overwrite to perform steps to be done after files are actually created. The default implementation opens editors with the newly generated files. @@ -529,7 +509,7 @@ BaseFileWizard *StandardFileWizardFactory::create(QWidget *parent, const WizardD wizard->setWindowTitle(tr("New %1").arg(displayName())); wizard->setPath(parameters.defaultPath()); foreach (QWizardPage *p, parameters.extensionPages()) - BaseFileWizardFactory::applyExtensionPageShortTitle(wizard, wizard->addPage(p)); + wizard->addPage(p); return wizard; } |