Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCasper Lamboo <c.lamboo@ultimaker.com>2022-06-29 14:01:09 +0300
committerGitHub <noreply@github.com>2022-06-29 14:01:09 +0300
commitf4ee4ad05d0ff704e1bfc5650872da9ba6743490 (patch)
tree896429429d27e05f6b72d562b520bacfd42ba51e /resources/qml/IconWithText.qml
parentf241638890ac1076546f01593c5ccb3253812d51 (diff)
parent7700d01cf35b2d0ed7a93580051044257f925b6d (diff)
Merge pull request #12573 from Ultimaker/CURA-8849_more_intent_fixes
[CURA-8849] more intent fixes
Diffstat (limited to 'resources/qml/IconWithText.qml')
-rw-r--r--resources/qml/IconWithText.qml11
1 files changed, 11 insertions, 0 deletions
diff --git a/resources/qml/IconWithText.qml b/resources/qml/IconWithText.qml
index 24f211ae17..df72286943 100644
--- a/resources/qml/IconWithText.qml
+++ b/resources/qml/IconWithText.qml
@@ -24,6 +24,8 @@ Item
property alias wrapMode: label.wrapMode
property real spacing: UM.Theme.getSize("narrow_margin").width
+ property string tooltipText: ""
+
// These properties can be used in combination with layouts.
readonly property real contentWidth: icon.width + margin + label.contentWidth
readonly property real minContentWidth: Math.round(icon.width + margin + 0.5 * label.contentWidth)
@@ -66,4 +68,13 @@ Item
margins: margin
}
}
+
+ MouseArea
+ {
+ enabled: tooltipText != ""
+ anchors.fill: parent
+ hoverEnabled: true
+ onEntered: base.showTooltip(parent, Qt.point(-UM.Theme.getSize("thick_margin").width, 0), tooltipText)
+ onExited: base.hideTooltip()
+ }
} \ No newline at end of file