mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 04:49:04 +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
|
target: UM.Preferences
|
||||||
onPreferenceChanged:
|
onPreferenceChanged:
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
|
@ -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:
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user