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
Utilities
KGpg
Commits
cb81825e
Commit
cb81825e
authored
Dec 09, 2020
by
Laurent Montel
😁
Browse files
operator+/- is disabled for QFlags in qt6
parent
13f01927
Changes
1
Hide whitespace changes
Inline
Side-by-side
keysmanager.cpp
View file @
cb81825e
...
...
@@ -141,7 +141,7 @@ KeysManager::KeysManager(QWidget *parent)
goToDefaultKey
=
actionCollection
()
->
addAction
(
QLatin1String
(
"go_default_key"
),
this
,
&
KeysManager
::
slotGotoDefaultKey
);
goToDefaultKey
->
setIcon
(
QIcon
::
fromTheme
(
QLatin1String
(
"go-home"
)));
goToDefaultKey
->
setText
(
i18n
(
"&Go to Default Key"
));
actionCollection
()
->
setDefaultShortcut
(
goToDefaultKey
,
QKeySequence
(
Qt
::
CTRL
+
Qt
::
Key_Home
));
actionCollection
()
->
setDefaultShortcut
(
goToDefaultKey
,
QKeySequence
(
Qt
::
CTRL
|
Qt
::
Key_Home
));
s_kgpgEditor
=
new
KgpgEditor
(
this
,
imodel
,
Qt
::
Dialog
);
s_kgpgEditor
->
setAttribute
(
Qt
::
WA_DeleteOnClose
,
false
);
...
...
@@ -183,7 +183,7 @@ KeysManager::KeysManager(QWidget *parent)
editKey
=
actionCollection
()
->
addAction
(
QLatin1String
(
"key_edit"
),
this
,
&
KeysManager
::
slotedit
);
editKey
->
setIcon
(
QIcon
::
fromTheme
(
QLatin1String
(
"utilities-terminal"
)));
editKey
->
setText
(
i18n
(
"Edit Key in &Terminal"
));
actionCollection
()
->
setDefaultShortcut
(
editKey
,
QKeySequence
(
Qt
::
ALT
+
Qt
::
Key_Return
));
actionCollection
()
->
setDefaultShortcut
(
editKey
,
QKeySequence
(
Qt
::
ALT
|
Qt
::
Key_Return
));
QAction
*
generateKey
=
actionCollection
()
->
addAction
(
QLatin1String
(
"key_gener"
),
this
,
&
KeysManager
::
slotGenerateKey
);
generateKey
->
setIcon
(
QIcon
::
fromTheme
(
QLatin1String
(
"key-generate-pair"
)));
...
...
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