diff options
author | Sergio Martins <sergio.martins.qnx@kdab.com> | 2013-01-07 12:27:44 +0000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-01-07 21:57:33 +0100 |
commit | 742f0c6e0b8e3ec6fddc146205e78a93f600c1cf (patch) | |
tree | eea2dc6e5d6a1818da5de634bb8cc0e201c34d0e /src/testlib | |
parent | 25ae39046197a30c773bc300646dea05d4a124ca (diff) |
Fix DnD when using QSimpleDrag.
qApp->topLevelAt() returns the QShapedPixmapWindow that the DnD
operation created, but what we want is the QWidgetWindow.
QWidgetWindow has the code to handle QDragMove events.
In Qt4, QShapedPixmapWidget had a parent, so was never returned
by qApp->topLevelWidgets().
In Qt5 we must filter it out. Bug is visible in the QNX plugin,
which is the only user of QSimpleDrag.
Change-Id: I920da86f3a1a92ce8e087f5948292fa4c68d4d81
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src/testlib')
0 files changed, 0 insertions, 0 deletions