Unverified Commit fda02602 authored by Carl Schwan's avatar Carl Schwan 🚴
Browse files

Bring back hover effect



Signed-off-by: Carl Schwan's avatarCarl Schwan <carl@carlschwan.eu>
parent b93ba442
Pipeline #222846 passed with stage
in 2 minutes and 15 seconds
......@@ -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;
......
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment