summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@digia.com>2015-01-05 14:47:53 +0100
committerAndy Shaw <andy.shaw@digia.com>2015-01-07 09:57:21 +0100
commite7210a4945b4fbc65c90285acc0e136ae2d80d95 (patch)
treedd783bd72464eb44074dd45ed58ddcb61eb96379 /src
parentbca693e0c1a2bfc05eaee9f8ddae06371afa6ef0 (diff)
Remove redundant code
The non client mouse events have the right information regarding the modifiers now so the old code covered with Q_WS_WIN can be removed. Change-Id: I3e4ebc0debdd66970b18233f189b5d9e880e40a9 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/widgets/widgets/qdockwidget.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/widgets/widgets/qdockwidget.cpp b/src/widgets/widgets/qdockwidget.cpp
index 93e6131ab9..2bf8a37e7f 100644
--- a/src/widgets/widgets/qdockwidget.cpp
+++ b/src/widgets/widgets/qdockwidget.cpp
@@ -930,12 +930,7 @@ void QDockWidgetPrivate::nonClientAreaMouseEvent(QMouseEvent *event)
initDrag(event->pos(), true);
if (state == 0)
break;
-#ifdef Q_WS_WIN
- // On Windows, NCA mouse events don't contain modifier info
- state->ctrlDrag = GetKeyState(VK_CONTROL) & 0x8000;
-#else
state->ctrlDrag = event->modifiers() & Qt::ControlModifier;
-#endif
startDrag();
break;
case QEvent::NonClientAreaMouseMove: