Changeset View
Changeset View
Standalone View
Standalone View
tests/components/textfield3.qml
- This file was added.
1 | import QtQuick 2.0 | ||||
---|---|---|---|---|---|
2 | | ||||
3 | import org.kde.plasma.components 3.0 as PlasmaComponents | ||||
4 | | ||||
5 | Rectangle { | ||||
6 | id: root | ||||
7 | color: "white" | ||||
8 | width: 800 | ||||
9 | height: 300 | ||||
10 | | ||||
11 | property string longText: "This is a longer sentence" | ||||
12 | | ||||
13 | Flow { | ||||
14 | anchors.fill: parent | ||||
15 | anchors.margins: 20 | ||||
16 | spacing: 20 | ||||
17 | | ||||
18 | PlasmaComponents.TextField { | ||||
19 | placeholderText: longText | ||||
20 | } | ||||
21 | | ||||
22 | PlasmaComponents.TextField { | ||||
23 | text: root.longText | ||||
24 | } | ||||
25 | | ||||
26 | PlasmaComponents.TextField { | ||||
27 | width: 400 | ||||
28 | placeholderText: longText | ||||
29 | } | ||||
30 | | ||||
31 | PlasmaComponents.TextField { | ||||
32 | text: root.longText | ||||
33 | echoMode: TextInput.Password | ||||
34 | } | ||||
35 | } | ||||
36 | } |