mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 18:59:10 +08:00
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:
parent
9e56d6d29f
commit
c1ef9abf1d
@ -109,7 +109,8 @@ Rectangle
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
Connections
|
||||
{
|
||||
target: UM.Preferences
|
||||
onPreferenceChanged:
|
||||
{
|
||||
|
@ -42,7 +42,7 @@ Item
|
||||
Cura.MaterialBrandsModel { id: 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++)
|
||||
{
|
||||
|
@ -21,7 +21,8 @@ Rectangle
|
||||
width: parent.width
|
||||
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) {
|
||||
base.currentItem = material
|
||||
}
|
||||
@ -55,7 +56,8 @@ Rectangle
|
||||
MouseArea
|
||||
{
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
onClicked:
|
||||
{
|
||||
base.currentItem = material
|
||||
base.current_brand = material.brand
|
||||
base.current_type = material.brand+"_"+material.material
|
||||
|
@ -59,7 +59,6 @@ Rectangle
|
||||
width: parent.width - UM.Theme.getSize("favorites_button").width
|
||||
id: material_type_name
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
|
||||
}
|
||||
Button
|
||||
{
|
||||
@ -127,7 +126,8 @@ Rectangle
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
Connections
|
||||
{
|
||||
target: UM.Preferences
|
||||
onPreferenceChanged:
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user