diff options
author | axis <qt-info@nokia.com> | 2009-07-10 07:34:59 (GMT) |
---|---|---|
committer | axis <qt-info@nokia.com> | 2009-07-10 07:34:59 (GMT) |
commit | db1364d48341cb5449755dfc34efc8c0ee2655c0 (patch) | |
tree | d949d5c8357cedda31c4e52bd21f7981a037ce3c /src/gui/widgets | |
parent | aa46e5928b8fd97bada814e56134adb23a068b24 (diff) | |
parent | 7c21c773d736d86f3c5c4f5c42dd49da17a11ef7 (diff) | |
download | Qt-db1364d48341cb5449755dfc34efc8c0ee2655c0.zip Qt-db1364d48341cb5449755dfc34efc8c0ee2655c0.tar.gz Qt-db1364d48341cb5449755dfc34efc8c0ee2655c0.tar.bz2 |
Merge branch 'fixing_tst_qdatetimeedit'
Conflicts:
src/gui/kernel/qkeysequence.cpp
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/qdatetimeedit.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/gui/widgets/qdatetimeedit.cpp b/src/gui/widgets/qdatetimeedit.cpp index 1c6d657..648847a 100644 --- a/src/gui/widgets/qdatetimeedit.cpp +++ b/src/gui/widgets/qdatetimeedit.cpp @@ -1126,23 +1126,25 @@ void QDateTimeEdit::keyPressEvent(QKeyEvent *event) case Qt::Key_Left: case Qt::Key_Right: if (event->key() == Qt::Key_Left || event->key() == Qt::Key_Right) { + if ( #ifdef QT_KEYPAD_NAVIGATION - if (!QApplication::keypadNavigationEnabled() || !hasEditFocus()) { - select = false; - break; - } -#else - if (!(event->modifiers() & Qt::ControlModifier)) { + QApplication::keypadNavigationEnabled() && !hasEditFocus() + || !QApplication::keypadNavigationEnabled() && +#endif + !(event->modifiers() & Qt::ControlModifier)) { select = false; break; } #ifdef Q_WS_MAC - else { + else +#ifdef QT_KEYPAD_NAVIGATION + if (!QApplication::keypadNavigationEnabled()) +#endif + { select = (event->modifiers() & Qt::ShiftModifier); break; } #endif -#endif // QT_KEYPAD_NAVIGATION } // else fall through case Qt::Key_Backtab: |