From 277e385fd8a1f23cacf801f469e373b64e9443c0 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 11 Mar 2007 09:15:08 +0000 Subject: support drag & drop for the treeview sidebar page svn path=/trunk/KDE/kdebase/apps/; revision=641405 --- src/sidebartreeview.h | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'src/sidebartreeview.h') diff --git a/src/sidebartreeview.h b/src/sidebartreeview.h index acec07614..8b1f039a0 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,12 +20,15 @@ #ifndef SIDEBARTREEVIEW_H #define SIDEBARTREEVIEW_H +#include #include class DolphinMainWindow; /** - * @brief + * @brief Tree view widget which is used for the sidebar panel. + * + * @see TreeViewSidebarPage */ class SidebarTreeView : public QTreeView { @@ -36,6 +38,17 @@ public: explicit SidebarTreeView(DolphinMainWindow* mainWindow, QWidget* parent = 0); virtual ~SidebarTreeView(); +signals: + /** + * Is emitted if the URLs \a urls have been dropped. + * @param pos Position relative to the tree view where the + * dropping has been done. It is recommended + * to get the corresponding model index from + * this position to find out the destination. + */ + void urlsDropped(const KUrl::List& urls, + const QPoint& pos); + protected: virtual bool event(QEvent* event); virtual void dragEnterEvent(QDragEnterEvent* event); -- cgit v1.3