diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-09-29 22:03:07 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-09-30 14:32:45 +0000 |
commit | 542dd7b77a236fef03e5569e44669fad6db0485d (patch) | |
tree | fb039a24e51161b8c0891b64d44945b1d8a77b85 /tests | |
parent | 45cf8b973b9160af5b1ef01194cdc820283c0d56 (diff) |
Add PageIndicator::interactive
Change-Id: Iecb6d855d1c7710901925097ad4e03006d58309c
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/controls/data/tst_pageindicator.qml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_pageindicator.qml b/tests/auto/controls/data/tst_pageindicator.qml index 9ffdd4ec..9ac98e46 100644 --- a/tests/auto/controls/data/tst_pageindicator.qml +++ b/tests/auto/controls/data/tst_pageindicator.qml @@ -76,4 +76,23 @@ TestCase { control.destroy() } + + function test_interactive() { + var control = pageIndicator.createObject(testCase, {count: 5}) + verify(control) + + verify(!control.interactive) + compare(control.currentIndex, 0) + + mouseClick(control, control.width / 2, control.height / 2, Qt.LeftButton) + compare(control.currentIndex, 0) + + control.interactive = true + verify(control.interactive) + + mouseClick(control, control.width / 2, control.height / 2, Qt.LeftButton) + compare(control.currentIndex, 2) + + control.destroy() + } } |