Warning, /plasma/libplasma/tests/components/textarea3.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 TextArea"
0014 
0015     property string longText: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed at volutpat nibh, non elementum nulla. Nunc sem magna, semper sit amet sollicitudin et, vestibulum sed metus. Fusce tempor dolor purus, non posuere urna sodales in. Aenean eu erat ipsum. Fusce egestas pulvinar nisi. Mauris vel enim tincidunt, elementum diam sed, tincidunt nulla. Maecenas tempus vitae ligula et convallis. Nullam justo velit, dignissim a nisl at, blandit posuere leo. Maecenas ac scelerisque odio, eget placerat ipsum. Ut iaculis, tortor et ullamcorper fringilla, mauris neque dapibus arcu, eget suscipit libero libero ut nunc. Sed maximus enim a ligula facilisis, non efficitur dolor blandit. Curabitur venenatis mattis erat ac gravida."
0016 
0017     contentItem: Flow {
0018         spacing: Kirigami.Units.gridUnit
0019 
0020         PlasmaComponents.TextArea {
0021             placeholderText: "CHEESE"
0022             wrapMode: TextEdit.Wrap
0023             width: 150
0024             height: 100
0025         }
0026 
0027         PlasmaComponents.TextArea {
0028             text: root.longText
0029             wrapMode: TextEdit.Wrap
0030             width: 150
0031             height: 100
0032         }
0033 
0034 
0035         PlasmaComponents.TextArea {
0036             text: root.longText
0037             wrapMode: TextEdit.Wrap
0038             width: 150
0039             height: 100
0040         }
0041     }
0042 }