Fix some codestyle issues

This commit is contained in:
Jaime van Kessel 2019-12-23 11:13:59 +01:00
parent 5061a36aba
commit f983990ac1
No known key found for this signature in database
GPG key ID: 3710727397403C91
2 changed files with 107 additions and 111 deletions

View file

@ -40,7 +40,8 @@ Item
// update active type label // update active type label
for (var button in meshTypeButtons.children) for (var button in meshTypeButtons.children)
{ {
if (meshTypeButtons.children[button].checked){ if (meshTypeButtons.children[button].checked)
{
meshTypeLabel.text = catalog.i18nc("@label", "Mesh Type") + ": " + meshTypeButtons.children[button].text meshTypeLabel.text = catalog.i18nc("@label", "Mesh Type") + ": " + meshTypeButtons.children[button].text
break break
} }
@ -321,10 +322,7 @@ Item
Connections Connections
{ {
target: inheritStackProvider target: inheritStackProvider
onPropertiesChanged: onPropertiesChanged: provider.forcePropertiesChanged()
{
provider.forcePropertiesChanged()
}
} }
Connections Connections
@ -460,5 +458,4 @@ Item
Cura.SettingUnknown { } Cura.SettingUnknown { }
} }
} }

View file

@ -7,7 +7,7 @@ import Cura 1.0 as Cura
import ".." import ".."
UM.Dialog UM.Dialog
{ {
id: settingPickDialog id: settingPickDialog
title: catalog.i18nc("@title:window", "Select Settings to Customize for this model") title: catalog.i18nc("@title:window", "Select Settings to Customize for this model")
@ -40,10 +40,12 @@ UM.Dialog
listview.model.filter = new_filter listview.model.filter = new_filter
} }
TextField { TextField
{
id: filterInput id: filterInput
anchors { anchors
{
top: parent.top top: parent.top
left: parent.left left: parent.left
right: toggleShowAll.left right: toggleShowAll.left
@ -59,17 +61,15 @@ UM.Dialog
{ {
id: toggleShowAll id: toggleShowAll
anchors { anchors
{
top: parent.top top: parent.top
right: parent.right right: parent.right
} }
text: catalog.i18nc("@label:checkbox", "Show all") text: catalog.i18nc("@label:checkbox", "Show all")
checked: listview.model.showAll checked: listview.model.showAll
onClicked: onClicked: listview.model.showAll = checked
{
listview.model.showAll = checked
}
} }
ScrollView ScrollView
@ -126,11 +126,10 @@ UM.Dialog
} }
rightButtons: [ rightButtons: [
Button { Button
{
text: catalog.i18nc("@action:button", "Close") text: catalog.i18nc("@action:button", "Close")
onClicked: { onClicked: settingPickDialog.visible = false
settingPickDialog.visible = false
}
} }
] ]
} }