diff options
author | Frederik Gladhorn <frederik.gladhorn@nokia.com> | 2011-02-17 14:37:43 (GMT) |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@nokia.com> | 2011-03-23 12:57:22 (GMT) |
commit | 9a5b0d7a579572cd7e7faf869ab1a6684800f592 (patch) | |
tree | a60c301ae132f7e57f7ea74c2266ff3cf1f708be /src/gui | |
parent | e783275cfb71e7325472b3aea54e109a7a854bf7 (diff) | |
download | Qt-9a5b0d7a579572cd7e7faf869ab1a6684800f592.zip Qt-9a5b0d7a579572cd7e7faf869ab1a6684800f592.tar.gz Qt-9a5b0d7a579572cd7e7faf869ab1a6684800f592.tar.bz2 |
Window and Application fixes for accessibility.
Return app name instead of window title for root accessibility object.
Return Window as accessible type for the main window.
Reviewed-by: Jan-Arve
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/accessible/qaccessibleobject.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/accessible/qaccessibleobject.cpp b/src/gui/accessible/qaccessibleobject.cpp index 1d2d1da..0cb2c08 100644 --- a/src/gui/accessible/qaccessibleobject.cpp +++ b/src/gui/accessible/qaccessibleobject.cpp @@ -322,9 +322,7 @@ QString QAccessibleApplication::text(Text t, int) const { switch (t) { case Name: - if (QApplication::activeWindow()) - return QApplication::activeWindow()->windowTitle(); - break; + return QApplication::applicationName(); case Description: return QApplication::applicationFilePath(); default: |