Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 203ba8c8 authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent d1072eb1
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment