summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2016-01-05 12:43:32 +0100
committerFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2016-02-02 08:20:35 +0000
commitba8d3430029d8c4342e9a47c110ee8c9879818f4 (patch)
tree1e8a9703ee1f75f9318850f4ee4c240404535478
parent0c019d7bd2fff4eba39afc3a4db63d71d13988da (diff)
downloadqtbase-ba8d3430029d8c4342e9a47c110ee8c9879818f4.tar.gz
Remove warning about being unable to instantiate accessibility interface
This warning was a good idea when the plugins were needed to give a hint where to start debugging. Now the a11y plugins were merged into qtwidgets/qtquick, so there is no more need for this warning which may pop up on custom widgets e.g. inheriting QWindow. Task-number: QTBUG-50215 Change-Id: Ic5efbb3dfbd07a7139884126a2604b54c99005e4 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com>
-rw-r--r--src/gui/accessible/qaccessible.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/gui/accessible/qaccessible.cpp b/src/gui/accessible/qaccessible.cpp
index 1a8d263f94..4731e8a240 100644
--- a/src/gui/accessible/qaccessible.cpp
+++ b/src/gui/accessible/qaccessible.cpp
@@ -1758,15 +1758,8 @@ QAccessibleInterface *QAccessibleEvent::accessibleInterface() const
return QAccessible::accessibleInterface(m_uniqueId);
QAccessibleInterface *iface = QAccessible::queryAccessibleInterface(m_object);
- if (!iface || !iface->isValid()) {
- static bool hasWarned = false;
- if (!iface && !hasWarned) {
- qWarning() << "Problem creating accessible interface for: " << m_object << endl
- << "Make sure to deploy Qt with accessibility plugins.";
- hasWarned = true;
- }
+ if (!iface || !iface->isValid())
return 0;
- }
if (m_child >= 0) {
QAccessibleInterface *child = iface->child(m_child);