X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/b5cc2a6924cfd8f59611d3cec2edbb00a08b4ff1..fbd7cb02a511ff869d74aa4e758203a1cd340962:/src/sidebartreeview.h diff --git a/src/sidebartreeview.h b/src/sidebartreeview.h index acec07614..93bcbae2e 100644 --- a/src/sidebartreeview.h +++ b/src/sidebartreeview.h @@ -1,6 +1,5 @@ /*************************************************************************** - * Copyright (C) 2006 by Peter Penz * - * peter.penz@gmx.at * + * Copyright (C) 2006 by Peter Penz * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -21,28 +20,39 @@ #ifndef SIDEBARTREEVIEW_H #define SIDEBARTREEVIEW_H -#include - -class DolphinMainWindow; +#include +#include /** - * @brief + * @brief Tree view widget which is used for the sidebar panel. + * + * @see TreeViewSidebarPage */ -class SidebarTreeView : public QTreeView +class SidebarTreeView : public KTreeView { Q_OBJECT public: - explicit SidebarTreeView(DolphinMainWindow* mainWindow, QWidget* parent = 0); + explicit SidebarTreeView(QWidget* parent = 0); virtual ~SidebarTreeView(); +signals: + /** + * Is emitted if the URL have been dropped to + * the index \a 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); private: - DolphinMainWindow* m_mainWindow; + QRect m_dropRect; }; #endif