| 112 | } |
| 113 | |
| 114 | void QMakeBuilderPreferences::addBuildConfig() |
| 115 | { |
| 116 | qCDebug(KDEV_QMAKEBUILDER) << "Adding a new config."; |
| 117 | // for more simplicity, just launch regular dialog |
| 118 | auto dlg = new QMakeBuildDirChooserDialog(m_project); |
| 119 | if (dlg->exec() == QDialog::Accepted) { |
| 120 | m_prefsUi->buildDirCombo->setCurrentItem(dlg->buildDir(), true); |
| 121 | m_prefsUi->removeButton->setEnabled(m_prefsUi->buildDirCombo->count() > 1); |
| 122 | // TODO run qmake |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | void QMakeBuilderPreferences::removeBuildConfig() |
| 127 | { |
nothing calls this directly
no test coverage detected