X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/9a5f54d83ddc84aa68348058acfcb385ef621577..328de208710faebaa275e2ef8ddb28a78ea5a2f0:/src/sidebarpage.cpp diff --git a/src/sidebarpage.cpp b/src/sidebarpage.cpp index 0b633335b..5a57ad282 100644 --- a/src/sidebarpage.cpp +++ b/src/sidebarpage.cpp @@ -18,12 +18,13 @@ ***************************************************************************/ #include "sidebarpage.h" -#include "dolphin.h" +#include "dolphinmainwindow.h" -SidebarPage::SidebarPage(QWidget* parent) : - QWidget(parent) +SidebarPage::SidebarPage(DolphinMainWindow *mainWindow, QWidget* parent) : + QWidget(parent), + m_mainWindow(mainWindow) { - connect(&Dolphin::mainWin(), SIGNAL(activeViewChanged()), + connect(mainWindow, SIGNAL(activeViewChanged()), this, SLOT(activeViewChanged())); } @@ -35,4 +36,8 @@ void SidebarPage::activeViewChanged() { } +DolphinMainWindow* SidebarPage::mainWindow() const { + return m_mainWindow; +} + #include "sidebarpage.moc"