Commit b93ec7aa authored by Laurent Montel's avatar Laurent Montel 😁

When we click on "clear search" clear lineedit too

parent d1355c3a
......@@ -185,12 +185,18 @@ void KInfoCenter::createMenuFrame()
m_sideMenu = new SidePanel(sideFrame);
m_sideMenu->installEventFilter(this);
connect(m_sideMenu, &SidePanel::clearSearchLine, this, &KInfoCenter::clearSearchLine);
menuLayout->addWidget(m_searchText);
menuLayout->addWidget(m_sideMenu);
m_splitter->addWidget(sideFrame);
}
void KInfoCenter::clearSearchLine()
{
m_searchText->clear();
}
void KInfoCenter::itemClickedSlot(const KcmTreeItem *item)
{
resetCondition();
......
......@@ -139,6 +139,8 @@ class KInfoCenter : public KXmlGuiWindow
*/
void resetCondition();
void clearSearchLine();
KcmContainer *m_contain;
QSplitter *m_splitter;
......
......@@ -141,5 +141,6 @@ QStringList SidePanel::allChildKeywords()
void SidePanel::resetSearchSlot()
{
filterSideMenuSlot(QLatin1String(""));
Q_EMIT clearSearchLine();
}
......@@ -115,6 +115,9 @@ class SidePanel : public QTreeView
*/
void resetSearchSlot();
Q_SIGNALS:
void clearSearchLine();
private:
/**
......
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