forked from qt-creator/qt-creator
Unify wizards with TOC and cancel button.
QTBUG-28385 is biting us over and over (QWizard doesn't have close button nor cancel button on Mac in Qt 5), and actually there's no reason for us having a wizard without the features from Utils::Wizard. Task-number: QTCREATORBUG-10346 Task-number: QTBUG-28385 Change-Id: I80c0d82fe6738496c2ac03c31a1c2757ade8e266 Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com> Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -41,7 +41,6 @@ ClassWizardDialog::ClassWizardDialog(QWidget *parent)
|
||||
, m_classNamePage(new ClassNamePage(this))
|
||||
{
|
||||
setWindowTitle(tr("Python Class Wizard"));
|
||||
Core::BaseFileWizard::setupWizard(this);
|
||||
const int classNameId = addPage(m_classNamePage.data());
|
||||
wizardProgress()->item(classNameId)->setTitle(tr("Details"));
|
||||
}
|
||||
|
||||
@@ -70,7 +70,6 @@ QWizard *FileWizard::createWizardDialog(QWidget *parent,
|
||||
{
|
||||
Utils::FileWizardDialog *pDialog = new Utils::FileWizardDialog(parent);
|
||||
pDialog->setWindowTitle(tr("New %1").arg(displayName()));
|
||||
setupWizard(pDialog);
|
||||
pDialog->setPath(params.defaultPath());
|
||||
foreach (QWizardPage *p, params.extensionPages())
|
||||
applyExtensionPageShortTitle(pDialog, pDialog->addPage(p));
|
||||
|
||||
Reference in New Issue
Block a user