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
Tobias Hunger
qt-creator
Commits
43a12b8d
Commit
43a12b8d
authored
Jul 27, 2009
by
kh
Browse files
Handle missing copy shortcut.
Task-number: 257868 Reviewed-by: kh
parent
b41d3a45
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/shared/help/helpviewer.cpp
View file @
43a12b8d
...
...
@@ -309,6 +309,17 @@ void HelpViewer::home()
setSource
(
homepage
);
}
// TODO: remove this once we support multiple keysequences per command
void
HelpViewer
::
keyPressEvent
(
QKeyEvent
*
e
)
{
if
(
e
->
key
()
==
Qt
::
Key_Insert
&&
e
->
modifiers
()
==
Qt
::
CTRL
)
{
if
(
hasSelection
())
copy
();
}
QWebView
::
keyPressEvent
(
e
);
}
void
HelpViewer
::
wheelEvent
(
QWheelEvent
*
e
)
{
if
(
e
->
modifiers
()
&
Qt
::
ControlModifier
)
{
...
...
src/shared/help/helpviewer.h
View file @
43a12b8d
...
...
@@ -105,7 +105,9 @@ Q_SIGNALS:
void
sourceChanged
(
const
QUrl
&
);
protected:
virtual
void
wheelEvent
(
QWheelEvent
*
);
void
keyPressEvent
(
QKeyEvent
*
e
);
void
wheelEvent
(
QWheelEvent
*
e
);
void
mouseReleaseEvent
(
QMouseEvent
*
e
);
void
mousePressEvent
(
QMouseEvent
*
event
);
...
...
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