Warning, /plasma/plasma-sdk/themeexplorer/package/contents/ui/delegates/button.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * SPDX-FileCopyrightText: 2015 Marco Martin <mart@kde.org> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 import QtQuick 2.0 0008 import QtQuick.Layouts 1.1 0009 0010 import org.kde.plasma.components 3.0 as PlasmaComponents 0011 import org.kde.kirigami 2.20 as Kirigami 0012 0013 Item { 0014 Rectangle { 0015 id: background 0016 anchors { 0017 fill: parent 0018 margins: units.gridUnit 0019 } 0020 radius: 3 0021 color: Kirigami.Theme.backgroundColor 0022 opacity: 0.6 0023 } 0024 Column { 0025 anchors.centerIn: parent 0026 PlasmaComponents.ToolButton { 0027 text: i18n("ToolButton") 0028 width: background.width - 10 0029 } 0030 PlasmaComponents.Button { 0031 text: i18n("Button") 0032 width: background.width - 10 0033 } 0034 PlasmaComponents.Label { 0035 anchors.horizontalCenter: parent.horizontalCenter 0036 text: model.imagePath 0037 visible: width < background.width 0038 } 0039 } 0040 }