Commit ed0ec2a8 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

operator+/- is disabled for QFlags in qt6

parent 38f045e5
Pipeline #43370 passed with stage
in 17 minutes and 22 seconds
......@@ -579,7 +579,7 @@ QAction *StandardContactActionManager::createAction(Type type)
action->setWhatsThis(i18n("Create a new contact<p>You will be presented with a dialog where you can add data about a person, including addresses and phone numbers.</p>"));
d->mActions.insert(CreateContact, action);
d->mActionCollection->addAction(QStringLiteral("akonadi_contact_create"), action);
d->mActionCollection->setDefaultShortcut(action, QKeySequence(Qt::CTRL + Qt::Key_N));
d->mActionCollection->setDefaultShortcut(action, QKeySequence(Qt::CTRL | Qt::Key_N));
connect(action, &QAction::triggered, this, [this]() {
d->slotCreateContact();
});
......@@ -591,7 +591,7 @@ QAction *StandardContactActionManager::createAction(Type type)
action->setWhatsThis(i18n("Create a new group<p>You will be presented with a dialog where you can add a new group of contacts.</p>"));
d->mActions.insert(CreateContactGroup, action);
d->mActionCollection->addAction(QStringLiteral("akonadi_contact_group_create"), action);
d->mActionCollection->setDefaultShortcut(action, QKeySequence(Qt::CTRL + Qt::Key_G));
d->mActionCollection->setDefaultShortcut(action, QKeySequence(Qt::CTRL | Qt::Key_G));
connect(action, &QAction::triggered, this, [this]() {
d->slotCreateContactGroup();
});
......
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