mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 05:07:50 -06:00
Specify width and height in Cura.Checkbox
Update Dialogs to use Cura.CheckBox instead of QtQuick. This will make it easier to update the QtQuick checkbox version.
This commit is contained in:
parent
25fa71b056
commit
670872f8d1
4 changed files with 7 additions and 10 deletions
|
@ -57,12 +57,12 @@ UM.Dialog
|
|||
onTextChanged: settingPickDialog.updateFilter()
|
||||
}
|
||||
|
||||
CheckBox
|
||||
Cura.CheckBox
|
||||
{
|
||||
id: toggleShowAll
|
||||
anchors
|
||||
{
|
||||
top: parent.top
|
||||
verticalCenter: parent.verticalCenter
|
||||
right: parent.right
|
||||
}
|
||||
text: catalog.i18nc("@label:checkbox", "Show all")
|
||||
|
|
|
@ -92,17 +92,11 @@ UM.Dialog
|
|||
wrapMode: Text.WordWrap
|
||||
}
|
||||
|
||||
CheckBox
|
||||
Cura.CheckBox
|
||||
{
|
||||
id: rememberChoiceCheckBox
|
||||
text: catalog.i18nc("@text:window", "Remember my choice")
|
||||
checked: UM.Preferences.getValue("cura/choice_on_open_project") != "always_ask"
|
||||
style: CheckBoxStyle {
|
||||
label: Label {
|
||||
text: control.text
|
||||
font: UM.Theme.getFont("default")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Buttons
|
||||
|
|
|
@ -275,7 +275,7 @@ UM.Dialog
|
|||
width: parent.width
|
||||
height: childrenRect.height
|
||||
anchors.bottom: parent.bottom
|
||||
CheckBox
|
||||
Cura.CheckBox
|
||||
{
|
||||
id: dontShowAgainCheckbox
|
||||
anchors.left: parent.left
|
||||
|
|
|
@ -17,6 +17,9 @@ CheckBox
|
|||
|
||||
hoverEnabled: true
|
||||
|
||||
height: UM.Theme.getSize("checkbox").height
|
||||
width: UM.Theme.getSize("checkbox").width
|
||||
|
||||
indicator: Rectangle
|
||||
{
|
||||
width: control.height
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue