Compile fix for the new DND interfaces
authorJørgen Lind <jorgen.lind@nokia.com>
Thu, 1 Mar 2012 08:34:24 +0000 (09:34 +0100)
committerSamuel Rødal <samuel.rodal@nokia.com>
Thu, 1 Mar 2012 08:37:56 +0000 (09:37 +0100)
This doesn't mean the DND works for the wayland plugin yet

Change-Id: I6a4ae57e4b19dcedaf10119e033d5cbead8cb19d
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/plugins/platforms/wayland/qwaylanddnd.cpp
src/plugins/platforms/wayland/qwaylanddnd.h

index b1b3880..4276759 100644 (file)
@@ -59,9 +59,10 @@ QMimeData * QWaylandDrag::platformDropData()
     return m_display->dndSelectionHandler()->dragMime();
 }
 
-void QWaylandDrag::startDrag(QDrag *drag)
+Qt::DropAction QWaylandDrag::drag(QDrag *m_drag)
 {
-    m_display->dndSelectionHandler()->createAndSetDrag(drag);
+//    m_display->dndSelectionHandler()->createAndSetDrag(drag);
+    return Qt::IgnoreAction;
 }
 
 void QWaylandDrag::move(const QMouseEvent *me)
index 6f7018f..92f7297 100644 (file)
@@ -55,7 +55,7 @@ public:
 
     QMimeData *platformDropData();
 
-    void startDrag(QDrag *drag);
+    Qt::DropAction drag(QDrag *m_drag);
     void move(const QMouseEvent *me);
     bool canDrop() const;
     void drop(const QMouseEvent *me);