Skip to content

Commit b06e34c

Browse files
authored
Merge pull request #288 from allywarner/bringtofront
Bringtofront
2 parents d8e79dc + 328dfc5 commit b06e34c

File tree

4 files changed

+208
-68
lines changed

4 files changed

+208
-68
lines changed

src/Interface/Application/ProjectWizard.cc

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ ProjectInfoPage::ProjectInfoPage( QWidget *parent )
105105
this->setSubTitle( "Specify basic information about the project which you "
106106
"want to create." );
107107

108-
this->project_name_label_ = new QLabel( "Project name:" );
108+
this->project_name_label_ = new QLabel( "Project Name:" );
109109

110110

111111
QString default_name_count;
@@ -124,7 +124,7 @@ ProjectInfoPage::ProjectInfoPage( QWidget *parent )
124124
}
125125

126126
this->project_path_label_ = new QLabel( "Project Path:" );
127-
this->project_path_lineedit_ = new QLineEdit;
127+
this->project_path_lineedit_ = new QLineEdit();
128128

129129
this->project_path_change_button_ = new QPushButton( "Choose Alternative Location" );
130130
connect( this->project_path_change_button_, SIGNAL( clicked() ), this, SLOT( set_path() ) );
@@ -176,17 +176,16 @@ void ProjectInfoPage::set_path()
176176

177177
void ProjectInfoPage::set_name(const QString& name)
178178
{
179-
if(!name.isEmpty())
180-
{
181-
QDir project_directory_ = QDir(name);
179+
if(!name.isEmpty())
180+
{
181+
QDir project_directory_ = QDir(name);
182182

183-
if( project_directory_.exists() )
184-
{
185-
this->project_path_lineedit_->setText( project_directory_.canonicalPath() );
186-
this->most_recent_path_ = &project_directory_;
187-
}
183+
if( project_directory_.exists() )
184+
{
185+
this->project_path_lineedit_->setText( project_directory_.canonicalPath() );
186+
this->most_recent_path_ = &project_directory_;
188187
}
189-
188+
}
190189
}
191190

192191
bool ProjectInfoPage::validatePage()

src/Interface/Application/ProjectWizard.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@ Q_OBJECT
8080
protected:
8181
void initializePage();
8282

83-
/// VALIDATEPAGE:
84-
/// function that is called right after the next button is clicked and used to process
85-
/// the entered data so it can be passed to the next page
8683
virtual bool validatePage();
8784

8885
private:

0 commit comments

Comments
 (0)