kcms/rules: Add tooltip when rule name is elided

This commit is contained in:
Kai Uwe Broulik 2023-11-25 19:24:09 +01:00
parent e8dc372c5f
commit 41659956e7

View file

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