Fix a bug in implementation of Accessible.ignored
authorJan Arve Saether <jan-arve.saether@digia.com>
Fri, 22 Aug 2014 11:12:46 +0000 (13:12 +0200)
committerJan Arve Sæther <jan-arve.saether@digia.com>
Tue, 26 Aug 2014 11:44:19 +0000 (13:44 +0200)
m_ignored is not really used.

Change-Id: Ic2926fbdf22a6a5bc82fe9f4475b7b8058eacae5
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
src/quick/items/qquickaccessibleattached.cpp
src/quick/items/qquickaccessibleattached_p.h

index 94b2ae5..ddcbb7d 100644 (file)
@@ -302,7 +302,7 @@ bool QQuickAccessibleAttached::ignored() const
 
 void QQuickAccessibleAttached::setIgnored(bool ignored)
 {
-    if (m_ignored != ignored) {
+    if (this->ignored() != ignored) {
         item()->d_func()->isAccessible = !ignored;
         emit ignoredChanged();
     }
index 4440f2a..6c1f7de 100644 (file)
@@ -221,7 +221,6 @@ private:
     QAccessible::State m_state;
     QString m_name;
     QString m_description;
-    bool m_ignored;
 
 public:
     using QObject::property;