]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/sidebartreeview.h
There we go. Fix this bug :)
[dolphin.git] / src / sidebartreeview.h
index d4560fb4460a33db3bdfcf1efc6da8552f790a38..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.
@@ -37,18 +37,25 @@ public:
     virtual ~SidebarTreeView();
 
 signals:
-   /**
-     * Is emitted if the URLs \a urls have been dropped to
-     * the index \a index.
-     */
+    /**
+      * Is emitted if the URLs \a urls have been dropped to
+      * the index \a index.
+      */
     void urlsDropped(const KUrl::List& urls,
                      const QModelIndex& index);
 
 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