Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
eebe9e2f
Commit
eebe9e2f
authored
Mar 24, 2009
by
Thorbjørn Lindeijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clear link emulation when Ctrl is released
parent
c08405fe
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
src/plugins/cppeditor/cppeditor.cpp
src/plugins/cppeditor/cppeditor.cpp
+9
-0
src/plugins/cppeditor/cppeditor.h
src/plugins/cppeditor/cppeditor.h
+4
-3
No files found.
src/plugins/cppeditor/cppeditor.cpp
View file @
eebe9e2f
...
...
@@ -832,6 +832,15 @@ void CPPEditor::mouseReleaseEvent(QMouseEvent *e)
TextEditor
::
BaseTextEditor
::
mouseReleaseEvent
(
e
);
}
void
CPPEditor
::
keyReleaseEvent
(
QKeyEvent
*
e
)
{
// Clear link emulation when Ctrl is released
if
(
e
->
key
()
==
Qt
::
Key_Control
)
{
setExtraSelections
(
OtherSelection
,
QList
<
QTextEdit
::
ExtraSelection
>
());
viewport
()
->
setCursor
(
Qt
::
IBeamCursor
);
}
}
QList
<
int
>
CPPEditorEditable
::
context
()
const
{
return
m_context
;
...
...
src/plugins/cppeditor/cppeditor.h
View file @
eebe9e2f
...
...
@@ -96,9 +96,10 @@ public slots:
void
deleteEndOfToken
();
protected:
void
contextMenuEvent
(
QContextMenuEvent
*
e
);
void
mouseMoveEvent
(
QMouseEvent
*
e
);
void
mouseReleaseEvent
(
QMouseEvent
*
e
);
void
contextMenuEvent
(
QContextMenuEvent
*
);
void
mouseMoveEvent
(
QMouseEvent
*
);
void
mouseReleaseEvent
(
QMouseEvent
*
);
void
keyReleaseEvent
(
QKeyEvent
*
);
TextEditor
::
BaseTextEditorEditable
*
createEditableInterface
();
...
...
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