]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/sidebarpage.cpp
Fix the problem with the column views.
[dolphin.git] / src / sidebarpage.cpp
index 5b0e68f288a2fd7ca788b7b4b9eefced76097bd9..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())
+    m_currentSelection()
 {
 }
 
@@ -33,6 +34,16 @@ SidebarPage::~SidebarPage()
 {
 }
 
+const KUrl& SidebarPage::url() const
+{
+    return m_url;
+}
+
+const KFileItemList& SidebarPage::selection() const
+{
+    return m_currentSelection;
+}
+
 void SidebarPage::setUrl(const KUrl& url)
 {
     m_url = url;