summaryrefslogtreecommitdiff
path: root/src/plugins/clearcase
diff options
context:
space:
mode:
authorMontel Laurent <laurent.montel@kdab.com>2015-01-29 14:32:36 +0100
committerhjk <hjk@theqtcompany.com>2015-01-29 14:29:30 +0000
commit0d0a6d119a8f41d5f937e46dc0ea25c2421b4496 (patch)
tree3786fc8bccefea2749c29d80bf5f51eab866df49 /src/plugins/clearcase
parent1eb507afbda5c4196225c98bbfdab02fd412e76a (diff)
downloadqt-creator-0d0a6d119a8f41d5f937e46dc0ea25c2421b4496.tar.gz
Use new qt5 connect api
Change-Id: I6c0d4ec60759b3c2fedac3e6649b7ec5102a6487 Reviewed-by: hjk <hjk@theqtcompany.com>
Diffstat (limited to 'src/plugins/clearcase')
-rw-r--r--src/plugins/clearcase/activityselector.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/plugins/clearcase/activityselector.cpp b/src/plugins/clearcase/activityselector.cpp
index 1268d00b90..b2d4020212 100644
--- a/src/plugins/clearcase/activityselector.cpp
+++ b/src/plugins/clearcase/activityselector.cpp
@@ -70,10 +70,11 @@ ActivitySelector::ActivitySelector(QWidget *parent) :
lblActivity->setBuddy(m_cmbActivity);
- connect(btnAdd, SIGNAL(clicked()), this, SLOT(newActivity()));
+ connect(btnAdd, &QToolButton::clicked, this, &ActivitySelector::newActivity);
refresh();
- connect(m_cmbActivity, SIGNAL(currentIndexChanged(int)), this, SLOT(userChanged()));
+ connect(m_cmbActivity, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
+ this, &ActivitySelector::userChanged);
}
void ActivitySelector::userChanged()
@@ -109,9 +110,11 @@ void ActivitySelector::setActivity(const QString &act)
{
int index = m_cmbActivity->findData(act);
if (index != -1) {
- disconnect(m_cmbActivity, SIGNAL(currentIndexChanged(int)), this, SLOT(userChanged()));
+ disconnect(m_cmbActivity, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
+ this, &ActivitySelector::userChanged);
m_cmbActivity->setCurrentIndex(index);
- connect(m_cmbActivity, SIGNAL(currentIndexChanged(int)), this, SLOT(userChanged()));
+ connect(m_cmbActivity, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
+ this, &ActivitySelector::userChanged);
}
}