Warning, /plasma/libplasma/tests/components/textfield3.qml is written in an unsupported language. File is not indexed.

0001 /*
0002  * SPDX-FileCopyrightText: 2019 David Edmundson <kde@davidedmundson.co.uk>
0003  * SPDX-FileCopyrightText: 2020 Noah Davis <noahadvs@gmail.com>
0004  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005  */
0006 import QtQuick
0007 import QtQuick.Layouts
0008 import org.kde.plasma.components as PlasmaComponents
0009 import org.kde.kirigami as Kirigami
0010 
0011 ComponentBase {
0012     id: root
0013     title: "Plasma Components 3 TextField"
0014     property string longText: "This is a longer sentence"
0015 
0016     contentItem: Flow {
0017         spacing: Kirigami.Units.gridUnit
0018 
0019         PlasmaComponents.TextField {
0020             placeholderText: longText
0021         }
0022 
0023         PlasmaComponents.TextField {
0024             text: root.longText
0025         }
0026 
0027         PlasmaComponents.TextField {
0028             width: 400
0029             placeholderText: longText
0030         }
0031 
0032         PlasmaComponents.TextField {
0033             text: root.longText
0034             echoMode: TextInput.Password
0035         }
0036     }
0037 }