Commit 1eb19069 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

operator+/- is disabled for QFlags in qt6

parent 60301b38
Pipeline #43366 passed with stage
in 111 minutes and 46 seconds
......@@ -23,7 +23,7 @@ void NonBreakingSpacePluginEditorInterface::createAction(KActionCollection *ac)
{
QAction *action = new QAction(i18n("Insert Non Breaking Space"), this);
ac->addAction(QStringLiteral("insert_non_breaking_space"), action);
ac->setDefaultShortcut(action, Qt::CTRL + Qt::Key_Space);
ac->setDefaultShortcut(action, Qt::CTRL | Qt::Key_Space);
connect(action, &QAction::triggered, this, &NonBreakingSpacePluginEditorInterface::slotActivated);
MessageComposer::PluginActionType type(action, MessageComposer::PluginActionType::Edit);
setActionType(type);
......
......@@ -55,7 +55,7 @@ void TranslatorView::createAction(KActionCollection *ac)
connect(mAction, &KToggleAction::triggered, this, &TranslatorView::slotActivateTranslator);
if (ac) {
ac->addAction(QStringLiteral("translator"), mAction);
ac->setDefaultShortcut(mAction, QKeySequence(Qt::CTRL + Qt::ALT + Qt::Key_T));
ac->setDefaultShortcut(mAction, QKeySequence(Qt::CTRL | Qt::ALT | Qt::Key_T));
}
mAction->setChecked(false);
}
......@@ -49,7 +49,7 @@ void ViewerPluginTranslatorInterface::createAction(KActionCollection *ac)
{
if (ac) {
QAction *act = new QAction(i18n("Translate..."), this);
ac->setDefaultShortcut(act, QKeySequence(Qt::CTRL + Qt::ALT + Qt::Key_T));
ac->setDefaultShortcut(act, QKeySequence(Qt::CTRL | Qt::ALT | Qt::Key_T));
act->setIcon(QIcon::fromTheme(QStringLiteral("preferences-desktop-locale")));
ac->addAction(QStringLiteral("translate_text"), act);
connect(act, &QAction::triggered, this, &ViewerPluginTranslatorInterface::slotActivatePlugin);
......
......@@ -71,7 +71,7 @@ void ViewerPluginCreateEventInterface::createAction(KActionCollection *ac)
act->setIconText(i18n("Create Event"));
addHelpTextAction(act, i18n("Allows you to create a calendar Event"));
ac->addAction(QStringLiteral("create_event"), act);
ac->setDefaultShortcut(act, QKeySequence(Qt::CTRL + Qt::Key_E));
ac->setDefaultShortcut(act, QKeySequence(Qt::CTRL | Qt::Key_E));
connect(act, &QAction::triggered, this, &ViewerPluginCreateEventInterface::slotActivatePlugin);
mAction.append(act);
}
......
......@@ -73,7 +73,7 @@ void ViewerPluginCreateTodoInterface::createAction(KActionCollection *ac)
act->setWhatsThis(i18n(
"This option starts the KOrganizer to-do editor with initial values taken from the currently selected message. Then you can edit the to-do to your liking before saving it to your calendar."));
ac->addAction(QStringLiteral("create_todo"), act);
ac->setDefaultShortcut(act, QKeySequence(Qt::CTRL + Qt::Key_T));
ac->setDefaultShortcut(act, QKeySequence(Qt::CTRL | Qt::Key_T));
connect(act, &QAction::triggered, this, &ViewerPluginCreateTodoInterface::slotActivatePlugin);
mAction.append(act);
}
......
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