]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/sidebarpage.cpp
Make sort/descending available in dolphinpart
[dolphin.git] / src / sidebarpage.cpp
index c6c120f0e1af54b475d712399c55f06f4643878e..889dc48c450389c9885296955d766abd787c8374 100644 (file)
@@ -1,5 +1,6 @@
 /***************************************************************************
  *   Copyright (C) 2006 by Cvetoslav Ludmiloff <ludmiloff@gmail.com>       *
+ *   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  *
  ***************************************************************************/
 
 #include "sidebarpage.h"
-#include <QWidget>
+#include <QtGui/QWidget>
 #include <kfileitem.h>
 #include <kurl.h>
 
 SidebarPage::SidebarPage(QWidget* parent) :
-        QWidget(parent),
-        m_url(KUrl()),
-        m_currentSelection(KFileItemList())
-{}
+    QWidget(parent),
+    m_url(KUrl()),
+    m_currentSelection()
+{
+}
 
 SidebarPage::~SidebarPage()
-{}
+{
+}
+
+const KUrl& SidebarPage::url() const
+{
+    return m_url;
+}
+
+const KFileItemList& SidebarPage::selection() const
+{
+    return m_currentSelection;
+}
 
 void SidebarPage::setUrl(const KUrl& url)
 {