mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 21:48:58 +08:00
Switch old checkbox over to styled variant
CURA-8949
This commit is contained in:
parent
af99b87bef
commit
8e55dda3cc
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user