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:
Diffstat (limited to 'resources/qml/ToolTip.qml')
-rw-r--r--resources/qml/ToolTip.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/qml/ToolTip.qml b/resources/qml/ToolTip.qml
index 3157f81d89..c4edc5a361 100644
--- a/resources/qml/ToolTip.qml
+++ b/resources/qml/ToolTip.qml
@@ -38,7 +38,7 @@ ToolTip
onAboutToHide: hide()
// If the text is not set, just set the height to 0 to prevent it from showing
- height: text != "" ? label.contentHeight + 2 * UM.Theme.getSize("thin_margin").width: 0
+ height: label.contentHeight + 2 * UM.Theme.getSize("thin_margin").width
x:
{
@@ -74,7 +74,7 @@ ToolTip
}
function show() {
- opacity = 1
+ opacity = text != "" ? 1 : 0
}
function hide() {