Commit b3c56be0 authored by Ludovic Fauvet's avatar Ludovic Fauvet
Browse files

Wizard: allow double-click on a project name

parent bdc61d1e
......@@ -42,6 +42,8 @@ WelcomePage::WelcomePage( QWidget* parent )
this, SLOT( loadProject() ) );
connect( m_ui.projectsListWidget, SIGNAL( itemActivated(QListWidgetItem*) ),
this, SLOT( selectOpenRadio() ) );
connect( m_ui.projectsListWidget, SIGNAL( itemDoubleClicked(QListWidgetItem*) ),
this, SLOT( projectDoubleClicked(QListWidgetItem*) ) );
registerField( "loadProject", m_ui.projectsListWidget );
m_projectPath = new QString();
......@@ -153,6 +155,13 @@ void WelcomePage::selectOpenRadio()
m_ui.openRadioButton->setChecked( true );
}
void WelcomePage::projectDoubleClicked( QListWidgetItem* item )
{
Q_UNUSED( item );
if ( wizard() )
wizard()->next();
}
QString WelcomePage::projectPath()
{
return *m_projectPath;
......
......@@ -52,6 +52,7 @@ class WelcomePage : public QWizardPage
private slots:
void loadProject();
void loadRecentsProjects();
void projectDoubleClicked( QListWidgetItem* item );
void selectOpenRadio();
private:
......
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