Warning, /kdevelop/kdevelop/plugins/welcomepage/qml/StandardBackground.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2011 Aleix Pol <aleixpol@kde.org>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 import QtQuick 2.7
0008 import QtQuick.Controls 2.0
0009 import QtQuick.Layouts 1.2
0010 
0011 GroupBox
0012 {
0013     id: bg
0014     property alias tools: toolsLoader.sourceComponent
0015     property string pageIcon
0016     readonly property real marginLeft: toolsLoader.x + toolsLoader.width
0017     property real margins: 5
0018 
0019     Loader {
0020         id: toolsLoader
0021 
0022         width: bg.width/4
0023 
0024         anchors {
0025             top: parent.top
0026             topMargin: 15
0027             left: parent.left
0028             leftMargin: 15
0029             bottom: parent.bottom
0030             bottomMargin: 15
0031         }
0032     }
0033 
0034     Image {
0035         id: theIcon
0036         anchors {
0037             bottom: parent.bottom
0038             left: parent.left
0039             margins: bg.margins
0040         }
0041         source: bg.pageIcon !== "" ? "image://icon/" + bg.pageIcon : ""
0042         width: 64
0043         height: width
0044     }
0045 }