summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Arve Saether <jan-arve.saether@digia.com>2013-04-26 14:21:24 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-26 23:27:18 +0200
commitc29cbfa8586e227ed31bf248ddbd15429ab54ac6 (patch)
treea37ba142252c65ad43fbad519ad707e49ac4b501 /src
parent3511b199ddbd423b2c159887b27f4eba1a3182d1 (diff)
Get rid of this hack where QAccessible inherits from QObject.
This was added just so that moc could pick up the enums and so that we could use the enums in Q_PROPERTY declarations, which was needed for accessibility in QML. It turns out that Q_GADGET is enough for us. This is a strictly a binary compatible change. However, QAccessible was marked internal in 5.0, so we are free to change it. In addition, this class is static and cannot be instantiated. Change-Id: I27e2e97c5f4b45c38678264c6b593a4383db8d3e Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/gui/accessible/qaccessible.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui/accessible/qaccessible.h b/src/gui/accessible/qaccessible.h
index 339e3fbcd6..283209d08f 100644
--- a/src/gui/accessible/qaccessible.h
+++ b/src/gui/accessible/qaccessible.h
@@ -66,11 +66,8 @@ class QTextCursor;
// We need to inherit QObject to expose the enums to QML.
class Q_GUI_EXPORT QAccessible
-#ifndef Q_QDOC
- :public QObject
-#endif
{
- Q_OBJECT
+ Q_GADGET
Q_ENUMS(Role Event State)
public: