diff options
author | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2012-10-09 11:27:01 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-10 13:15:57 +0200 |
commit | 06332df7438c8d2215b02f1e01ce2ed28a49a320 (patch) | |
tree | 3d8b8ad1896d611b349717b80f5b33464653fa9b /src/plugins/platforms/cocoa/qcocoatheme.mm | |
parent | 571545590149fe9bb3cce308490d66ac2c3f1318 (diff) |
Mac: Bring back "Text boxes and list only" tab navigation
Added ThemeHint::TabAllWidgets as a mean to access that platform
specific bool. The default implementation returns always true when
querying QPlatformTheme::themeHint().
Several auto-tests had to be updated to reflect for qt_tab_all_widgets'
type change. One XFAIL removed from tst_QApplication::focusChanged().
Task-number: QTBUG-24372
Change-Id: Ie1f0486c19898fe54c53aa4a27e378485075e512
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
Diffstat (limited to 'src/plugins/platforms/cocoa/qcocoatheme.mm')
-rw-r--r-- | src/plugins/platforms/cocoa/qcocoatheme.mm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoatheme.mm b/src/plugins/platforms/cocoa/qcocoatheme.mm index 3e2515d5f4..ddb550dd5f 100644 --- a/src/plugins/platforms/cocoa/qcocoatheme.mm +++ b/src/plugins/platforms/cocoa/qcocoatheme.mm @@ -39,6 +39,8 @@ ** ****************************************************************************/ +#import <Cocoa/Cocoa.h> + #include "qcocoatheme.h" #include <QtCore/QVariant> @@ -142,6 +144,8 @@ QVariant QCocoaTheme::themeHint(ThemeHint hint) const return QVariant(1); // QDialogButtonBox::MacLayout case KeyboardScheme: return QVariant(int(MacKeyboardScheme)); + case TabAllWidgets: + return QVariant(bool([[NSApplication sharedApplication] isFullKeyboardAccessEnabled])); default: break; } |