From 2548fd8014c98d1d99c8f2da77df11965defc09b Mon Sep 17 00:00:00 2001 From: jelle Spijker Date: Mon, 30 Aug 2021 13:39:12 +0200 Subject: [PATCH] Fix greyed out cluster printers The PrintWindow still used an old style combobox. This resulted in a Mac user not being able to specify which clustered printer he wanted to send a slice to. Using the new QtQuick.Controls and specifically setting the currentIndex fixed it for Mac. --- plugins/UM3NetworkPrinting/resources/qml/PrintWindow.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/UM3NetworkPrinting/resources/qml/PrintWindow.qml b/plugins/UM3NetworkPrinting/resources/qml/PrintWindow.qml index 6d9f375788..441766a8e7 100644 --- a/plugins/UM3NetworkPrinting/resources/qml/PrintWindow.qml +++ b/plugins/UM3NetworkPrinting/resources/qml/PrintWindow.qml @@ -2,7 +2,8 @@ // Cura is released under the terms of the LGPLv3 or higher. import QtQuick 2.2 import QtQuick.Window 2.2 -import QtQuick.Controls 1.2 +import QtQuick.Controls 2.15 + import UM 1.1 as UM UM.Dialog { @@ -84,6 +85,7 @@ UM.Dialog { ComboBox { id: printerComboBox; + currentIndex: 0; Behavior on height { NumberAnimation { duration: 100 } } height: 40 * screenScaleFactor; model: ListModel {