QmlPM: Use Qt5-style connects

The heavy lifting was done by clazy.

Change-Id: I8fe343c8e7cfc9b0e620afe4ae947f9e997899f9
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Orgad Shaneh
2016-07-01 12:19:37 +03:00
committed by Orgad Shaneh
parent ca5ce834ef
commit 32ea9a644d
9 changed files with 30 additions and 32 deletions

View File

@@ -39,6 +39,7 @@
#include <QStandardItemModel>
using Core::ICore;
using ProjectExplorer::ProjectExplorerPlugin;
namespace QmlProjectManager {
namespace Internal {
@@ -68,8 +69,8 @@ QmlProjectRunConfigurationWidget::QmlProjectRunConfigurationWidget(QmlProjectRun
connect(m_fileListCombo, static_cast<void (QComboBox::*)(int)>(&QComboBox::activated),
this, &QmlProjectRunConfigurationWidget::setMainScript);
connect(ProjectExplorer::ProjectExplorerPlugin::instance(), SIGNAL(fileListChanged()),
SLOT(updateFileComboBox()));
connect(ProjectExplorerPlugin::instance(), &ProjectExplorerPlugin::fileListChanged,
this, &QmlProjectRunConfigurationWidget::updateFileComboBox);
QLineEdit *qmlViewerArgs = new QLineEdit;
qmlViewerArgs->setText(rc->m_qmlViewerArgs);
@@ -83,8 +84,8 @@ QmlProjectRunConfigurationWidget::QmlProjectRunConfigurationWidget(QmlProjectRun
updateFileComboBox();
connect(rc, SIGNAL(scriptSourceChanged()),
this, SLOT(updateFileComboBox()));
connect(rc, &QmlProjectRunConfiguration::scriptSourceChanged,
this, &QmlProjectRunConfigurationWidget::updateFileComboBox);
}
static bool caseInsensitiveLessThan(const QString &s1, const QString &s2)