X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/fe8b349bcee6426ddc6f33bc221dfc8973b07e33..61a4e8691d600a1d105142ce44570c4107600a04:/src/sidebarpage.cpp diff --git a/src/sidebarpage.cpp b/src/sidebarpage.cpp index ce3b8cc34..c6c120f0e 100644 --- a/src/sidebarpage.cpp +++ b/src/sidebarpage.cpp @@ -18,26 +18,27 @@ ***************************************************************************/ #include "sidebarpage.h" -#include "dolphinmainwindow.h" +#include +#include +#include -SidebarPage::SidebarPage(DolphinMainWindow* mainWindow, QWidget* parent) : - QWidget(parent), - m_mainWindow(mainWindow) -{ - connect(mainWindow, SIGNAL(activeViewChanged()), - this, SLOT(activeViewChanged())); -} +SidebarPage::SidebarPage(QWidget* parent) : + QWidget(parent), + m_url(KUrl()), + m_currentSelection(KFileItemList()) +{} SidebarPage::~SidebarPage() -{ -} +{} -void SidebarPage::activeViewChanged() +void SidebarPage::setUrl(const KUrl& url) { + m_url = url; } -DolphinMainWindow* SidebarPage::mainWindow() const { - return m_mainWindow; +void SidebarPage::setSelection(const KFileItemList& selection) +{ + m_currentSelection = selection; } #include "sidebarpage.moc"