From 93b492e9e6a932bf90ad7718a00080e76fab1681 Mon Sep 17 00:00:00 2001 From: Loren Burkholder Date: Sat, 16 Jan 2021 19:55:50 -0500 Subject: [PATCH] Only use a pointing hand if there is something to click on --- resources/qml/ImageButton.qml | 1 + resources/qml/StatusIndicator.qml | 1 + 2 files changed, 2 insertions(+) diff --git a/resources/qml/ImageButton.qml b/resources/qml/ImageButton.qml index f645162c..9c0faef3 100644 --- a/resources/qml/ImageButton.qml +++ b/resources/qml/ImageButton.qml @@ -5,6 +5,7 @@ import QtQuick.Controls 2.3 AbstractButton { id: button + property alias cursor: mouseArea.cursorShape property string image: undefined property color highlightColor: colors.highlight property color buttonTextColor: colors.buttonText diff --git a/resources/qml/StatusIndicator.qml b/resources/qml/StatusIndicator.qml index bb8a501d..f2f99e09 100644 --- a/resources/qml/StatusIndicator.qml +++ b/resources/qml/StatusIndicator.qml @@ -9,6 +9,7 @@ ImageButton { height: 16 hoverEnabled: true changeColorOnHover: (model.state == MtxEvent.Read) + cursor: (model.state == MtxEvent.Read) ? Qt.PointingHandCursor : Qt.ArrowCursor ToolTip.visible: hovered && model.state != MtxEvent.Empty ToolTip.text: { switch (model.state) {