1/*
2 *   SPDX-FileCopyrightText: 2015 Marco Martin <mart@kde.org>
3 *
4 *   SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7import QtQuick 2.0
8import QtQuick.Layouts 1.1
9import QtQuick.Controls 1.3
10
11import org.kde.plasma.core 2.0 as PlasmaCore
12import org.kde.plasma.components 2.0 as PlasmaComponents
13
14Item {
15    Rectangle {
16        id: background
17        anchors {
18            fill: parent
19            margins: units.gridUnit
20        }
21        radius: 3
22        color: theme.backgroundColor
23        opacity: 0.6
24    }
25    Column {
26        anchors.centerIn: parent
27        PlasmaComponents.ToolButton {
28            text: i18n("ToolButton")
29            width: background.width - 10
30        }
31        PlasmaComponents.Button {
32            text: i18n("Button")
33            width: background.width - 10
34        }
35        PlasmaComponents.Label {
36            anchors.horizontalCenter: parent.horizontalCenter
37            text: model.imagePath
38            visible: width < background.width
39        }
40    }
41}
42