From 15e136d4e116c1513c106dfbb75e1953a7f3463c Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Fri, 2 Mar 2012 19:38:12 +0100 Subject: [PATCH] Mark overload of QAccessible::updateAccessibility as deprecated. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit updateAccessibility(const QAccessibleEvent &event) should be used, updateAccessibility(QObject *object, int child, Event reason) is deprecated. Change-Id: I92b32579ff202681189e9581365d2891e5d1e994 Reviewed-by: Jan-Arve Sæther --- src/gui/accessible/qaccessible.cpp | 2 -- src/gui/accessible/qaccessible.h | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gui/accessible/qaccessible.cpp b/src/gui/accessible/qaccessible.cpp index f256480..b7e9275 100644 --- a/src/gui/accessible/qaccessible.cpp +++ b/src/gui/accessible/qaccessible.cpp @@ -650,8 +650,6 @@ void QAccessible::updateAccessibility(QObject *object, int child, Event reason) { Q_ASSERT(object); - qWarning("QAccessible::updateAccessibility is deprecated."); - QAccessibleEvent event = QAccessibleEvent(reason, object, child); updateAccessibility(event); } diff --git a/src/gui/accessible/qaccessible.h b/src/gui/accessible/qaccessible.h index a72b91a..6ad1bb9 100644 --- a/src/gui/accessible/qaccessible.h +++ b/src/gui/accessible/qaccessible.h @@ -336,7 +336,7 @@ public: static QAccessibleInterface *queryAccessibleInterface(QObject *); - static void updateAccessibility(QObject *object, int child, Event reason); + QT_DEPRECATED static void updateAccessibility(QObject *object, int child, Event reason); static void updateAccessibility(const QAccessibleEvent &event); static bool isActive(); -- 2.7.4