diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2012-07-16 12:25:49 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-16 14:22:55 +0200 |
commit | a51f37a43070160c2fe45555f8f42e1e16f06111 (patch) | |
tree | db3f628868fca8c6aebcae26871f3abfb3568d53 /src/widgets/widgets/qabstractspinbox.cpp | |
parent | 0518a569c76cd97dc0e97d6773ccc1f62924a4a1 (diff) |
Replace some Q_WS_X11 by check for platform's name.
Change-Id: I33d7ce31e01c355e0d9e05c98d6a84ea4f6d5bbd
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Diffstat (limited to 'src/widgets/widgets/qabstractspinbox.cpp')
-rw-r--r-- | src/widgets/widgets/qabstractspinbox.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/widgets/widgets/qabstractspinbox.cpp b/src/widgets/widgets/qabstractspinbox.cpp index 4d55c9f0af..25e2fc0eeb 100644 --- a/src/widgets/widgets/qabstractspinbox.cpp +++ b/src/widgets/widgets/qabstractspinbox.cpp @@ -62,9 +62,6 @@ # include <qaccessible.h> #endif -#if defined(Q_WS_X11) -#include <limits.h> -#endif //#define QABSTRACTSPINBOX_QSBDEBUG #ifdef QABSTRACTSPINBOX_QSBDEBUG @@ -1014,16 +1011,15 @@ void QAbstractSpinBox::keyPressEvent(QKeyEvent *event) return; #endif -#ifdef Q_WS_X11 // only X11 case Qt::Key_U: - if (event->modifiers() & Qt::ControlModifier) { + if (event->modifiers() & Qt::ControlModifier + && QGuiApplication::platformName() == QLatin1String("xcb")) { // only X11 event->accept(); if (!isReadOnly()) clear(); return; } break; -#endif case Qt::Key_End: case Qt::Key_Home: |