Commit bacb0a74 authored by Tobias Hunger's avatar Tobias Hunger

Qt options page: Simplify code a bit

Change-Id: I70ea3134550c01f6c81f8a15d2730dc906d834a7
Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
parent 25b4e9c8
......@@ -685,11 +685,6 @@ void QtOptionsPageWidget::userChangedCurrentVersion()
updateDescriptionLabel();
}
void QtOptionsPageWidget::qtVersionChanged()
{
updateDescriptionLabel();
}
void QtOptionsPageWidget::updateDescriptionLabel()
{
QtVersionItem *item = currentItem();
......@@ -736,7 +731,7 @@ void QtOptionsPageWidget::updateWidgets()
m_versionUi->formLayout->addRow(m_configurationWidget);
m_configurationWidget->setEnabled(!version->isAutodetected());
connect(m_configurationWidget, &QtConfigWidget::changed,
this, &QtOptionsPageWidget::qtVersionChanged);
this, &QtOptionsPageWidget::updateDescriptionLabel);
}
} else {
m_versionUi->nameEdit->clear();
......
......@@ -85,7 +85,6 @@ private:
private:
void updateQtVersions(const QList<int> &, const QList<int> &, const QList<int> &);
void qtVersionChanged();
void versionChanged(const QModelIndex &current, const QModelIndex &previous);
void addQtDir();
void removeQtDir();
......
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