mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 13:08:48 +03:00
Only use a pointing hand if there is something to click on
This commit is contained in:
parent
6f6d962ab9
commit
93b492e9e6
2 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,7 @@ import QtQuick.Controls 2.3
|
||||||
AbstractButton {
|
AbstractButton {
|
||||||
id: button
|
id: button
|
||||||
|
|
||||||
|
property alias cursor: mouseArea.cursorShape
|
||||||
property string image: undefined
|
property string image: undefined
|
||||||
property color highlightColor: colors.highlight
|
property color highlightColor: colors.highlight
|
||||||
property color buttonTextColor: colors.buttonText
|
property color buttonTextColor: colors.buttonText
|
||||||
|
|
|
@ -9,6 +9,7 @@ ImageButton {
|
||||||
height: 16
|
height: 16
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
changeColorOnHover: (model.state == MtxEvent.Read)
|
changeColorOnHover: (model.state == MtxEvent.Read)
|
||||||
|
cursor: (model.state == MtxEvent.Read) ? Qt.PointingHandCursor : Qt.ArrowCursor
|
||||||
ToolTip.visible: hovered && model.state != MtxEvent.Empty
|
ToolTip.visible: hovered && model.state != MtxEvent.Empty
|
||||||
ToolTip.text: {
|
ToolTip.text: {
|
||||||
switch (model.state) {
|
switch (model.state) {
|
||||||
|
|
Loading…
Reference in a new issue