Utils: Make wizard pages derive from Utils::WizardPage

Utils::WizardPage has a bit of helper code to the Utils::Wizard to
query registered fields later on. Without this code it will print
warnings whenever something tries to read a field that does not
exist.

Make the wizard pages defined in Utils export some fields.

Change-Id: I907be327a8b1b8691f90773470630582503d294a
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Tobias Hunger
2014-08-25 17:21:49 +02:00
parent be9e4d71b3
commit 8e18fd08a2
10 changed files with 172 additions and 9 deletions

View File

@@ -81,7 +81,7 @@ ProjectIntroPagePrivate:: ProjectIntroPagePrivate() :
}
ProjectIntroPage::ProjectIntroPage(QWidget *parent) :
QWizardPage(parent),
WizardPage(parent),
d(new ProjectIntroPagePrivate)
{
d->m_ui.setupUi(this);
@@ -100,6 +100,8 @@ ProjectIntroPage::ProjectIntroPage(QWidget *parent) :
connect(d->m_ui.projectComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(slotChanged()));
setProperty(SHORT_TITLE_PROPERTY, tr("Location"));
registerFieldWithName(QLatin1String("Path"), d->m_ui.pathChooser, "path", SIGNAL(pathChanged(QString)));
registerFieldWithName(QLatin1String("ProjectName"), d->m_ui.nameLineEdit);
}
void ProjectIntroPage::insertControl(int row, QWidget *label, QWidget *control)