summaryrefslogtreecommitdiffstats
path: root/src/gui/accessible/qaccessible.h
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@nokia.com>2011-10-10 15:24:17 +0200
committerQt by Nokia <qt-info@nokia.com>2011-10-20 11:40:29 +0200
commit3885a45e48b7fd680b6cb83e2d0d618fd04cf690 (patch)
treeb7fd1792eeacc983b16aa48bafd26cb76d0a6cfd /src/gui/accessible/qaccessible.h
parentc7f8213bc59691f35f44a42fa5df602e742673c4 (diff)
Make foreground and backgroundColor proper functions.
Change-Id: I93d4355a6c0b6edb1902df6399df7884b25ea744 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
Diffstat (limited to 'src/gui/accessible/qaccessible.h')
-rw-r--r--src/gui/accessible/qaccessible.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/gui/accessible/qaccessible.h b/src/gui/accessible/qaccessible.h
index b0c334c90b..cba50f3ac4 100644
--- a/src/gui/accessible/qaccessible.h
+++ b/src/gui/accessible/qaccessible.h
@@ -389,18 +389,15 @@ public:
virtual Role role(int child = 0) const = 0;
virtual State state(int child = 0) const = 0;
+ virtual QColor foregroundColor() const;
+ virtual QColor backgroundColor() const;
+
virtual QVariant invokeMethod(Method method, int child = 0,
const QVariantList &params = QVariantList());
inline QSet<Method> supportedMethods()
{ return qvariant_cast<QSet<Method> >(invokeMethod(ListSupportedMethods)); }
- inline QColor foregroundColor()
- { return qvariant_cast<QColor>(invokeMethod(ForegroundColor)); }
-
- inline QColor backgroundColor()
- { return qvariant_cast<QColor>(invokeMethod(BackgroundColor)); }
-
inline QAccessibleTextInterface *textInterface()
{ return reinterpret_cast<QAccessibleTextInterface *>(cast_helper(QAccessible2::TextInterface)); }