Add testcase for textfield
Change-Id: I579ab98a86e674cd1d6bd6c43c9c369259536248
This commit is contained in:
parent
98af054c28
commit
094a1c105d
38
tests/components/textfield.qml
Normal file
38
tests/components/textfield.qml
Normal file
@ -0,0 +1,38 @@
|
||||
import QtQuick 2.0
|
||||
|
||||
import org.kde.plasma.components 2.0 as PlasmaComponents
|
||||
|
||||
import QtQuick.Controls 1.3
|
||||
|
||||
Rectangle {
|
||||
id: root
|
||||
color: "white"
|
||||
width: 800
|
||||
height: 300
|
||||
|
||||
property string longText: "This is a longer sentence"
|
||||
|
||||
Flow {
|
||||
anchors.fill: parent
|
||||
anchors.margins: 20
|
||||
spacing: 20
|
||||
|
||||
PlasmaComponents.TextField {
|
||||
placeholderText: longText
|
||||
}
|
||||
|
||||
PlasmaComponents.TextField {
|
||||
text: root.longText
|
||||
}
|
||||
|
||||
PlasmaComponents.TextField {
|
||||
text: root.longText
|
||||
clearButtonShown: true
|
||||
}
|
||||
|
||||
PlasmaComponents.TextField {
|
||||
width: 400
|
||||
placeholderText: longText
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user