From f31a541925033c2ef5e27b85c099d47791b50121 Mon Sep 17 00:00:00 2001 From: Holger Freyther Date: Wed, 29 Nov 2006 00:02:19 +0000 Subject: Make it (almost) possible to have more than one Dolphin KMainWindow Create a DolphinApplication, holding DolphinMainWindows and update the code to use the DolphinView to get the MainWindow, or get a ptr to the MainWindow directly. Or if all windows are effected go through the DolphinApplication to update every mainwindow. The UndowManager and ProgressIndicator have a rather strange relationship and will need some more attention but as UndoManager will be killed anyway I have skipped this. More cleanup, debugging and thinking is needed. svn path=/trunk/playground/utils/dolphin/; revision=608945 --- src/filterbar.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/filterbar.h') diff --git a/src/filterbar.h b/src/filterbar.h index 3f5c3cbfd..ef8bd52b7 100644 --- a/src/filterbar.h +++ b/src/filterbar.h @@ -25,6 +25,7 @@ class QLabel; class QToolButton; class KLineEdit; +class DolphinMainWindow; /** * @brief Provides an input field for filtering the currently shown items. @@ -36,7 +37,7 @@ class FilterBar : public QWidget Q_OBJECT public: - FilterBar(QWidget *parent = 0, const char *name = 0); + FilterBar(DolphinMainWindow* mainWindow, QWidget *parent = 0, const char *name = 0); virtual ~FilterBar(); signals: @@ -52,6 +53,7 @@ protected: virtual void keyReleaseEvent(QKeyEvent* event); private: + DolphinMainWindow *m_mainWindow; QLabel* m_filter; KLineEdit* m_filterInput; QToolButton* m_close; -- cgit v1.3.1