]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/viewmodecontroller.h
Add clang-format and format code as in Frameworks
[dolphin.git] / src / views / viewmodecontroller.h
index 9f5104c57f2c6f4ca4015619ca6dd98f685dc6ed..3aebf163803318746f0bb515bd5f688bdaa87383 100644 (file)
@@ -26,7 +26,7 @@ class DOLPHIN_EXPORT ViewModeController : public QObject
     Q_OBJECT
 
 public:
-    explicit ViewModeController(QObjectparent = nullptr);
+    explicit ViewModeController(QObject *parent = nullptr);
     ~ViewModeController() override;
 
     /**
@@ -38,7 +38,7 @@ public:
      * Sets the URL to \a url and does nothing else. Called when
      * a redirection happens. See ViewModeController::setUrl()
      */
-    void redirectToUrl(const QUrlurl);
+    void redirectToUrl(const QUrl &url);
 
     /**
      * Informs the view mode implementation about a change of the activation
@@ -58,26 +58,21 @@ public:
     /**
      * Sets the name filter to \a and emits the signal nameFilterChanged().
      */
-    void setNameFilter(const QStringnameFilter);
+    void setNameFilter(const QString &nameFilter);
     QString nameFilter() const;
 
-    /**
-     * Requests the view mode implementation to hide tooltips.
-     */
-    void requestToolTipHiding();
-
-public slots:
+public Q_SLOTS:
     /**
      * Sets the URL to \a url and emits the signals cancelPreviews() and
      * urlChanged() if \a url is different for the current URL.
      */
-    void setUrl(const QUrlurl);
+    void setUrl(const QUrl &url);
 
-signals:
+Q_SIGNALS:
     /**
      * Is emitted if the URL has been changed by ViewModeController::setUrl().
      */
-    void urlChanged(const QUrlurl);
+    void urlChanged(const QUrl &url);
 
     /**
      * Is emitted, if ViewModeController::indicateActivationChange() has been
@@ -90,7 +85,7 @@ signals:
      * Is emitted if the name filter has been changed by
      * ViewModeController::setNameFilter().
      */
-    void nameFilterChanged(const QStringnameFilter);
+    void nameFilterChanged(const QString &nameFilter);
 
     /**
      * Is emitted if the zoom level has been changed by