]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/filterbar/filterbar.h
Merge branch 'master' into kf6
[dolphin.git] / src / filterbar / filterbar.h
index 74c8457fcff7a9aa279c5652a4284d03ada29b0b..3530558839c0284e8f8cfa67f9e12e0ff9608b5e 100644 (file)
@@ -24,7 +24,7 @@ class FilterBar : public QWidget
     Q_OBJECT
 
 public:
-    explicit FilterBar(QWidgetparent = nullptr);
+    explicit FilterBar(QWidget *parent = nullptr);
     ~FilterBar() override;
 
     /** Called by view container to hide this **/
@@ -35,20 +35,20 @@ public:
      */
     void selectAll();
 
-public slots:
+public Q_SLOTS:
     /** Clears the input field. */
     void clear();
     /** Clears the input field if the "lock button" is disabled. */
-    void slotUrlChanged();
+    void clearIfUnlocked();
     /** The input field is cleared also if the "lock button" is released. */
     void slotToggleLockButton(bool checked);
 
-signals:
+Q_SIGNALS:
     /**
      * Signal that reports the name filter has been
      * changed to \a nameFilter.
      */
-    void filterChanged(const QStringnameFilter);
+    void filterChanged(const QString &nameFilter);
 
     /**
      * Emitted as soon as the filterbar should get closed.
@@ -61,12 +61,12 @@ signals:
     void focusViewRequest();
 
 protected:
-    void showEvent(QShowEventevent) override;
-    void keyReleaseEvent(QKeyEvent* event) override;
+    void showEvent(QShowEvent *event) override;
+    void keyPressEvent(QKeyEvent *event) override;
 
 private:
-    QLineEditm_filterInput;
-    QToolButtonm_lockButton;
+    QLineEdit *m_filterInput;
+    QToolButton *m_lockButton;
 };
 
 #endif