Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KDE PIM Add-ons
Commits
1eb19069
Commit
1eb19069
authored
Dec 08, 2020
by
Laurent Montel
😁
Browse files
operator+/- is disabled for QFlags in qt6
parent
60301b38
Pipeline
#43366
passed with stage
in 111 minutes and 46 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
kmail/editorplugins/nonbreakingspace/nonbreakingspaceplugineditorinterface.cpp
View file @
1eb19069
...
...
@@ -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
);
...
...
plugins/customtoolsplugins/translatorplugin/translatorview.cpp
View file @
1eb19069
...
...
@@ -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
);
}
plugins/messageviewerplugins/common/translatorplugin/viewerplugintranslatorinterface.cpp
View file @
1eb19069
...
...
@@ -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
);
...
...
plugins/messageviewerplugins/createeventplugin/viewerplugincreateeventinterface.cpp
View file @
1eb19069
...
...
@@ -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
);
}
...
...
plugins/messageviewerplugins/createtodoplugin/viewerplugincreatetodointerface.cpp
View file @
1eb19069
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment