summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qwidgetwindow_qpa_p.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2012-08-29 16:06:05 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-31 16:10:25 +0200
commit1e34d3525f175340f03bad83600306c23703a92b (patch)
tree40bb433d6cabc6c37d1248e9547b1db822333364 /src/widgets/kernel/qwidgetwindow_qpa_p.h
parent9aa67cf0c48ff8e9e73fc19c4dcd950961b5ad54 (diff)
Fix updating of drag icons.
Try to find a target widget that accepts drops; ignore the event if none can be found. Split the handleDrag*() functions to reduce indentation. Add an autotest. Task-number: QTBUG-22987 Change-Id: I516ac5f0c002caaf83c52ac16f821246e565230f Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/widgets/kernel/qwidgetwindow_qpa_p.h')
-rw-r--r--src/widgets/kernel/qwidgetwindow_qpa_p.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/widgets/kernel/qwidgetwindow_qpa_p.h b/src/widgets/kernel/qwidgetwindow_qpa_p.h
index 5750a05d40..f9cd539dbc 100644
--- a/src/widgets/kernel/qwidgetwindow_qpa_p.h
+++ b/src/widgets/kernel/qwidgetwindow_qpa_p.h
@@ -80,7 +80,9 @@ protected:
void handleResizeEvent(QResizeEvent *);
void handleWheelEvent(QWheelEvent *);
#ifndef QT_NO_DRAGANDDROP
- void handleDragEvent(QEvent *);
+ void handleDragEnterMoveEvent(QDragMoveEvent *);
+ void handleDragLeaveEvent(QDragLeaveEvent *);
+ void handleDropEvent(QDropEvent *);
#endif
void handleExposeEvent(QExposeEvent *);
void handleWindowStateChangedEvent(QWindowStateChangeEvent *event);