forked from qt-creator/qt-creator
QbsPM: Use Qt5-style connects
The heavy lifting was done by clazy. Change-Id: I841454b0815bc697ae2372dbc6d2caa59d7dc3e8 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
76781b40a7
commit
a22d8bcaa3
@@ -54,12 +54,10 @@ public:
|
||||
|
||||
void apply();
|
||||
|
||||
private slots:
|
||||
private:
|
||||
void refreshKitsList();
|
||||
void displayCurrentProfile();
|
||||
void editProfile();
|
||||
|
||||
private:
|
||||
void setupCustomProperties(const ProjectExplorer::Kit *kit);
|
||||
void mergeCustomPropertiesIntoModel();
|
||||
|
||||
@@ -123,9 +121,12 @@ QbsProfilesSettingsWidget::QbsProfilesSettingsWidget(QWidget *parent)
|
||||
m_model.updateSettingsDir(QbsProjectManagerSettings::qbsSettingsBaseDir());
|
||||
displayCurrentProfile();
|
||||
});
|
||||
connect(m_ui.expandButton, SIGNAL(clicked()), m_ui.propertiesView, SLOT(expandAll()));
|
||||
connect(m_ui.collapseButton, SIGNAL(clicked()), m_ui.propertiesView, SLOT(collapseAll()));
|
||||
connect(m_ui.editButton, SIGNAL(clicked()), SLOT(editProfile()));
|
||||
connect(m_ui.expandButton, &QAbstractButton::clicked,
|
||||
m_ui.propertiesView, &QTreeView::expandAll);
|
||||
connect(m_ui.collapseButton, &QAbstractButton::clicked,
|
||||
m_ui.propertiesView, &QTreeView::collapseAll);
|
||||
connect(m_ui.editButton, &QAbstractButton::clicked,
|
||||
this, &QbsProfilesSettingsWidget::editProfile);
|
||||
refreshKitsList();
|
||||
}
|
||||
|
||||
@@ -175,7 +176,9 @@ void QbsProfilesSettingsWidget::refreshKitsList()
|
||||
else if (hasKits)
|
||||
m_ui.kitsComboBox->setCurrentIndex(0);
|
||||
displayCurrentProfile();
|
||||
connect(m_ui.kitsComboBox, SIGNAL(currentIndexChanged(int)), SLOT(displayCurrentProfile()));
|
||||
connect(m_ui.kitsComboBox,
|
||||
static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
|
||||
this, &QbsProfilesSettingsWidget::displayCurrentProfile);
|
||||
}
|
||||
|
||||
void QbsProfilesSettingsWidget::displayCurrentProfile()
|
||||
|
||||
Reference in New Issue
Block a user