Fix code style

These changed in the same pull request so I'll remove them here.

Contributes to issue CURA-5682.
This commit is contained in:
Ghostkeeper 2018-09-06 17:23:16 +02:00
parent 9e56d6d29f
commit c1ef9abf1d
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A
4 changed files with 9 additions and 6 deletions

View file

@ -109,7 +109,8 @@ Rectangle
} }
} }
Connections { Connections
{
target: UM.Preferences target: UM.Preferences
onPreferenceChanged: onPreferenceChanged:
{ {

View file

@ -42,7 +42,7 @@ Item
Cura.MaterialBrandsModel { id: materials_model } Cura.MaterialBrandsModel { id: materials_model }
Cura.GenericMaterialsModel { id: generic_materials_model } Cura.GenericMaterialsModel { id: generic_materials_model }
function expandActiveMaterial( search_root_id ) function expandActiveMaterial(search_root_id)
{ {
for (var n = 0; n < generic_materials_model.rowCount(); n++) for (var n = 0; n < generic_materials_model.rowCount(); n++)
{ {

View file

@ -21,7 +21,8 @@ Rectangle
width: parent.width width: parent.width
color: base.currentItem == model ? UM.Theme.getColor("favorites_row_selected") : "transparent" color: base.currentItem == model ? UM.Theme.getColor("favorites_row_selected") : "transparent"
Component.onCompleted: { Component.onCompleted:
{
if (material.root_material_id == base.active_root_material_id) { if (material.root_material_id == base.active_root_material_id) {
base.currentItem = material base.currentItem = material
} }
@ -55,7 +56,8 @@ Rectangle
MouseArea MouseArea
{ {
anchors.fill: parent anchors.fill: parent
onClicked: { onClicked:
{
base.currentItem = material base.currentItem = material
base.current_brand = material.brand base.current_brand = material.brand
base.current_type = material.brand+"_"+material.material base.current_type = material.brand+"_"+material.material

View file

@ -59,7 +59,6 @@ Rectangle
width: parent.width - UM.Theme.getSize("favorites_button").width width: parent.width - UM.Theme.getSize("favorites_button").width
id: material_type_name id: material_type_name
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
} }
Button Button
{ {
@ -127,7 +126,8 @@ Rectangle
} }
} }
Connections { Connections
{
target: UM.Preferences target: UM.Preferences
onPreferenceChanged: onPreferenceChanged:
{ {