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:
authorGhostkeeper <rubend@tutanota.com>2022-06-14 19:20:00 +0300
committerGhostkeeper <rubend@tutanota.com>2022-06-14 19:20:00 +0300
commitb18cb1f649db96090e4cd4c8e78504d435618a36 (patch)
tree95c9aa18e31cf61b1f115a307a1676f690b0f7b9 /resources/qml
parent5c15ac68b89ae7c526c319ab0316f4cf7333c584 (diff)
Show UnsupportedProfileIndication if list of quality types is empty
And otherwise show the intent and quality level selectors. This is currently quite broken because the list of quality levels is not correct. It should only show a quality type if it is supported by all extruders. Contributes to issue CURA-8849.
Diffstat (limited to 'resources/qml')
-rw-r--r--resources/qml/PrintSetupSelector/Recommended/RecommendedPrintSetup.qml14
-rw-r--r--resources/qml/PrintSetupSelector/Recommended/RecommendedResolutionSelector.qml2
2 files changed, 14 insertions, 2 deletions
diff --git a/resources/qml/PrintSetupSelector/Recommended/RecommendedPrintSetup.qml b/resources/qml/PrintSetupSelector/Recommended/RecommendedPrintSetup.qml
index f0b1010517..fbe1c5bc54 100644
--- a/resources/qml/PrintSetupSelector/Recommended/RecommendedPrintSetup.qml
+++ b/resources/qml/PrintSetupSelector/Recommended/RecommendedPrintSetup.qml
@@ -1,5 +1,5 @@
-// Copyright (c) 2018 Ultimaker B.V.
-// Cura is released under the terms of the LGPLv3 or higher.
+//Copyright (c) 2022 Ultimaker B.V.
+//Cura is released under the terms of the LGPLv3 or higher.
import QtQuick 2.10
@@ -39,11 +39,21 @@ Item
RecommendedQualityProfileSelector
{
width: parent.width
+
+ visible: recommendedResolutionSelector.visible
}
RecommendedResolutionSelector
{
+ id: recommendedResolutionSelector
+ width: parent.width
+ }
+
+ UnsupportedProfileIndication
+ {
width: parent.width
+
+ visible: !recommendedResolutionSelector.visible
}
//Line between the sections.
diff --git a/resources/qml/PrintSetupSelector/Recommended/RecommendedResolutionSelector.qml b/resources/qml/PrintSetupSelector/Recommended/RecommendedResolutionSelector.qml
index c69b4dbd13..6217cfe1cc 100644
--- a/resources/qml/PrintSetupSelector/Recommended/RecommendedResolutionSelector.qml
+++ b/resources/qml/PrintSetupSelector/Recommended/RecommendedResolutionSelector.qml
@@ -15,6 +15,8 @@ Item
property string _previousResolution: "" //Internal variable to detect changes.
Component.onCompleted: _previousResolution = Cura.MachineManager.activeQualityType;
+ visible: visibilityPreset.count > 0 //Only show if there are quality types to select from.
+
Cura.IconWithText
{
id: resolutionTitle