diff --git a/plugins/welcomepage/qml/StandardBackground.qml b/plugins/welcomepage/qml/StandardBackground.qml index 313ecea207..fc26ccb321 100644 --- a/plugins/welcomepage/qml/StandardBackground.qml +++ b/plugins/welcomepage/qml/StandardBackground.qml @@ -1,69 +1,69 @@ /* KDevelop * * Copyright 2011 Aleix Pol * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA. */ import QtQuick 2.0 Rectangle { id: bg property Component tools: null property string pageIcon property real marginLeft: toolbar.x+toolbar.width property real margins: 5 Rectangle { id: toolbar radius: 5 color: Qt.rgba(0.8, 0.8, 0.8, 0.4) anchors { top: parent.top left: parent.left margins: parent.margins } width: toolsLoader.width + 2*toolsLoader.margins height: toolsLoader.height + 2*toolsLoader.margins Loader { id: toolsLoader property int margins: 20 anchors { top: parent.top left: parent.left margins: toolsLoader.margins } sourceComponent: tools } } Image { id: theIcon anchors { bottom: parent.bottom left: parent.left margins: 5 } - source: "image://icon/" + bg.pageIcon + source: bg.pageIcon !== "" ? "image://icon/" + bg.pageIcon : "" width: 64 height: width } }