From d85a6ec6dd3a30784c07636a77ee502dd5dae4a2 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Mon, 19 Jan 2009 14:25:08 +0000 Subject: Use a custom SearchWidget instead directly using a KLineEdit. Currently the DolphinSearchWidget acts as "playground" to test some ideas. If it works well it might be a good idea moving this widget as KSearchBox (?) to kdelibs, so that it can be used by the file dialog or other applications. svn path=/trunk/KDE/kdebase/apps/; revision=913572 --- src/dolphinmainwindow.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/dolphinmainwindow.h') diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h index 9939117b7..d65a7acff 100644 --- a/src/dolphinmainwindow.h +++ b/src/dolphinmainwindow.h @@ -39,9 +39,9 @@ typedef KIO::FileUndoManager::CommandType CommandType; class KAction; class DolphinViewActionHandler; class DolphinApplication; +class DolphinSearchBox; class DolphinSettingsDialog; class DolphinViewContainer; -class KLineEdit; class KNewMenu; class KTabBar; class KUrl; @@ -362,9 +362,10 @@ private slots: void slotTestCanDecode(const QDragMoveEvent* event, bool& accept); /** - * Searchs items that match to the text entered in the search bar. + * Is connected with the Dolphin search box and searchs items that + * match to the text entered in the search bar. */ - void searchItems(); + void searchItems(const KUrl& url); private: DolphinMainWindow(int id); @@ -426,7 +427,7 @@ private: KTabBar* m_tabBar; DolphinViewContainer* m_activeViewContainer; QVBoxLayout* m_centralWidgetLayout; - KLineEdit* m_searchBar; + DolphinSearchBox* m_searchBox; int m_id; struct ViewTab -- cgit v1.3