]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/sidebartreeview.h
adapt Dolphin to kdelibs coding style (http://techbase.kde.org/Policies/Kdelibs_Codin...
[dolphin.git] / src / sidebartreeview.h
index acec0761459c93cc683bdd8a19f32fbbe67c1b30..d12737151a08d51878611d9444452c5d15d77ec3 100644 (file)
@@ -1,6 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2006 by Peter Penz                                      *
- *   peter.penz@gmx.at                                                     *
+ *   Copyright (C) 2006 by Peter Penz <peter.penz@gmx.at>                  *
  *                                                                         *
  *   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  *
 #ifndef SIDEBARTREEVIEW_H
 #define SIDEBARTREEVIEW_H
 
+#include <kurl.h>
 #include <QTreeView>
 
-class DolphinMainWindow;
-
 /**
- * @brief
+ * @brief Tree view widget which is used for the sidebar panel.
+ *
+ * @see TreeViewSidebarPage
  */
 class SidebarTreeView : public QTreeView
 {
     Q_OBJECT
 
 public:
-    explicit SidebarTreeView(DolphinMainWindow* mainWindow, QWidget* parent = 0);
+    explicit SidebarTreeView(QWidget* parent = 0);
     virtual ~SidebarTreeView();
 
+signals:
+    /**
+      * 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 dragEnterEvent(QDragEnterEvent* event);
     virtual void dropEvent(QDropEvent* event);
 
-private:
-    DolphinMainWindow* m_mainWindow;
 };
 
 #endif