diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-02-14 01:28:28 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-02-14 01:28:28 +0100 |
commit | d43607d01c63e003c54c6ba56bb1108cb38cace1 (patch) | |
tree | 359628ab723798ea6306303ec55c61f8714a79a6 /resources/qml/ImageButton.qml | |
parent | Improve scroll to message a bit by using a ScrollView (diff) | |
download | nheko-d43607d01c63e003c54c6ba56bb1108cb38cace1.tar.xz |
Fix hover handling in the timeline
Diffstat (limited to 'resources/qml/ImageButton.qml')
-rw-r--r-- | resources/qml/ImageButton.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/qml/ImageButton.qml b/resources/qml/ImageButton.qml index 9c0faef3..159c750f 100644 --- a/resources/qml/ImageButton.qml +++ b/resources/qml/ImageButton.qml @@ -1,6 +1,7 @@ import "./ui" import QtQuick 2.3 import QtQuick.Controls 2.3 +import im.nheko 1.0 // for cursor shape AbstractButton { id: button @@ -23,11 +24,10 @@ AbstractButton { source: image != "" ? ("image://colorimage/" + image + "?" + ((button.hovered && changeColorOnHover) ? highlightColor : buttonTextColor)) : "" } - MouseArea { + CursorShape { id: mouseArea anchors.fill: parent - onPressed: mouse.accepted = false cursorShape: Qt.PointingHandCursor } |