From e944b93bf10bb12bf549bb0c9044b7a4ea397362 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Tue, 19 Aug 2014 14:35:30 +0200 Subject: Remove QAccessibleToolButton::text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This function actually is worse than just calling QAccessibleButton::text which it already does. It would mess up the shortcut handling in addition to that. Change-Id: I56cb95a44624da4c5fccb43e6835f6012a083337 Reviewed-by: Jan Arve Sæther --- src/widgets/accessible/simplewidgets.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'src/widgets/accessible/simplewidgets.cpp') diff --git a/src/widgets/accessible/simplewidgets.cpp b/src/widgets/accessible/simplewidgets.cpp index 6fd249f372..e8827f4537 100644 --- a/src/widgets/accessible/simplewidgets.cpp +++ b/src/widgets/accessible/simplewidgets.cpp @@ -298,29 +298,6 @@ QAccessibleInterface *QAccessibleToolButton::child(int index) const return 0; } -/*! - \internal - - Returns the button's text label, depending on the text \a t, and - the \a child. -*/ -QString QAccessibleToolButton::text(QAccessible::Text t) const -{ - QString str; - switch (t) { - case QAccessible::Name: - str = toolButton()->accessibleName(); - if (str.isEmpty()) - str = toolButton()->text(); - break; - default: - break; - } - if (str.isEmpty()) - str = QAccessibleButton::text(t); - return qt_accStripAmp(str); -} - /* The three different tool button types can have the following actions: | DelayedPopup | ShowMenuAction + (PressedAction || CheckedAction) | -- cgit v1.2.3