summaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/qml/IconButton.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/framework/qml/IconButton.qml b/framework/qml/IconButton.qml
index 302e51b0..8fd8b705 100644
--- a/framework/qml/IconButton.qml
+++ b/framework/qml/IconButton.qml
@@ -23,6 +23,7 @@ AbstractButton {
23 id: root 23 id: root
24 24
25 property alias iconName: icon.iconName 25 property alias iconName: icon.iconName
26 property alias tooltip: toolTipItem.text
26 27
27 width: Units.gridUnit + leftPadding + rightPadding 28 width: Units.gridUnit + leftPadding + rightPadding
28 height: Units.gridUnit + topPadding + bottomPadding 29 height: Units.gridUnit + topPadding + bottomPadding
@@ -33,5 +34,10 @@ AbstractButton {
33 contentItem: Icon { 34 contentItem: Icon {
34 id: icon 35 id: icon
35 } 36 }
37
38 ToolTip {
39 id: toolTipItem
40 visible: parent.hovered && text != ""
41 }
36} 42}
37 43