aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-10-21 13:33:05 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-10-22 11:16:28 +0000
commit7e037903e9efdc593c9d51da8f303a061e7e08e7 (patch)
tree2023d7f332332e3964a4dba59329c27a11f90b8c /tests
parent4149f666e3b4ba5f2aed4a185a9d524d4e8247d0 (diff)
Add ExclusiveGroup::isCheckable(QtObject)
Change-Id: Id426592985e38f918b1a0df8ef2acc1c3f69c3c7 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/controls/data/tst_exclusivegroup.qml18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_exclusivegroup.qml b/tests/auto/controls/data/tst_exclusivegroup.qml
index b4ff560c..dcabb6c9 100644
--- a/tests/auto/controls/data/tst_exclusivegroup.qml
+++ b/tests/auto/controls/data/tst_exclusivegroup.qml
@@ -106,6 +106,11 @@ TestCase {
QtObject { property bool checked }
}
+ Component {
+ id: nonCheckable
+ QtObject { }
+ }
+
function test_current() {
var group = exclusiveGroup.createObject(testCase)
verify(group)
@@ -226,6 +231,19 @@ TestCase {
group.destroy()
}
+ function test_isCheckable() {
+ var group = exclusiveGroup.createObject(testCase)
+ verify(group)
+
+ var checkable1 = checkable.createObject(testCase)
+ compare(group.isCheckable(checkable1), true)
+
+ var nonCheckable1 = nonCheckable.createObject(testCase)
+ compare(group.isCheckable(nonCheckable1), false)
+
+ group.destroy()
+ }
+
Component {
id: checkBoxes
Item {