┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/filterbar.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2006-12-08 23:41:08 +0000
committerPeter Penz <[email protected]>2006-12-08 23:41:08 +0000
commitd8669c68e40a6571dfcbdf38e3281a4aeb8c2be6 (patch)
tree8b49a9b34fbdcbb9f577481a7acf9efb62322c8f /src/filterbar.h
parentd7d4fb9d26773c2d729b49d71af10e1378381ff3 (diff)
Cleanup of signal/slot handling between the dolphin view and the main window: now the main window listens to the signals from the dolphin view and connects to private slots (previously the dolphin view connected to public slots of the main window). Also prevent naming all slots by the prefix 'slot', describe instead what the method does.
svn path=/trunk/playground/utils/dolphin/; revision=611617
Diffstat (limited to 'src/filterbar.h')
-rw-r--r--src/filterbar.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/filterbar.h b/src/filterbar.h
index 503938fc0..b1d60232c 100644
--- a/src/filterbar.h
+++ b/src/filterbar.h
@@ -31,13 +31,14 @@ class DolphinMainWindow;
* @brief Provides an input field for filtering the currently shown items.
*
* @author Gregor Kališnik <[email protected]>
+ * @author Peter Penz <[email protected]>
*/
class FilterBar : public QWidget
{
Q_OBJECT
public:
- FilterBar(DolphinMainWindow* mainWindow, QWidget *parent = 0, const char *name = 0);
+ FilterBar(QWidget* parent = 0);
virtual ~FilterBar();
signals:
@@ -45,15 +46,22 @@ signals:
* Signal that reports the name filter has been
* changed to \a nameFilter.
*/
- void signalFilterChanged(const QString& nameFilter);
+ void filterChanged(const QString& nameFilter);
+
+ /**
+ * Emitted as soon as the filterbar should get closed.
+ */
+ void closed();
protected:
virtual void hideEvent(QHideEvent* event);
virtual void showEvent(QShowEvent* event);
virtual void keyReleaseEvent(QKeyEvent* event);
+private slots:
+ void emitClose();
+
private:
- DolphinMainWindow *m_mainWindow;
QLabel* m_filter;
KLineEdit* m_filterInput;
QToolButton* m_close;