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
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
break
}
@ -321,10 +322,7 @@ Item
Connections
{
target: inheritStackProvider
onPropertiesChanged:
{
provider.forcePropertiesChanged()
}
onPropertiesChanged: provider.forcePropertiesChanged()
}
Connections
@ -460,5 +458,4 @@ Item
Cura.SettingUnknown { }
}
}

View file

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