summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlvisual/qdeclarativetextinput/hAlign.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qmlvisual/qdeclarativetextinput/hAlign.qml')
-rw-r--r--tests/auto/declarative/qmlvisual/qdeclarativetextinput/hAlign.qml27
1 files changed, 14 insertions, 13 deletions
diff --git a/tests/auto/declarative/qmlvisual/qdeclarativetextinput/hAlign.qml b/tests/auto/declarative/qmlvisual/qdeclarativetextinput/hAlign.qml
index cf29f7c..f36a752 100644
--- a/tests/auto/declarative/qmlvisual/qdeclarativetextinput/hAlign.qml
+++ b/tests/auto/declarative/qmlvisual/qdeclarativetextinput/hAlign.qml
@@ -1,39 +1,40 @@
import QtQuick 1.0
+import "../shared" 1.0
Item{
width:600;
height:300;
- Column{
+ Column {
//Because they have auto width, these three should look the same
- TextInput{
- text: "Jackdaws love my big sphinx of quartz";
+ TestTextInput {
+ text: "Jackdaws love my big sphinx of quartz";
horizontalAlignment: TextInput.AlignLeft;
}
- TextInput{
- text: "Jackdaws love my big sphinx of quartz";
+ TestTextInput {
+ text: "Jackdaws love my big sphinx of quartz";
horizontalAlignment: TextInput.AlignHCenter;
}
- TextInput{
- text: "Jackdaws love my big sphinx of quartz";
+ TestTextInput {
+ text: "Jackdaws love my big sphinx of quartz";
horizontalAlignment: TextInput.AlignRight;
}
Rectangle{ width: 600; height: 10; color: "pink" }
- TextInput{
+ TestTextInput {
height: 30;
width: 600;
- text: "Jackdaws love my big sphinx of quartz";
+ text: "Jackdaws love my big sphinx of quartz";
horizontalAlignment: TextInput.AlignLeft;
}
- TextInput{
+ TestTextInput {
height: 30;
width: 600;
- text: "Jackdaws love my big sphinx of quartz";
+ text: "Jackdaws love my big sphinx of quartz";
horizontalAlignment: TextInput.AlignHCenter;
}
- TextInput{
+ TestTextInput {
height: 30;
width: 600;
- text: "Jackdaws love my big sphinx of quartz";
+ text: "Jackdaws love my big sphinx of quartz";
horizontalAlignment: TextInput.AlignRight;
}
}