From 8e55dda3cca087a0d76011a58f11968b6a5806cf Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Mon, 21 Feb 2022 10:03:44 +0100 Subject: [PATCH] Switch old checkbox over to styled variant CURA-8949 --- resources/qml/Preferences/SettingVisibilityPage.qml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/resources/qml/Preferences/SettingVisibilityPage.qml b/resources/qml/Preferences/SettingVisibilityPage.qml index 0c8e5798c0..48580da1ac 100644 --- a/resources/qml/Preferences/SettingVisibilityPage.qml +++ b/resources/qml/Preferences/SettingVisibilityPage.qml @@ -3,7 +3,6 @@ import QtQuick 2.1 import QtQuick.Controls 2.15 -import QtQuick.Controls 1.1 as OldControls import UM 1.5 as UM @@ -43,7 +42,7 @@ UM.PreferencesPage id: base anchors.fill: parent - OldControls.CheckBox + UM.CheckBox { id: toggleVisibleSettings anchors @@ -53,7 +52,7 @@ UM.PreferencesPage leftMargin: UM.Theme.getSize("default_margin").width } text: catalog.i18nc("@label:textbox", "Check all") - checkedState: + checkState: { if(definitionsModel.visibleCount == definitionsModel.categoryCount) { @@ -68,8 +67,7 @@ UM.PreferencesPage return Qt.PartiallyChecked } } - partiallyCheckedEnabled: true - + tristate: true MouseArea { anchors.fill: parent;