Changeset View
Changeset View
Standalone View
Standalone View
projectmanagers/qmake/qmakebuilddirchooserdialog.cpp
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | 36 | { | |||
---|---|---|---|---|---|
47 | 47 | | |||
48 | m_buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel); | 48 | m_buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel); | ||
49 | m_buttonBox->button(QDialogButtonBox::Ok)->setDefault(true); | 49 | m_buttonBox->button(QDialogButtonBox::Ok)->setDefault(true); | ||
50 | connect(m_buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept); | 50 | connect(m_buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept); | ||
51 | connect(m_buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject); | 51 | connect(m_buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject); | ||
52 | mainLayout->addWidget(m_buttonBox); | 52 | mainLayout->addWidget(m_buttonBox); | ||
53 | 53 | | |||
54 | loadConfig(); | 54 | loadConfig(); | ||
55 | // save; like this, we can be sure to have a qmake binary and build path set | 55 | // save; like this, we can be sure to have a qmake executable and build path set | ||
56 | //(even if user clicks Cancel) | 56 | //(even if user clicks Cancel) | ||
57 | saveConfig(); | 57 | saveConfig(); | ||
58 | 58 | | |||
59 | validate(); | 59 | validate(); | ||
60 | } | 60 | } | ||
61 | 61 | | |||
62 | QMakeBuildDirChooserDialog::~QMakeBuildDirChooserDialog() | 62 | QMakeBuildDirChooserDialog::~QMakeBuildDirChooserDialog() | ||
63 | { | 63 | { | ||
Show All 35 Lines |