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:
authorRemco Burema <r.burema@ultimaker.com>2022-10-12 15:43:55 +0300
committerRemco Burema <r.burema@ultimaker.com>2022-10-12 15:43:55 +0300
commit8db3f02a4f27f3ed90213d5680935297000e4f96 (patch)
tree115a6347d309ef23561152f2c545b84ffbc17657
parent74f864e2851ea7aeae905518912d94171b35a447 (diff)
Re-add tooltips for intent profile selection in recommended.
They where skipped over when transferring the radio bar to the current large button based setup. CURA-9746
-rw-r--r--resources/qml/PrintSetupSelector/Recommended/RecommendedQualityProfileSelector.qml2
-rw-r--r--resources/qml/PrintSetupSelector/Recommended/RecommendedQualityProfileSelectorButton.qml8
2 files changed, 9 insertions, 1 deletions
diff --git a/resources/qml/PrintSetupSelector/Recommended/RecommendedQualityProfileSelector.qml b/resources/qml/PrintSetupSelector/Recommended/RecommendedQualityProfileSelector.qml
index bc5826fe7c..89644d887f 100644
--- a/resources/qml/PrintSetupSelector/Recommended/RecommendedQualityProfileSelector.qml
+++ b/resources/qml/PrintSetupSelector/Recommended/RecommendedQualityProfileSelector.qml
@@ -32,7 +32,7 @@ Item
{
profileName: model.name
icon: model.icon
-
+ tooltipText: (model.description != undefined) ? model.description : ""
selected: Cura.MachineManager.activeIntentCategory == model.intent_category
diff --git a/resources/qml/PrintSetupSelector/Recommended/RecommendedQualityProfileSelectorButton.qml b/resources/qml/PrintSetupSelector/Recommended/RecommendedQualityProfileSelectorButton.qml
index 6804e7e5ba..2a63345b48 100644
--- a/resources/qml/PrintSetupSelector/Recommended/RecommendedQualityProfileSelectorButton.qml
+++ b/resources/qml/PrintSetupSelector/Recommended/RecommendedQualityProfileSelectorButton.qml
@@ -19,6 +19,7 @@ Rectangle
property bool selected: false
property string profileName: ""
property string icon: ""
+ property alias tooltipText: tooltip.text
signal clicked()
@@ -30,6 +31,13 @@ Rectangle
onClicked: base.clicked()
}
+ UM.ToolTip
+ {
+ id: tooltip
+ visible: mouseArea.containsMouse
+ targetPoint: Qt.point(base.x + (base.width / 2), base.y + (base.height / 2))
+ }
+
Item
{
width: intentIcon.width