summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-10-24 13:21:46 +0200
committerMontel Laurent <[email protected]>2017-10-24 13:21:46 +0200
commit203ba8c82a197bc7ebfc7b9495f838ddd3b3f242 (patch)
tree118ee700b57e99329a177c443e7b9f2d54ab3ed8
parentd1072eb132a47a91c57532900585b11a90f6f787 (diff)
Port to new connect api
-rw-r--r--src/snippets/snippetsmanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/snippets/snippetsmanager.cpp b/src/snippets/snippetsmanager.cpp
index 0b54b43..fbf95f2 100644
--- a/src/snippets/snippetsmanager.cpp
+++ b/src/snippets/snippetsmanager.cpp
@@ -398,7 +398,8 @@ void SnippetsManager::Private::updateActionCollection(const QString &oldName, co
const QString normalizedName = QString(actionName).replace(QLatin1Char(' '), QLatin1Char('_'));
QAction *action
- = mActionCollection->addAction(normalizedName, q, SLOT(insertActionSnippet()));
+ = mActionCollection->addAction(normalizedName, q);
+ connect(action, &QAction::triggered, q, [this]() {insertActionSnippet();});
action->setProperty("snippetText", text);
action->setText(actionName);
mActionCollection->setDefaultShortcut(action, keySequence);