]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/sidebartreeview.h
Forwardport 773570:
[dolphin.git] / src / sidebartreeview.h
index d12737151a08d51878611d9444452c5d15d77ec3..b2e42e24fbb80c058de8303301397c84e7258a54 100644 (file)
@@ -21,7 +21,7 @@
 #define SIDEBARTREEVIEW_H
 
 #include <kurl.h>
-#include <QTreeView>
+#include <QtGui/QTreeView>
 
 /**
  * @brief Tree view widget which is used for the sidebar panel.
@@ -46,9 +46,16 @@ signals:
 
 protected:
     virtual bool event(QEvent* event);
+    virtual void startDrag(Qt::DropActions supportedActions);
     virtual void dragEnterEvent(QDragEnterEvent* event);
+    virtual void dragLeaveEvent(QDragLeaveEvent* event);
+    virtual void dragMoveEvent(QDragMoveEvent* event);
     virtual void dropEvent(QDropEvent* event);
+    virtual void paintEvent(QPaintEvent* event);
 
+private:
+    bool m_dragging;   // TODO: remove this property when the issue #160611 is solved in Qt 4.4
+    QRect m_dropRect;  // TODO: remove this property when the issue #160611 is solved in Qt 4.4
 };
 
 #endif