summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qapplication.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2011-05-18 12:56:51 +0200
committerLars Knoll <lars.knoll@nokia.com>2011-05-20 12:21:02 +0200
commit82bba7e4efc369f75f09eb96846d733cd99ba95b (patch)
tree210f73a2df63e626f471452ed3fce5578ed17ae1 /src/widgets/kernel/qapplication.cpp
parent1f572c694b6801e9f706ce2c67cc3b1b50f32a5e (diff)
move drag handling back to Gui
Move the DnD related classes back into QtGui. Parts of the implementation is currently commented out and needs to be moved to QWidgetWindow. SC incompatible change: APIs taking QWidget * now take QObject *
Diffstat (limited to 'src/widgets/kernel/qapplication.cpp')
-rw-r--r--src/widgets/kernel/qapplication.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/kernel/qapplication.cpp b/src/widgets/kernel/qapplication.cpp
index 059c06d162..bebf74e45f 100644
--- a/src/widgets/kernel/qapplication.cpp
+++ b/src/widgets/kernel/qapplication.cpp
@@ -4055,7 +4055,7 @@ bool QApplication::notify(QObject *receiver, QEvent *e)
bool isProxyWidget = extra && extra->proxyWidget;
if (!isProxyWidget)
#endif
- w = QDragManager::self()->currentTarget();
+ w = qobject_cast<QWidget *>(QDragManager::self()->currentTarget());
if (!w) {
#ifdef Q_WS_MAC