Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 820be3df authored by Marco Martin's avatar Marco Martin

remove leaveModuleView

pressing esc is not supposed to close the module on this view
parent 5f9c6f12
......@@ -321,7 +321,6 @@ void SidebarMode::initEvent()
d->mainLayout->setContentsMargins(0, 0, 0, 0);
d->moduleView = new ModuleView( d->mainWidget );
connect( d->moduleView, &ModuleView::moduleChanged, this, &SidebarMode::moduleLoaded );
connect( d->moduleView, &ModuleView::closeRequest, this, &SidebarMode::leaveModuleView );
d->quickWidget = 0;
moduleView()->setFaceType(KPageView::Plain);
}
......@@ -489,11 +488,6 @@ bool SidebarMode::eventFilter(QObject* watched, QEvent* event)
return BaseMode::eventFilter(watched, event);
}
void SidebarMode::leaveModuleView()
{
d->moduleView->closeModules(); // We have to force it here
}
void SidebarMode::giveFocus()
{
d->quickWidget->setFocus();
......
......@@ -45,7 +45,6 @@ public:
QWidget * mainWidget() Q_DECL_OVERRIDE;
void initEvent() Q_DECL_OVERRIDE;
void giveFocus() Q_DECL_OVERRIDE;
void leaveModuleView() Q_DECL_OVERRIDE;
KAboutData * aboutData() Q_DECL_OVERRIDE;
ModuleView * moduleView() const Q_DECL_OVERRIDE;
QAbstractItemModel *categoryModel() const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment