forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user