From 622346cb4adc281d93bb777cad625610029c260d Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 9 Jan 2011 10:22:41 +0100 Subject: Automatically expand grouped search in panels GCI Task by Furkan Uzumcu --- src/urlpanel.cpp | 6 ++++++ src/urlpanel.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/src/urlpanel.cpp b/src/urlpanel.cpp index d7ddd896..e92b701a 100644 --- a/src/urlpanel.cpp +++ b/src/urlpanel.cpp @@ -99,8 +99,14 @@ void UrlPanel::setup() _treeView->setModel(proxy); connect(search, SIGNAL(textChanged(QString)), proxy, SLOT(setFilterFixedString(QString))); + connect(search, SIGNAL(textChanged(QString)), this, SLOT(expandTreeView())); connect(_treeView, SIGNAL(contextMenuItemRequested(const QPoint &)), this, SLOT(contextMenuItem(const QPoint &))); connect(_treeView, SIGNAL(contextMenuGroupRequested(const QPoint &)), this, SLOT(contextMenuGroup(const QPoint &))); connect(_treeView, SIGNAL(contextMenuEmptyRequested(const QPoint &)), this, SLOT(contextMenuEmpty(const QPoint &))); } + +void UrlPanel::expandTreeView() +{ + _treeView->expandAll(); +} diff --git a/src/urlpanel.h b/src/urlpanel.h index 42ff85fa..ab81a390 100644 --- a/src/urlpanel.h +++ b/src/urlpanel.h @@ -70,6 +70,9 @@ protected Q_SLOTS: private: PanelTreeView *_treeView; bool _loaded; + +private slots: + void expandTreeView(); }; -- cgit v1.2.1