Commit 5bc41cc7 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Port deprecated QComboBox::currentIndexChanged(QString) -> currentTextChanged

parent 7b6b5403
......@@ -69,7 +69,7 @@ VCSCommitDiffPatchSource::VCSCommitDiffPatchSource(VCSDiffUpdater* updater)
}
m_oldMessages->setMaximumWidth(200);
connect(m_oldMessages, QOverload<const QString&>::of(&KComboBox::currentIndexChanged),
connect(m_oldMessages, &QComboBox::currentTextChanged,
this, &VCSCommitDiffPatchSource::oldMessageChanged);
titleLayout->addWidget(m_oldMessages);
......
......@@ -68,7 +68,7 @@ CMakeBuildDirChooser::CMakeBuildDirChooser(QWidget* parent)
m_extraArgumentsHistory = new CMakeExtraArgumentsHistory(m_chooserUi->extraArguments);
connect(m_chooserUi->buildFolder, &KUrlRequester::textChanged, this, &CMakeBuildDirChooser::updated);
connect(m_chooserUi->buildType, QOverload<const QString&>::of(&QComboBox::currentIndexChanged),
connect(m_chooserUi->buildType, &QComboBox::currentTextChanged,
this, &CMakeBuildDirChooser::updated);
connect(m_chooserUi->extraArguments, &KComboBox::editTextChanged, this, &CMakeBuildDirChooser::updated);
connect(m_chooserUi->availableBuildDirs, QOverload<int>::of(&QComboBox::currentIndexChanged),
......
......@@ -112,7 +112,7 @@ NativeAppConfigPage::NativeAppConfigPage( QWidget* parent )
configureEnvironment->setSelectionWidget(environment);
//connect signals to changed signal
connect( projectTarget, QOverload<const QString&>::of(&ProjectTargetsComboBox::currentIndexChanged), this, &NativeAppConfigPage::changed );
connect( projectTarget, &QComboBox::currentTextChanged, this, &NativeAppConfigPage::changed );
connect( projectTargetRadio, &QRadioButton::toggled, this, &NativeAppConfigPage::changed );
connect( executableRadio, &QRadioButton::toggled, this, &NativeAppConfigPage::changed );
connect( executablePath->lineEdit(), &KLineEdit::textEdited, this, &NativeAppConfigPage::changed );
......
......@@ -53,7 +53,7 @@ QMakeBuilderPreferences::QMakeBuilderPreferences(KDevelop::IPlugin* plugin,
connect(m_chooserUi, &QMakeBuildDirChooser::changed, this, &QMakeBuilderPreferences::changed);
connect(m_chooserUi, &QMakeBuildDirChooser::changed, this, &QMakeBuilderPreferences::validate);
connect(m_prefsUi->buildDirCombo, SIGNAL(currentIndexChanged(QString)), this, SLOT(loadOtherConfig(QString)));
connect(m_prefsUi->buildDirCombo, &QComboBox::currentTextChanged, this, &QMakeBuilderPreferences::loadOtherConfig);
connect(m_prefsUi->buildDirCombo, QOverload<int>::of(&QComboBox::currentIndexChanged), this,
&QMakeBuilderPreferences::changed);
connect(m_prefsUi->addButton, &QAbstractButton::pressed, this, &QMakeBuilderPreferences::addBuildConfig);
......@@ -76,7 +76,7 @@ void QMakeBuilderPreferences::reset()
const QString buildPath = cg.readEntry(QMakeConfig::BUILD_FOLDER, QString());
// update build list (this will trigger loadOtherConfig if signals are still connected)
disconnect(m_prefsUi->buildDirCombo, SIGNAL(currentIndexChanged(QString)), this, SLOT(loadOtherConfig(QString)));
disconnect(m_prefsUi->buildDirCombo, &QComboBox::currentTextChanged, this, &QMakeBuilderPreferences::loadOtherConfig);
m_prefsUi->buildDirCombo->clear();
m_prefsUi->buildDirCombo->insertItems(0, cg.groupList());
if (m_prefsUi->buildDirCombo->contains(buildPath)) {
......@@ -85,7 +85,7 @@ void QMakeBuilderPreferences::reset()
}
qCDebug(KDEV_QMAKEBUILDER) << "Loaded" << cg.groupList() << buildPath;
m_prefsUi->removeButton->setEnabled(m_prefsUi->buildDirCombo->count() > 1);
connect(m_prefsUi->buildDirCombo, SIGNAL(currentIndexChanged(QString)), this, SLOT(loadOtherConfig(QString)));
connect(m_prefsUi->buildDirCombo, &QComboBox::currentTextChanged, this, &QMakeBuilderPreferences::loadOtherConfig);
validate();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment