Commit cda0c6c3 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner: fixing compile for Qt 5



grabMouseWhileInWindow(); is not an
option in Qt 5 anymore.

Change-Id: Ie198a0e3d83fffb62ff51ec2475134cdf4f9dcee
Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
parent 362b8d98
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
#include <QDebug> #include <QDebug>
#include <QPainter> #include <QPainter>
#ifdef Q_OS_WIN #if defined(Q_OS_WIN) && QT_VERSION < 0x050000
#include <private/qwidget_p.h> #include <private/qwidget_p.h>
#endif #endif
...@@ -64,7 +64,7 @@ void CustomDragAndDropIcon::startDrag() ...@@ -64,7 +64,7 @@ void CustomDragAndDropIcon::startDrag()
void CustomDragAndDropIcon::grabMouseSafely() void CustomDragAndDropIcon::grabMouseSafely()
{ {
#ifdef Q_OS_WIN #if defined(Q_OS_WIN) && QT_VERSION < 0x050000
// grabMouse calls SetWindowsHookEx() - this function causes a system-wide // grabMouse calls SetWindowsHookEx() - this function causes a system-wide
// freeze if any other app on the system installs a hook and fails to // freeze if any other app on the system installs a hook and fails to
// process events. // process events.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment