Code style improvements

According to our guidelines: Brackets on new line, spaces around binary operators but not within brackets.

Contributes to issue CURA-5035.
This commit is contained in:
Ruben D 2018-05-02 12:40:59 +02:00
parent 9a5fb47a6e
commit 0d66850bd4
No known key found for this signature in database
GPG Key ID: 6B42C9465E304A62
2 changed files with 5 additions and 4 deletions

View File

@ -33,7 +33,8 @@ Item
top: parent.top top: parent.top
horizontalCenter: parent.horizontalCenter horizontalCenter: parent.horizontalCenter
} }
Image { Image
{
anchors.centerIn: parent anchors.centerIn: parent
width: UM.Theme.getSize("toolbox_thumbnail_large").width - 2 * UM.Theme.getSize("default_margin").width width: UM.Theme.getSize("toolbox_thumbnail_large").width - 2 * UM.Theme.getSize("default_margin").width
height: UM.Theme.getSize("toolbox_thumbnail_large").height - 2 * UM.Theme.getSize("default_margin").height height: UM.Theme.getSize("toolbox_thumbnail_large").height - 2 * UM.Theme.getSize("default_margin").height

View File

@ -75,7 +75,7 @@ Item
{ {
if (model.author_email) if (model.author_email)
{ {
return "<a href=\"mailto:"+model.author_email+"?Subject=Cura: "+model.name+"\">"+model.author_name+"</a>" return "<a href=\"mailto:" + model.author_email + "?Subject=Cura: " + model.name + "\">" + model.author_name + "</a>"
} }
else else
{ {
@ -87,7 +87,7 @@ Item
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignLeft horizontalAlignment: Text.AlignLeft
onLinkActivated: Qt.openUrlExternally("mailto:"+model.author_email+"?Subject=Cura: "+model.name+" Plugin") onLinkActivated: Qt.openUrlExternally("mailto:" + model.author_email + "?Subject=Cura: " + model.name + " Plugin")
color: model.enabled ? UM.Theme.getColor("text") : UM.Theme.getColor("lining") color: model.enabled ? UM.Theme.getColor("text") : UM.Theme.getColor("lining")
} }
} }
@ -153,7 +153,7 @@ Item
} }
else else
{ {
toolbox.uninstall( model.id ) toolbox.uninstall(model.id)
} }
} }
} }