┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels/places/placespanel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/panels/places/placespanel.h')
-rw-r--r--src/panels/places/placespanel.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/panels/places/placespanel.h b/src/panels/places/placespanel.h
index 903f2cadb..1c46cd57d 100644
--- a/src/panels/places/placespanel.h
+++ b/src/panels/places/placespanel.h
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2008 by Peter Penz <[email protected]> *
+ * Copyright (C) 2008-2012 by Peter Penz <[email protected]> *
* Copyright (C) 2010 by Christian Muehlhaeuser <[email protected]> *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -21,12 +21,15 @@
#ifndef PLACESPANEL_H
#define PLACESPANEL_H
-#include <kfileplacesview.h>
+#include <panels/panel.h>
+
+class KItemListController;
+class KStandardItemModel;
/**
* @brief Combines bookmarks and mounted devices as list.
*/
-class PlacesPanel : public KFilePlacesView
+class PlacesPanel : public Panel
{
Q_OBJECT
@@ -34,18 +37,16 @@ public:
PlacesPanel(QWidget* parent);
virtual ~PlacesPanel();
-signals:
- void urlChanged(const KUrl& url, Qt::MouseButtons buttons);
-
protected:
- virtual void mousePressEvent(QMouseEvent* event);
+ virtual bool urlChanged();
+ virtual void showEvent(QShowEvent* event);
private slots:
void slotUrlsDropped(const KUrl& dest, QDropEvent* event, QWidget* parent);
- void emitExtendedUrlChangedSignal(const KUrl& url);
private:
- Qt::MouseButtons m_mouseButtons;
+ KItemListController* m_controller;
+ KStandardItemModel* m_model;
};
#endif // PLACESPANEL_H