aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/accessible
diff options
context:
space:
mode:
authorJan-Arve Saether <jan-arve.saether@nokia.com>2012-05-15 15:01:23 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-16 17:04:58 +0200
commita9ad3dea7e936d82650b95a6a59ba25421f2e29f (patch)
tree8b564e6d9ca5b6b996cfe50e2043647e37b53753 /src/plugins/accessible
parentedeaf999ccf3cd9fb662b291282eb47b77a01622 (diff)
Accessibility: Do not look for the "text" property as a last resort.
This does not work very well with items where the text property is just an alias to the concrete property on a child item. The screen reader might then read aloud the text twice, one for the item with the alias, and another time for the child item. Change-Id: I11764c2988b1b3b10b6d80ed8978ef2191d51097 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
Diffstat (limited to 'src/plugins/accessible')
-rw-r--r--src/plugins/accessible/quick/qaccessiblequickitem.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/plugins/accessible/quick/qaccessiblequickitem.cpp b/src/plugins/accessible/quick/qaccessiblequickitem.cpp
index 99db9fa626..61dcbcfe55 100644
--- a/src/plugins/accessible/quick/qaccessiblequickitem.cpp
+++ b/src/plugins/accessible/quick/qaccessiblequickitem.cpp
@@ -231,11 +231,6 @@ QString QAccessibleQuickItem::text(QAccessible::Text textType) const
} else if (textType == QAccessible::Name) {
return object()->objectName();
}
- } else {
- if (textType == QAccessible::Name) {
- QVariant text = object()->property("text");
- return text.toString();
- }
}
return QString();