X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/ea548584637bf0f6da5d8dac0e7172a4cdc1fc50..b2db9bd9eddcfaa01cdc2239bb73fa7f74767d56:/src/sidebartreeview.h diff --git a/src/sidebartreeview.h b/src/sidebartreeview.h index ba8fd7485..93bcbae2e 100644 --- a/src/sidebartreeview.h +++ b/src/sidebartreeview.h @@ -21,14 +21,14 @@ #define SIDEBARTREEVIEW_H #include -#include +#include /** * @brief Tree view widget which is used for the sidebar panel. * * @see TreeViewSidebarPage */ -class SidebarTreeView : public QTreeView +class SidebarTreeView : public KTreeView { Q_OBJECT @@ -38,23 +38,21 @@ 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); + 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 + QRect m_dropRect; }; #endif