diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-06-23 06:50:48 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-06-23 06:50:48 (GMT) |
commit | faebec95f12f2db4cc105738c064e12bd0bcf988 (patch) | |
tree | 657af496dbc4fca94b88bcda05ecf4ad0b5ead15 /tests/auto/declarative/qdeclarativetextedit/data | |
parent | 73a3cd8f4448bb6ffcdb2076dcba2afa7a0e893b (diff) | |
download | Qt-faebec95f12f2db4cc105738c064e12bd0bcf988.zip Qt-faebec95f12f2db4cc105738c064e12bd0bcf988.tar.gz Qt-faebec95f12f2db4cc105738c064e12bd0bcf988.tar.bz2 |
Fix and better test Text / TextEdit alignments.
Various clipping and refresh bugs.
Task-number: QTBUG-11492
Diffstat (limited to 'tests/auto/declarative/qdeclarativetextedit/data')
-rw-r--r-- | tests/auto/declarative/qdeclarativetextedit/data/alignments.qml | 42 | ||||
-rw-r--r-- | tests/auto/declarative/qdeclarativetextedit/data/alignments_cb.png | bin | 0 -> 1411 bytes | |||
-rw-r--r-- | tests/auto/declarative/qdeclarativetextedit/data/alignments_cc.png | bin | 0 -> 1501 bytes | |||
-rw-r--r-- | tests/auto/declarative/qdeclarativetextedit/data/alignments_ct.png | bin | 0 -> 1457 bytes | |||
-rw-r--r-- | tests/auto/declarative/qdeclarativetextedit/data/alignments_lb.png | bin | 0 -> 1420 bytes | |||
-rw-r--r-- | tests/auto/declarative/qdeclarativetextedit/data/alignments_lc.png | bin | 0 -> 1508 bytes | |||
-rw-r--r-- | tests/auto/declarative/qdeclarativetextedit/data/alignments_lt.png | bin | 0 -> 1447 bytes | |||
-rw-r--r-- | tests/auto/declarative/qdeclarativetextedit/data/alignments_rb.png | bin | 0 -> 1421 bytes | |||
-rw-r--r-- | tests/auto/declarative/qdeclarativetextedit/data/alignments_rc.png | bin | 0 -> 1485 bytes | |||
-rw-r--r-- | tests/auto/declarative/qdeclarativetextedit/data/alignments_rt.png | bin | 0 -> 1439 bytes |
10 files changed, 42 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativetextedit/data/alignments.qml b/tests/auto/declarative/qdeclarativetextedit/data/alignments.qml new file mode 100644 index 0000000..6a98a4d --- /dev/null +++ b/tests/auto/declarative/qdeclarativetextedit/data/alignments.qml @@ -0,0 +1,42 @@ +import Qt 4.7 + +Rectangle { + id: top + width: 70; height: 70; + + property alias horizontalAlignment: t.horizontalAlignment + property alias verticalAlignment: t.verticalAlignment + property alias wrapMode: t.wrapMode + property alias running: timer.running + property string txt: "Test" + + Rectangle { + anchors.centerIn: parent + width: 40 + height: 40 + color: "green" + + Text { + id: t + + anchors.fill: parent + font.pixelSize: 8 + horizontalAlignment: TextEdit.AlignRight + verticalAlignment: TextEdit.AlignBottom + wrapMode: TextEdit.WordWrap + text: top.txt + } + Timer { + id: timer + + interval: 1 + running: true + repeat: true + onTriggered: { + top.txt = top.txt + "<br>more " + top.txt.length; + if (top.txt.length > 50) + running = false + } + } + } +} diff --git a/tests/auto/declarative/qdeclarativetextedit/data/alignments_cb.png b/tests/auto/declarative/qdeclarativetextedit/data/alignments_cb.png Binary files differnew file mode 100644 index 0000000..0e40444 --- /dev/null +++ b/tests/auto/declarative/qdeclarativetextedit/data/alignments_cb.png diff --git a/tests/auto/declarative/qdeclarativetextedit/data/alignments_cc.png b/tests/auto/declarative/qdeclarativetextedit/data/alignments_cc.png Binary files differnew file mode 100644 index 0000000..a5c83a8 --- /dev/null +++ b/tests/auto/declarative/qdeclarativetextedit/data/alignments_cc.png diff --git a/tests/auto/declarative/qdeclarativetextedit/data/alignments_ct.png b/tests/auto/declarative/qdeclarativetextedit/data/alignments_ct.png Binary files differnew file mode 100644 index 0000000..8177c20 --- /dev/null +++ b/tests/auto/declarative/qdeclarativetextedit/data/alignments_ct.png diff --git a/tests/auto/declarative/qdeclarativetextedit/data/alignments_lb.png b/tests/auto/declarative/qdeclarativetextedit/data/alignments_lb.png Binary files differnew file mode 100644 index 0000000..c0e1774 --- /dev/null +++ b/tests/auto/declarative/qdeclarativetextedit/data/alignments_lb.png diff --git a/tests/auto/declarative/qdeclarativetextedit/data/alignments_lc.png b/tests/auto/declarative/qdeclarativetextedit/data/alignments_lc.png Binary files differnew file mode 100644 index 0000000..d61aaf2 --- /dev/null +++ b/tests/auto/declarative/qdeclarativetextedit/data/alignments_lc.png diff --git a/tests/auto/declarative/qdeclarativetextedit/data/alignments_lt.png b/tests/auto/declarative/qdeclarativetextedit/data/alignments_lt.png Binary files differnew file mode 100644 index 0000000..599f4c6 --- /dev/null +++ b/tests/auto/declarative/qdeclarativetextedit/data/alignments_lt.png diff --git a/tests/auto/declarative/qdeclarativetextedit/data/alignments_rb.png b/tests/auto/declarative/qdeclarativetextedit/data/alignments_rb.png Binary files differnew file mode 100644 index 0000000..83ec990 --- /dev/null +++ b/tests/auto/declarative/qdeclarativetextedit/data/alignments_rb.png diff --git a/tests/auto/declarative/qdeclarativetextedit/data/alignments_rc.png b/tests/auto/declarative/qdeclarativetextedit/data/alignments_rc.png Binary files differnew file mode 100644 index 0000000..53e30b7 --- /dev/null +++ b/tests/auto/declarative/qdeclarativetextedit/data/alignments_rc.png diff --git a/tests/auto/declarative/qdeclarativetextedit/data/alignments_rt.png b/tests/auto/declarative/qdeclarativetextedit/data/alignments_rt.png Binary files differnew file mode 100644 index 0000000..61a112f --- /dev/null +++ b/tests/auto/declarative/qdeclarativetextedit/data/alignments_rt.png |