mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 21:44:01 -06:00
Switch old checkbox over to styled variant
CURA-8949
This commit is contained in:
parent
af99b87bef
commit
8e55dda3cc
1 changed files with 3 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue