diff options
author | Frederik Gladhorn <frederik.gladhorn@digia.com> | 2012-11-03 19:21:12 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-12-12 15:30:53 +0100 |
commit | 22c234a34e8af6a26b374ef810630ba9e82c696a (patch) | |
tree | ef16e919f2295810d78398a5b7590bd01b6a1dd3 /tests/auto | |
parent | 225a8357776dea2fc469bc51fe8b04092b7e84dd (diff) |
Accessible: Improve value interfacev5.0.0-rc2
The stepSize property was missing in Qt 4 and is
a sensible addition to the value interface.
Change-Id: I7571800d50ee7e4194c09c4db40300809a1ce45a
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/other/qaccessibility/tst_qaccessibility.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp index 242dacb55e..ba173dff81 100644 --- a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp +++ b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp @@ -453,6 +453,7 @@ void tst_QAccessibility::sliderTest() QVERIFY(valueIface != 0); QCOMPARE(valueIface->minimumValue().toInt(), slider->minimum()); QCOMPARE(valueIface->maximumValue().toInt(), slider->maximum()); + QCOMPARE(valueIface->minimumStepSize().toInt(), slider->singleStep()); slider->setValue(50); QCOMPARE(valueIface->currentValue().toInt(), slider->value()); slider->setValue(0); @@ -461,6 +462,8 @@ void tst_QAccessibility::sliderTest() QCOMPARE(valueIface->currentValue().toInt(), slider->value()); valueIface->setCurrentValue(77); QCOMPARE(77, slider->value()); + slider->setSingleStep(2); + QCOMPARE(valueIface->minimumStepSize().toInt(), 2); delete slider; } |