Only use a pointing hand if there is something to click on

pull/378/head
Loren Burkholder 4 years ago
parent 6f6d962ab9
commit 93b492e9e6
  1. 1
      resources/qml/ImageButton.qml
  2. 1
      resources/qml/StatusIndicator.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

@ -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) {

Loading…
Cancel
Save