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
horizontalCenter: parent.horizontalCenter
}
Image {
Image
{
anchors.centerIn: parent
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

View file

@ -75,7 +75,7 @@ Item
{
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
{
@ -87,7 +87,7 @@ Item
wrapMode: Text.WordWrap
verticalAlignment: Text.AlignVCenter
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")
}
}
@ -153,7 +153,7 @@ Item
}
else
{
toolbox.uninstall( model.id )
toolbox.uninstall(model.id)
}
}
}