diff options
author | Jason Barron <jbarron@trolltech.com> | 2009-05-29 07:40:32 (GMT) |
---|---|---|
committer | Jason Barron <jbarron@trolltech.com> | 2009-05-29 07:47:12 (GMT) |
commit | d4a8cb47cb106ad642e908763787407774619aac (patch) | |
tree | 871d15380006c52bca8a57ca966bd90fa192a284 /src/gui/kernel/qapplication.cpp | |
parent | dcf5d568aba893d690eedbe1e18148b504de2abb (diff) | |
download | Qt-d4a8cb47cb106ad642e908763787407774619aac.zip Qt-d4a8cb47cb106ad642e908763787407774619aac.tar.gz Qt-d4a8cb47cb106ad642e908763787407774619aac.tar.bz2 |
Disable keypad navigation for the autotests and document it.
On Symbian keypad navigation is enabled by default since there is no
reliable way to detect the presence of touch or not. Enabling this
feature though causes problems for many of Qt's autotests since they
were not written with this in mind. Many tests send QTest::key*()
events to a widget and subsequently test the state of the widget, but
with keypad navigation enabled, the behavior changes because the widget
does not have edit focus by default.
Reviewed-by: axis <qt-info@nokia.com>
Diffstat (limited to 'src/gui/kernel/qapplication.cpp')
-rw-r--r-- | src/gui/kernel/qapplication.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/kernel/qapplication.cpp b/src/gui/kernel/qapplication.cpp index fb002a3..eaaeb4b 100644 --- a/src/gui/kernel/qapplication.cpp +++ b/src/gui/kernel/qapplication.cpp @@ -4764,7 +4764,7 @@ void QApplicationPrivate::emitLastWindowClosed() If \a enable is true, Qt::Key_Up and Qt::Key_Down are used to change focus. - This feature is available in Qt for Embedded Linux only. + This feature is available in Qt for Embedded Linux and Symbian only. \sa keypadNavigationEnabled() */ @@ -4775,9 +4775,9 @@ void QApplication::setKeypadNavigationEnabled(bool enable) /*! Returns true if Qt is set to use keypad navigation; otherwise returns - false. The default is false. + false. The default value is true on Symbian, but false on other platforms. - This feature is available in Qt for Embedded Linux only. + This feature is available in Qt for Embedded Linux and Symbian only. \sa setKeypadNavigationEnabled() */ |