summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativetextedit
diff options
context:
space:
mode:
authorJoona Petrell <joona.t.petrell@nokia.com>2010-12-30 07:52:30 (GMT)
committerJoona Petrell <joona.t.petrell@nokia.com>2010-12-30 07:58:20 (GMT)
commit22daf9fbdfaa859db6414d39d9354e7d46f63005 (patch)
tree372a0d1d69fa82dd6aad44f09f239e1014bea750 /tests/auto/declarative/qdeclarativetextedit
parent2de60ba30f86a9dd338359f7269b62ca5d0a2c46 (diff)
downloadQt-22daf9fbdfaa859db6414d39d9354e7d46f63005.zip
Qt-22daf9fbdfaa859db6414d39d9354e7d46f63005.tar.gz
Qt-22daf9fbdfaa859db6414d39d9354e7d46f63005.tar.bz2
Add convenience deselect() functions to TextInput and TextEdit
Task-number: QTBUG-16059 Reviewed-by: Christopher Ham
Diffstat (limited to 'tests/auto/declarative/qdeclarativetextedit')
-rw-r--r--tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp b/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
index a7971cc..c0bb46e 100644
--- a/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
+++ b/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
@@ -689,6 +689,13 @@ void tst_qdeclarativetextedit::selection()
QVERIFY(textEditObject->selectedText().size() == 10);
textEditObject->select(0,100);
QVERIFY(textEditObject->selectedText().size() == 10);
+
+ textEditObject->deselect();
+ QVERIFY(textEditObject->selectedText().isNull());
+ textEditObject->select(0,10);
+ QVERIFY(textEditObject->selectedText().size() == 10);
+ textEditObject->deselect();
+ QVERIFY(textEditObject->selectedText().isNull());
}
void tst_qdeclarativetextedit::mouseSelection_data()