From 0d66850bd4cff54b4942721f227d13ebdad4c85b Mon Sep 17 00:00:00 2001 From: Ruben D Date: Wed, 2 May 2018 12:40:59 +0200 Subject: [PATCH] Code style improvements According to our guidelines: Brackets on new line, spaces around binary operators but not within brackets. Contributes to issue CURA-5035. --- .../Toolbox/resources/qml/ToolboxDownloadsShowcaseTile.qml | 3 ++- plugins/Toolbox/resources/qml/ToolboxInstalledTile.qml | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/Toolbox/resources/qml/ToolboxDownloadsShowcaseTile.qml b/plugins/Toolbox/resources/qml/ToolboxDownloadsShowcaseTile.qml index 0a2924c600..a699e9dae6 100644 --- a/plugins/Toolbox/resources/qml/ToolboxDownloadsShowcaseTile.qml +++ b/plugins/Toolbox/resources/qml/ToolboxDownloadsShowcaseTile.qml @@ -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 diff --git a/plugins/Toolbox/resources/qml/ToolboxInstalledTile.qml b/plugins/Toolbox/resources/qml/ToolboxInstalledTile.qml index e8c9a17eba..ff27e004b2 100644 --- a/plugins/Toolbox/resources/qml/ToolboxInstalledTile.qml +++ b/plugins/Toolbox/resources/qml/ToolboxInstalledTile.qml @@ -75,7 +75,7 @@ Item { if (model.author_email) { - return ""+model.author_name+"" + return "" + model.author_name + "" } 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) } } }