Changeset View
Changeset View
Standalone View
Standalone View
tests/components/textfield.qml
1 | import QtQuick 2.0 | 1 | import QtQuick 2.0 | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | import org.kde.plasma.components 2.0 as PlasmaComponents | 3 | import org.kde.plasma.components 2.0 as PlasmaComponents | ||
4 | 4 | | |||
5 | import QtQuick.Controls 1.3 | 5 | import QtQuick.Controls 1.3 | ||
6 | 6 | | |||
7 | Rectangle { | 7 | ComponentBase { | ||
8 | id: root | 8 | id: root | ||
9 | color: "white" | | |||
10 | width: 800 | | |||
11 | height: 300 | | |||
12 | | ||||
13 | property string longText: "This is a longer sentence" | 9 | property string longText: "This is a longer sentence" | ||
14 | 10 | | |||
15 | Flow { | 11 | Flow { | ||
16 | anchors.fill: parent | 12 | anchors.fill: parent | ||
17 | anchors.margins: 20 | 13 | anchors.margins: 20 | ||
18 | spacing: 20 | 14 | spacing: 20 | ||
19 | 15 | | |||
20 | PlasmaComponents.TextField { | 16 | PlasmaComponents.TextField { | ||
Show All 38 Lines |