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
Graphics
KRuler
Commits
fda02602
Unverified
Commit
fda02602
authored
Aug 25, 2022
by
Carl Schwan
🚴
Browse files
Bring back hover effect
Signed-off-by:
Carl Schwan
<
carl@carlschwan.eu
>
parent
b93ba442
Pipeline
#222846
passed with stage
in 2 minutes and 15 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
klineal.cpp
View file @
fda02602
...
...
@@ -611,6 +611,19 @@ void KLineal::mousePressEvent( QMouseEvent *inEvent )
}
}
void
KLineal
::
mouseMoveEvent
(
QMouseEvent
*
inEvent
)
{
Q_UNUSED
(
inEvent
);
QPoint
cpos
=
localCursorPos
();
if
(
beginRect
().
contains
(
cpos
)
||
endRect
().
contains
(
cpos
)
)
{
setCursor
(
resizeCursor
()
);
}
else
{
setCursor
(
mCrossCursor
);
}
update
();
}
void
KLineal
::
wheelEvent
(
QWheelEvent
*
e
)
{
int
numDegrees
=
e
->
angleDelta
().
y
()
/
8
;
...
...
klineal.h
View file @
fda02602
...
...
@@ -35,6 +35,7 @@ protected:
void
keyPressEvent
(
QKeyEvent
*
e
)
override
;
void
leaveEvent
(
QEvent
*
e
)
override
;
void
mousePressEvent
(
QMouseEvent
*
e
)
override
;
void
mouseMoveEvent
(
QMouseEvent
*
e
)
override
;
void
wheelEvent
(
QWheelEvent
*
e
)
override
;
void
paintEvent
(
QPaintEvent
*
e
)
override
;
...
...
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