| 54 | } |
| 55 | |
| 56 | void QMakeBuilderPreferences::reset() |
| 57 | { |
| 58 | qCDebug(KDEV_QMAKEBUILDER) << "loading data"; |
| 59 | // refresh combobox |
| 60 | KConfigGroup cg(m_project->projectConfiguration(), QMakeConfig::CONFIG_GROUP()); |
| 61 | const QString buildPath = cg.readEntry(QMakeConfig::BUILD_FOLDER, QString()); |
| 62 | |
| 63 | // update build list (this will trigger loadOtherConfig if signals are still connected) |
| 64 | disconnect(m_prefsUi->buildDirCombo, &QComboBox::currentTextChanged, this, &QMakeBuilderPreferences::loadOtherConfig); |
| 65 | m_prefsUi->buildDirCombo->clear(); |
| 66 | m_prefsUi->buildDirCombo->insertItems(0, cg.groupList()); |
| 67 | if (m_prefsUi->buildDirCombo->contains(buildPath)) { |
| 68 | m_prefsUi->buildDirCombo->setCurrentItem(buildPath); |
| 69 | m_chooserUi->loadConfig(buildPath); |
| 70 | } |
| 71 | qCDebug(KDEV_QMAKEBUILDER) << "Loaded" << cg.groupList() << buildPath; |
| 72 | m_prefsUi->removeButton->setEnabled(m_prefsUi->buildDirCombo->count() > 1); |
| 73 | connect(m_prefsUi->buildDirCombo, &QComboBox::currentTextChanged, this, &QMakeBuilderPreferences::loadOtherConfig); |
| 74 | |
| 75 | validate(); |
| 76 | } |
| 77 | |
| 78 | QString QMakeBuilderPreferences::name() const |
| 79 | { |
nothing calls this directly
no test coverage detected