Commit ec334673 authored by Ludovic Fauvet's avatar Ludovic Fauvet

Wizard: Welcome page initialization

parent 8c847933
......@@ -40,7 +40,6 @@ WelcomePage::WelcomePage( QWidget* parent )
this, SLOT( loadProject() ) );
connect( m_ui.projectsListWidget, SIGNAL( itemActivated(QListWidgetItem*) ),
this, SLOT( selectOpenRadio() ) );
loadRecentsProjects();
}
void WelcomePage::changeEvent( QEvent *e )
......@@ -63,6 +62,12 @@ int WelcomePage::nextId() const
return ProjectWizard::Page_Open;
}
void WelcomePage::initializePage()
{
m_ui.createRadioButton->setChecked( true );
loadRecentsProjects();
}
bool WelcomePage::validatePage()
{
if ( m_ui.openRadioButton->isChecked() )
......@@ -90,7 +95,7 @@ bool WelcomePage::validatePage()
void WelcomePage::cleanupPage()
{
loadRecentsProjects();
}
void WelcomePage::loadRecentsProjects()
......
......@@ -43,6 +43,7 @@ class WelcomePage : public QWizardPage
protected:
virtual void changeEvent( QEvent *e );
virtual void initializePage();
virtual bool validatePage();
virtual void cleanupPage();
......
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