]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/sidebartreeview.h
SVN_SILENT made messages (.desktop file)
[dolphin.git] / src / sidebartreeview.h
index f7360e9c4ee8e1b40d09b9ab2c96c4aec0cc8511..b2e42e24fbb80c058de8303301397c84e7258a54 100644 (file)
@@ -21,9 +21,7 @@
 #define SIDEBARTREEVIEW_H
 
 #include <kurl.h>
-#include <QTreeView>
-
-class DolphinMainWindow;
+#include <QtGui/QTreeView>
 
 /**
  * @brief Tree view widget which is used for the sidebar panel.
@@ -35,24 +33,29 @@ class SidebarTreeView : public QTreeView
     Q_OBJECT
 
 public:
-    explicit SidebarTreeView(DolphinMainWindow* mainWindow, QWidget* parent = 0);
+    explicit SidebarTreeView(QWidget* parent = 0);
     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:
-    DolphinMainWindow* m_mainWindow;
+    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