Skip to content
Snippets Groups Projects
Commit 0303f3b1 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>
(cherry picked from commit cda0c6c3)
parent ba719477
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@
#include <QDebug>
#include <QPainter>
#ifdef Q_OS_WIN
#if defined(Q_OS_WIN) && QT_VERSION < 0x050000
#include <private/qwidget_p.h>
#endif
......@@ -64,7 +64,7 @@ void CustomDragAndDropIcon::startDrag()
void CustomDragAndDropIcon::grabMouseSafely()
{
#ifdef Q_OS_WIN
#if defined(Q_OS_WIN) && QT_VERSION < 0x050000
// grabMouse calls SetWindowsHookEx() - this function causes a system-wide
// freeze if any other app on the system installs a hook and fails to
// process events.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment