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
Kontact
Commits
f0ec740c
Commit
f0ec740c
authored
Jul 23, 2017
by
Laurent Montel
😁
Browse files
Fix warning. Use setDefaultShortcut
parent
194a1669
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mainwindow.cpp
View file @
f0ec740c
...
@@ -436,8 +436,8 @@ void MainWindow::setupActions()
...
@@ -436,8 +436,8 @@ void MainWindow::setupActions()
mShowHideAction
->
setWhatsThis
(
mShowHideAction
->
setWhatsThis
(
i18nc
(
"@info:whatsthis"
,
i18nc
(
"@info:whatsthis"
,
"Allows you to show or hide the component sidebar as desired."
));
"Allows you to show or hide the component sidebar as desired."
));
mShowHideAction
->
setShortcut
(
QKeySequence
(
Qt
::
Key_F9
));
actionCollection
()
->
addAction
(
QStringLiteral
(
"hide_show_sidebar"
),
mShowHideAction
);
actionCollection
()
->
addAction
(
QStringLiteral
(
"hide_show_sidebar"
),
mShowHideAction
);
actionCollection
()
->
setDefaultShortcut
(
mShowHideAction
,
QKeySequence
(
Qt
::
Key_F9
));
connect
(
mShowHideAction
,
&
QAction
::
triggered
,
this
,
&
MainWindow
::
slotShowHideSideBar
);
connect
(
mShowHideAction
,
&
QAction
::
triggered
,
this
,
&
MainWindow
::
slotShowHideSideBar
);
}
}
...
...
Write
Preview
Markdown
is supported
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