Skip to content

Commit

Permalink
feat: add tooltip when rule name is elided
Browse files Browse the repository at this point in the history
  • Loading branch information
kbroulik authored and romangg committed Dec 12, 2023
1 parent cb235e0 commit 19ed17c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions kcms/rules/ui/RuleItemDelegate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,21 @@ QQC2.ItemDelegate {
spacing: Kirigami.Units.smallSpacing

QQC2.Label {
id: label
text: model.name
horizontalAlignment: Text.AlignLeft
elide: Text.ElideRight
Layout.fillWidth: true
Layout.alignment: Qt.AlignVCenter

HoverHandler {
id: labelHover
enabled: label.truncated
}

QQC2.ToolTip.text: model.name
QQC2.ToolTip.visible: labelHover.hovered
QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
}

KCM.ContextualHelpButton {
Expand Down

0 comments on commit 19ed17c

Please sign in to comment.