diff options
author | Joona Petrell <joona.t.petrell@nokia.com> | 2010-06-30 07:10:33 (GMT) |
---|---|---|
committer | Joona Petrell <joona.t.petrell@nokia.com> | 2010-07-02 04:12:40 (GMT) |
commit | 37792d20eeef870a0d695fc15bc943f20275be9a (patch) | |
tree | aa5ed14a44e8ab2edc7c3100f9c6226506c94e59 /tests/auto/declarative/qdeclarativetextinput/data | |
parent | 3256aad1195e28509a89f217bcad8435f46fe1e5 (diff) | |
download | Qt-37792d20eeef870a0d695fc15bc943f20275be9a.zip Qt-37792d20eeef870a0d695fc15bc943f20275be9a.tar.gz Qt-37792d20eeef870a0d695fc15bc943f20275be9a.tar.bz2 |
Fix TextInput text getting improperly clipped
Task-number: QTBUG-11790
Reviewed-by: Martin Jones
Diffstat (limited to 'tests/auto/declarative/qdeclarativetextinput/data')
-rw-r--r-- | tests/auto/declarative/qdeclarativetextinput/data/halign_center.png | bin | 0 -> 293 bytes | |||
-rw-r--r-- | tests/auto/declarative/qdeclarativetextinput/data/halign_left.png | bin | 0 -> 291 bytes | |||
-rw-r--r-- | tests/auto/declarative/qdeclarativetextinput/data/halign_right.png | bin | 0 -> 292 bytes | |||
-rw-r--r-- | tests/auto/declarative/qdeclarativetextinput/data/horizontalAlignment.qml | 22 |
4 files changed, 22 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativetextinput/data/halign_center.png b/tests/auto/declarative/qdeclarativetextinput/data/halign_center.png Binary files differnew file mode 100644 index 0000000..53e09a8 --- /dev/null +++ b/tests/auto/declarative/qdeclarativetextinput/data/halign_center.png diff --git a/tests/auto/declarative/qdeclarativetextinput/data/halign_left.png b/tests/auto/declarative/qdeclarativetextinput/data/halign_left.png Binary files differnew file mode 100644 index 0000000..247acbc --- /dev/null +++ b/tests/auto/declarative/qdeclarativetextinput/data/halign_left.png diff --git a/tests/auto/declarative/qdeclarativetextinput/data/halign_right.png b/tests/auto/declarative/qdeclarativetextinput/data/halign_right.png Binary files differnew file mode 100644 index 0000000..691bc75 --- /dev/null +++ b/tests/auto/declarative/qdeclarativetextinput/data/halign_right.png diff --git a/tests/auto/declarative/qdeclarativetextinput/data/horizontalAlignment.qml b/tests/auto/declarative/qdeclarativetextinput/data/horizontalAlignment.qml new file mode 100644 index 0000000..b97f18e --- /dev/null +++ b/tests/auto/declarative/qdeclarativetextinput/data/horizontalAlignment.qml @@ -0,0 +1,22 @@ +import Qt 4.7 + +Rectangle { + id: top + width: 70; height: 70; + + property alias horizontalAlignment: text.horizontalAlignment + property string text: "Test" + + Rectangle { + anchors.centerIn: parent + width: 60 + height: 20 + color: "green" + + TextInput { + id: text + anchors.fill: parent + text: top.text + } + } +} |