diff --git a/qml/AppUI/AppLabelPage.qml b/qml/AppUI/AppLabelPage.qml index 0be89a5..d6e0297 100644 --- a/qml/AppUI/AppLabelPage.qml +++ b/qml/AppUI/AppLabelPage.qml @@ -43,6 +43,13 @@ GridView { focus: true hoverEnabled: true + UkuiItems.Tooltip { + anchors.fill: parent + mainText: modelData.label + posFollowCursor: true + active: labelArea.showTooltip + } + onClicked: { GridView.view.labelSelected(modelData.label); GridView.view.currentIndex = model.index @@ -55,6 +62,9 @@ GridView { } UkuiItems.StyleBackground { + id: labelArea + property bool showTooltip: labelText.visible ? labelText.truncated : false + anchors.fill: parent radius: Platform.Theme.normalRadius @@ -66,6 +76,7 @@ GridView { borderColor: Platform.Theme.Highlight UkuiItems.StyleText { + id: labelText anchors.fill: parent visible: modelData.type === LabelItem.Text text: modelData.display diff --git a/qml/AppUI/FullScreenAppItem.qml b/qml/AppUI/FullScreenAppItem.qml index 4aa1b71..6c35bd8 100644 --- a/qml/AppUI/FullScreenAppItem.qml +++ b/qml/AppUI/FullScreenAppItem.qml @@ -33,6 +33,13 @@ MouseArea { hoverEnabled: true + UkuiItems.Tooltip { + anchors.fill: parent + mainText: text.text + posFollowCursor: true + active: text.truncated + } + UkuiItems.StyleBackground { id: styleBackground anchors.fill: parent