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
22d2943c
Commit
22d2943c
authored
Jun 12, 2009
by
mae
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide mouse cursor from the editor when typing.
parent
ded5d6f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/plugins/texteditor/basetexteditor.cpp
src/plugins/texteditor/basetexteditor.cpp
+5
-0
No files found.
src/plugins/texteditor/basetexteditor.cpp
View file @
22d2943c
...
...
@@ -838,6 +838,9 @@ void BaseTextEditor::cleanWhitespace()
void
BaseTextEditor
::
keyPressEvent
(
QKeyEvent
*
e
)
{
viewport
()
->
setCursor
(
Qt
::
BlankCursor
);
QToolTip
::
hideText
();
d
->
m_moveLineUndoHack
=
false
;
d
->
clearVisibleCollapsedBlock
();
...
...
@@ -2728,6 +2731,8 @@ void BaseTextEditor::mouseMoveEvent(QMouseEvent *e)
d
->
m_blockSelectionExtraX
=
0
;
}
}
if
(
viewport
()
->
cursor
().
shape
()
==
Qt
::
BlankCursor
)
viewport
()
->
setCursor
(
Qt
::
IBeamCursor
);
}
void
BaseTextEditor
::
mousePressEvent
(
QMouseEvent
*
e
)
...
...
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