summary refs log tree commit diff
path: root/resources/qml/ImageButton.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-02-14 01:28:28 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-02-14 01:28:28 +0100
commitd43607d01c63e003c54c6ba56bb1108cb38cace1 (patch)
tree359628ab723798ea6306303ec55c61f8714a79a6 /resources/qml/ImageButton.qml
parentImprove scroll to message a bit by using a ScrollView (diff)
downloadnheko-d43607d01c63e003c54c6ba56bb1108cb38cace1.tar.xz
Fix hover handling in the timeline
Diffstat (limited to 'resources/qml/ImageButton.qml')
-rw-r--r--resources/qml/ImageButton.qml4
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
     }