Warning, /plasma/plasma-sdk/themeexplorer/package/contents/ui/delegates/textfield.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: Kirigami.Units.gridUnit
0019         }
0020         radius: 3
0021         color: Kirigami.Theme.backgroundColor
0022         opacity: 0.6
0023     }
0024     Column {
0025         anchors.centerIn: background
0026         PlasmaComponents.TextField {
0027             width: background.width - 10
0028             text: i18n("Text")
0029         }
0030         PlasmaComponents.Label {
0031             anchors.horizontalCenter: parent.horizontalCenter
0032             text: model.imagePath
0033             visible: width < background.width
0034         }
0035     }
0036 }