Skip to content

Commit

Permalink
S
Browse files Browse the repository at this point in the history
  • Loading branch information
HamedMasafi committed Aug 23, 2020
1 parent 4a44cb0 commit c35a4e9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
int main(int argc, char *argv[])
{
QApplication a(argc, argv);

a.setApplicationName("ConfiQt");

QtConfigWizard w;
w.show();

Expand Down
4 changes: 2 additions & 2 deletions pages/pageselectpaths.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ PageSelectPaths::PageSelectPaths(ConfigManager *config, QWidget *parent)
setupUi(this);
labelDefaultMkspec->setText(_config->defaultPlatform());

QSettings set;
QSettings set(QSettings::UserScope);
lineEditSourcePath->setText(set.value("sourcePath", "").toString());
lineEditBuildPath->setText(set.value("buildPath", "").toString());
lineEditInstallPath->setText(set.value("installPath", "").toString());
Expand Down Expand Up @@ -56,7 +56,7 @@ bool PageSelectPaths::validatePage()
_config->setBuildPath(lineEditBuildPath->text());
_config->setInstallPath(lineEditInstallPath->text());

QSettings set;
QSettings set(QSettings::UserScope);
set.setValue("sourcePath", lineEditSourcePath->text());
set.setValue("buildPath", lineEditBuildPath->text());
set.setValue("installPath", lineEditInstallPath->text());
Expand Down
4 changes: 2 additions & 2 deletions ui/qtconfigwizard.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>651</width>
<height>449</height>
<width>936</width>
<height>653</height>
</rect>
</property>
<property name="windowTitle">
Expand Down

0 comments on commit c35a4e9

Please sign in to comment.