/***************************************************************************
* 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())
+{
+}
SidebarPage::~SidebarPage()
-{}
+{
+}
-void SidebarPage::setUrl(const KUrl& url)
+const KUrl& SidebarPage::url() const
{
- m_url = url;
+ return m_url;
}
-void SidebarPage::setSelection(const KFileItemList& selection)
+void SidebarPage::setUrl(const KUrl& url)
{
- m_currentSelection = selection;
+ m_url = url;
}
#include "sidebarpage.moc"