Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
7b3208ce
Commit
7b3208ce
authored
Aug 06, 2010
by
kh1
Browse files
Add some more missing shortcuts.
parent
85bafac5
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/plugins/help/externalhelpwindow.cpp
View file @
7b3208ce
...
...
@@ -94,10 +94,24 @@ ExternalHelpWindow::ExternalHelpWindow(QWidget *parent)
addAction
(
action
);
action
=
new
QAction
(
this
);
action
->
setShortcut
(
QKeySequence
(
Qt
::
CTRL
+
Qt
::
SHIFT
+
Qt
::
Key_
0
));
connect
(
action
,
SIGNAL
(
triggered
()),
CentralWidget
::
instance
(),
SLOT
(
resetZoom
()));
action
->
setShortcut
(
QKeySequence
(
Qt
::
CTRL
+
Qt
::
Key_
M
));
connect
(
action
,
SIGNAL
(
triggered
()),
this
,
SIGNAL
(
addBookmark
()));
addAction
(
action
);
action
=
new
QAction
(
this
);
action
->
setShortcut
(
QKeySequence
(
Qt
::
CTRL
+
Qt
::
Key_C
));
connect
(
action
,
SIGNAL
(
triggered
()),
CentralWidget
::
instance
(),
SLOT
(
copy
()));
addAction
(
action
);
action
=
new
QAction
(
this
);
action
->
setShortcut
(
QKeySequence
(
Qt
::
CTRL
+
Qt
::
Key_P
));
connect
(
action
,
SIGNAL
(
triggered
()),
CentralWidget
::
instance
(),
SLOT
(
print
()));
addAction
(
action
);
QAction
*
reset
=
new
QAction
(
this
);
connect
(
reset
,
SIGNAL
(
triggered
()),
CentralWidget
::
instance
(),
SLOT
(
resetZoom
()));
addAction
(
reset
);
QAction
*
ctrlTab
=
new
QAction
(
this
);
connect
(
ctrlTab
,
SIGNAL
(
triggered
()),
&
OpenPagesManager
::
instance
(),
SLOT
(
gotoPreviousPage
()));
...
...
@@ -113,13 +127,15 @@ ExternalHelpWindow::ExternalHelpWindow(QWidget *parent)
connect
(
action
,
SIGNAL
(
triggered
()),
this
,
SIGNAL
(
showHideSidebar
()));
#ifdef Q_WS_MAC
reset
->
setShortcut
(
QKeySequence
(
Qt
::
ALT
+
Qt
::
Key_0
));
action
->
setShortcut
(
QKeySequence
(
Qt
::
CTRL
+
Qt
::
Key_0
));
ctrlTab
->
setShortcut
(
QKeySequence
(
tr
(
"Alt+
Tab
"
)
));
ctrlShiftTab
->
setShortcut
(
QKeySequence
(
tr
(
"Alt+Shift+
Tab
"
)
));
ctrlTab
->
setShortcut
(
QKeySequence
(
Qt
::
ALT
+
Qt
::
Key_
Tab
));
ctrlShiftTab
->
setShortcut
(
QKeySequence
(
Qt
::
ALT
+
Qt
::
SHIFT
+
Qt
::
Key_
Tab
));
#else
reset
->
setShortcut
(
QKeySequence
(
Qt
::
CTRL
+
Qt
::
Key_0
));
action
->
setShortcut
(
QKeySequence
(
Qt
::
ALT
+
Qt
::
Key_0
));
ctrlTab
->
setShortcut
(
QKeySequence
(
tr
(
"Ctrl+
Tab
"
)
));
ctrlShiftTab
->
setShortcut
(
QKeySequence
(
tr
(
"Ctrl+Shift+
Tab
"
)
));
ctrlTab
->
setShortcut
(
QKeySequence
(
Qt
::
CTRL
+
Qt
::
Key_
Tab
));
ctrlShiftTab
->
setShortcut
(
QKeySequence
(
Qt
::
CTRL
+
Qt
::
SHIFT
+
Qt
::
Key_
Tab
));
#endif
QToolButton
*
button
=
new
QToolButton
;
...
...
src/plugins/help/externalhelpwindow.h
View file @
7b3208ce
...
...
@@ -52,6 +52,7 @@ signals:
void
activateSearch
();
void
activateBookmarks
();
void
activateOpenPages
();
void
addBookmark
();
void
showHideSidebar
();
protected:
...
...
src/plugins/help/helpplugin.cpp
View file @
7b3208ce
...
...
@@ -1029,6 +1029,8 @@ void HelpPlugin::connectExternalHelpWindow()
SLOT
(
activateBookmarks
()));
connect
(
m_externalWindow
,
SIGNAL
(
activateOpenPages
()),
this
,
SLOT
(
activateOpenPages
()));
connect
(
m_externalWindow
,
SIGNAL
(
addBookmark
()),
this
,
SLOT
(
addBookmark
()));
connect
(
m_externalWindow
,
SIGNAL
(
showHideSidebar
()),
this
,
SLOT
(
showHideSidebar
()));
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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