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 /src/gui/accessible | |
parent | 225a8357776dea2fc469bc51fe8b04092b7e84dd (diff) | |
download | qtbase-22c234a34e8af6a26b374ef810630ba9e82c696a.tar.gz |
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 'src/gui/accessible')
-rw-r--r-- | src/gui/accessible/qaccessible2.cpp | 13 | ||||
-rw-r--r-- | src/gui/accessible/qaccessible2.h | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/gui/accessible/qaccessible2.cpp b/src/gui/accessible/qaccessible2.cpp index 7f871f9c5a..f21c74e74f 100644 --- a/src/gui/accessible/qaccessible2.cpp +++ b/src/gui/accessible/qaccessible2.cpp @@ -439,6 +439,19 @@ QString QAccessibleTextInterface::textAtOffset(int offset, QAccessible2::Boundar */ /*! + \fn QVariant QAccessibleValueInterface::minimumStepSize() const + + Returns the minimum step size for the accessible. + This is the smalles increment that makes sense when changing the value. + When programatically changing the value it should always be a multiple + of the minimum step size. + + Some tools use this value even when the setCurrentValue does not + perform any action. Progress bars for example are read-only but + should return their range divided by 100. +*/ + +/*! \class QAccessibleImageInterface \inmodule QtGui \ingroup accessibility diff --git a/src/gui/accessible/qaccessible2.h b/src/gui/accessible/qaccessible2.h index e93324b4f8..86a01c0730 100644 --- a/src/gui/accessible/qaccessible2.h +++ b/src/gui/accessible/qaccessible2.h @@ -117,6 +117,7 @@ public: virtual void setCurrentValue(const QVariant &value) = 0; virtual QVariant maximumValue() const = 0; virtual QVariant minimumValue() const = 0; + virtual QVariant minimumStepSize() const = 0; }; class Q_GUI_EXPORT QAccessibleTableCellInterface |