From d3d63bb4bc9df8baa0fa25f523ceb6057424cfe4 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Thu, 14 Mar 2013 11:39:16 +0100 Subject: Warn about accessibility interface creation failure only once MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I0555d7d2417149f0eec54b228b842a61d0d08f85 Reviewed-by: Jan Arve Sæther --- src/gui/accessible/qaccessible.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/gui/accessible') diff --git a/src/gui/accessible/qaccessible.cpp b/src/gui/accessible/qaccessible.cpp index 1d1b64117e..4a998dc4b8 100644 --- a/src/gui/accessible/qaccessible.cpp +++ b/src/gui/accessible/qaccessible.cpp @@ -1350,7 +1350,12 @@ QAccessibleInterface *QAccessibleEvent::accessibleInterface() const { QAccessibleInterface *iface = QAccessible::queryAccessibleInterface(m_object); if (!iface) { - qWarning() << "Cannot create accessible interface for object: " << m_object; + static bool hasWarned = false; + if (!hasWarned) { + qWarning() << "Problem creating accessible interface for: " << m_object << endl + << "Make sure to deploy Qt with accessibility plugins."; + hasWarned = true; + } return 0; } -- cgit v1.2.3