summaryrefslogtreecommitdiffstats
path: root/src/plugins/accessible/widgets/simplewidgets.h
diff options
context:
space:
mode:
authorHarald Fernengel <harald.fernengel@nokia.com>2009-10-20 15:40:40 (GMT)
committerHarald Fernengel <harald.fernengel@nokia.com>2009-10-20 15:48:25 (GMT)
commit77f2319ab80be40268da689d5bc4726257ddd7ab (patch)
tree19a312a804c1c1275589106fc45430fe1c923e0f /src/plugins/accessible/widgets/simplewidgets.h
parent0bdb8aa64deef437b94f4998f4c2f6ed93a38489 (diff)
downloadQt-77f2319ab80be40268da689d5bc4726257ddd7ab.zip
Qt-77f2319ab80be40268da689d5bc4726257ddd7ab.tar.gz
Qt-77f2319ab80be40268da689d5bc4726257ddd7ab.tar.bz2
Implement QAccesibleValueInterface for QProgressBar
Patch has been tested thorougly in the accessibility-fixes branch of the qt-maemo repository, thus no review
Diffstat (limited to 'src/plugins/accessible/widgets/simplewidgets.h')
-rw-r--r--src/plugins/accessible/widgets/simplewidgets.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/plugins/accessible/widgets/simplewidgets.h b/src/plugins/accessible/widgets/simplewidgets.h
index abe5bdc..8de35ef 100644
--- a/src/plugins/accessible/widgets/simplewidgets.h
+++ b/src/plugins/accessible/widgets/simplewidgets.h
@@ -52,6 +52,7 @@ QT_BEGIN_NAMESPACE
class QAbstractButton;
class QLineEdit;
class QToolButton;
+class QProgressBar;
class QAccessibleButton : public QAccessibleWidgetEx
{
@@ -150,6 +151,24 @@ protected:
};
#endif // QT_NO_LINEEDIT
+#ifndef QT_NO_PROGRESSBAR
+class QAccessibleProgressBar : public QAccessibleDisplay, public QAccessibleValueInterface
+{
+ Q_ACCESSIBLE_OBJECT
+public:
+ explicit QAccessibleProgressBar(QWidget *o);
+
+ // QAccessibleValueInterface
+ QVariant currentValue();
+ QVariant maximumValue();
+ QVariant minimumValue();
+ inline void setCurrentValue(const QVariant &) {}
+
+protected:
+ QProgressBar *progressBar() const;
+};
+#endif
+
#endif // QT_NO_ACCESSIBILITY
QT_END_NAMESPACE