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
b76ebd66
Commit
b76ebd66
authored
Jun 16, 2009
by
Thorbjørn Lindeijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the mouse cursor no longer turning into a hand above the mark area
Reviewed-by: mae Reviewed-by: con
parent
86284e43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/plugins/texteditor/basetexteditor.cpp
src/plugins/texteditor/basetexteditor.cpp
+7
-0
No files found.
src/plugins/texteditor/basetexteditor.cpp
View file @
b76ebd66
...
...
@@ -2770,6 +2770,13 @@ void BaseTextEditor::extraAreaMouseEvent(QMouseEvent *e)
}
}
// Set whether the mouse cursor is a hand or normal arrow
if
(
e
->
type
()
==
QEvent
::
MouseMove
)
{
bool
hand
=
(
e
->
pos
().
x
()
<=
markWidth
);
if
(
hand
!=
(
d
->
m_extraArea
->
cursor
().
shape
()
==
Qt
::
PointingHandCursor
))
d
->
m_extraArea
->
setCursor
(
hand
?
Qt
::
PointingHandCursor
:
Qt
::
ArrowCursor
);
}
if
(
e
->
type
()
==
QEvent
::
MouseButtonPress
||
e
->
type
()
==
QEvent
::
MouseButtonDblClick
)
{
if
(
e
->
button
()
==
Qt
::
LeftButton
)
{
int
boxWidth
=
collapseBoxWidth
(
fontMetrics
());
...
...
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