summaryrefslogtreecommitdiff
path: root/src/plugins/cpaster/pasteview.cpp
diff options
context:
space:
mode:
authorMontel Laurent <laurent.montel@kdab.com>2015-01-29 18:37:56 +0100
committerhjk <hjk@theqtcompany.com>2015-01-29 21:16:33 +0000
commitc701506348f757a139c612d018465bf421835644 (patch)
tree21d01bf747de229c8aaef0e506871c316d21c7cd /src/plugins/cpaster/pasteview.cpp
parent7740c3bbec3dd4a501c566d6898c86e1621adf01 (diff)
downloadqt-creator-c701506348f757a139c612d018465bf421835644.tar.gz
Use new qt5 connect api
Change-Id: I7841baa54c9861275269981892e18d6b8fa58f3b Reviewed-by: hjk <hjk@theqtcompany.com>
Diffstat (limited to 'src/plugins/cpaster/pasteview.cpp')
-rw-r--r--src/plugins/cpaster/pasteview.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/cpaster/pasteview.cpp b/src/plugins/cpaster/pasteview.cpp
index dd5510a06f..c7567fd616 100644
--- a/src/plugins/cpaster/pasteview.cpp
+++ b/src/plugins/cpaster/pasteview.cpp
@@ -55,12 +55,12 @@ PasteView::PasteView(const QList<Protocol *> &protocols,
m_ui.setupUi(this);
m_ui.buttonBox->button(QDialogButtonBox::Ok)->setText(tr("Paste"));
- connect(m_ui.uiPatchList, SIGNAL(itemChanged(QListWidgetItem*)), this, SLOT(contentChanged()));
+ connect(m_ui.uiPatchList, &QListWidget::itemChanged, this, &PasteView::contentChanged);
foreach (const Protocol *p, protocols)
m_ui.protocolBox->addItem(p->name());
- connect(m_ui.protocolBox, SIGNAL(currentIndexChanged(int)),
- this, SLOT(protocolChanged(int)));
+ connect(m_ui.protocolBox, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
+ this, &PasteView::protocolChanged);
}
PasteView::~PasteView()