summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-09-20 13:26:41 +0200
committerMontel Laurent <[email protected]>2017-09-20 13:26:41 +0200
commit09ace8385e10f168c7e26a50367c0efff76cc2e0 (patch)
treec7eeba1bdd2b3774e97905b38e55427480aa3f94
parent4baa8ce2ac15d60b2ddd608d6ec915dc55fe4fd0 (diff)
Fix signal/slot
-rw-r--r--src/kmailtransport/widgets/transportmanagementwidget.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/kmailtransport/widgets/transportmanagementwidget.cpp b/src/kmailtransport/widgets/transportmanagementwidget.cpp
index 98bae1a..7a109c6 100644
--- a/src/kmailtransport/widgets/transportmanagementwidget.cpp
+++ b/src/kmailtransport/widgets/transportmanagementwidget.cpp
@@ -64,8 +64,7 @@ TransportManagementWidget::TransportManagementWidget(QWidget *parent)
d->ui.transportList->setContextMenuPolicy(Qt::CustomContextMenu);
connect(d->ui.transportList, SIGNAL(currentItemChanged(QTreeWidgetItem*,QTreeWidgetItem*)),
SLOT(updateButtonState()));
- connect(d->ui.transportList, SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int)),
- SLOT(editClicked()));
+ connect(d->ui.transportList, &QTreeWidget::itemDoubleClicked, this, [this]() { d->editClicked(); });
connect(d->ui.addButton, &QPushButton::clicked, this, [this]() { d->addClicked(); });
connect(d->ui.editButton, &QPushButton::clicked, this, [this]() { d->editClicked(); });
connect(d->ui.renameButton, &QPushButton::clicked, this, [this]() { d->renameClicked(); });