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
Marco Bubke
flatpak-qt-creator
Commits
22d2943c
Commit
22d2943c
authored
Jun 12, 2009
by
mae
Browse files
Hide mouse cursor from the editor when typing.
parent
ded5d6f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
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