diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2011-09-28 22:20:06 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-03 05:59:07 +0200 |
commit | 3fd9398052d2b483d2830c3661ceed26e551fa49 (patch) | |
tree | 9eeca582e2c749aca76c3df38ffb1043344a70c6 /src/widgets/platforms/win | |
parent | 302b3c7d073d1bccd4468c990510697b77b2ece9 (diff) |
Remove the remaining traces of QT3_SUPPORT
The only place that now still knows about it is moc,
so it can still parse old headers.
Change-Id: Iafec080f99c67560974e9ebc0cbfb27d9a4b2d6f
Reviewed-on: http://codereview.qt-project.org/5755
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/widgets/platforms/win')
-rw-r--r-- | src/widgets/platforms/win/qkeymapper_win.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/widgets/platforms/win/qkeymapper_win.cpp b/src/widgets/platforms/win/qkeymapper_win.cpp index 78389c1160..076b37038d 100644 --- a/src/widgets/platforms/win/qkeymapper_win.cpp +++ b/src/widgets/platforms/win/qkeymapper_win.cpp @@ -1168,24 +1168,8 @@ bool QKeyMapper::sendKeyEvent(QWidget *widget, bool grab, quint32 nativeScanCode, quint32 nativeVirtualKey, quint32 nativeModifiers, bool *) { -#if defined(Q_OS_WINCE) Q_UNUSED(grab); -#endif Q_UNUSED(count); -#if defined QT3_SUPPORT && !defined(QT_NO_SHORTCUT) - if (type == QEvent::KeyPress - && !grab - && QApplicationPrivate::instance()->use_compat()) { - // send accel events if the keyboard is not grabbed - QKeyEventEx a(type, code, modifiers, - text, autorepeat, qMax(1, int(text.length())), - nativeScanCode, nativeVirtualKey, nativeModifiers); - if (QApplicationPrivate::instance()->qt_tryAccelEvent(widget, &a)) - return true; - } -#else - Q_UNUSED(grab); -#endif if (!widget->isEnabled()) return false; |