Commit a86ea970 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Fix form class wizard clobbering the class name when choosing back

Task-number: QTCREATORBUG-116

Use initializePage instead of currentPageChanged().
parent 25a546e3
......@@ -57,8 +57,6 @@ FormClassWizardDialog::FormClassWizardDialog(const WizardPageList &extensionPage
foreach (QWizardPage *p, extensionPages)
addPage(p);
connect(this, SIGNAL(currentIdChanged(int)), this, SLOT(slotCurrentIdChanged(int)));
}
QString FormClassWizardDialog::path() const
......@@ -76,8 +74,9 @@ bool FormClassWizardDialog::validateCurrentPage()
return QWizard::validateCurrentPage();
}
void FormClassWizardDialog::slotCurrentIdChanged(int id)
void FormClassWizardDialog::initializePage(int id)
{
QWizard::initializePage(id);
// Switching from form to class page: store XML template and set a suitable
// class name in the class page based on the form base class
if (id == ClassPageId) {
......
......@@ -62,8 +62,8 @@ public:
public slots:
void setPath(const QString &);
private slots:
void slotCurrentIdChanged(int id);
protected:
void initializePage(int id);
private:
FormTemplateWizardPage *m_formPage;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment