]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/sidebartreeview.h
* don't show a tooltip if a rubberband selection is done
[dolphin.git] / src / sidebartreeview.h
index b2e42e24fbb80c058de8303301397c84e7258a54..93bcbae2eb48e12764f0d6edb847779b50f55368 100644 (file)
 #define SIDEBARTREEVIEW_H
 
 #include <kurl.h>
-#include <QtGui/QTreeView>
+#include <ktreeview.h>
 
 /**
  * @brief Tree view widget which is used for the sidebar panel.
  *
  * @see TreeViewSidebarPage
  */
-class SidebarTreeView : public QTreeView
+class SidebarTreeView : public KTreeView
 {
     Q_OBJECT
 
@@ -38,11 +38,10 @@ public:
 
 signals:
     /**
-      * Is emitted if the URLs \a urls have been dropped to
+      * Is emitted if the URL have been dropped to
       * the index \a index.
       */
-    void urlsDropped(const KUrl::List& urls,
-                     const QModelIndex& index);
+    void urlsDropped(const QModelIndex& index, QDropEvent* event);
 
 protected:
     virtual bool event(QEvent* event);
@@ -51,11 +50,9 @@ protected:
     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
+    QRect m_dropRect;
 };
 
 #endif