mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 18:27:51 -06:00
Fix some codestyle issues
This commit is contained in:
parent
5061a36aba
commit
f983990ac1
2 changed files with 107 additions and 111 deletions
|
@ -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 { }
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue