X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/8f9baef848c3056cd1df772f0774decad509cff3..d6488887ecf69d7f192b94de8dce34fae0b7eb76:/src/sidebartreeview.h diff --git a/src/sidebartreeview.h b/src/sidebartreeview.h index d4560fb44..b2e42e24f 100644 --- a/src/sidebartreeview.h +++ b/src/sidebartreeview.h @@ -21,7 +21,7 @@ #define SIDEBARTREEVIEW_H #include -#include +#include /** * @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