diff options
| author | Peter Penz <[email protected]> | 2009-01-19 14:25:08 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-01-19 14:25:08 +0000 |
| commit | d85a6ec6dd3a30784c07636a77ee502dd5dae4a2 (patch) | |
| tree | bab21b2cabd4777d5ae52bff12d8e17118ef91ea /src/dolphinmainwindow.h | |
| parent | be1298d9aabbcc18c8a2b1c697d2bca5e7c0a9f3 (diff) | |
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
Diffstat (limited to 'src/dolphinmainwindow.h')
| -rw-r--r-- | src/dolphinmainwindow.h | 9 |
1 files changed, 5 insertions, 4 deletions
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 |
