]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinurlnavigator.h
Improve details mode ctrl-press rubberband creation
[dolphin.git] / src / dolphinurlnavigator.h
index 9bcc32b4d1463d1cfbcc37a31dd3068b92cdb312..572c29f631444d39f9e01cd7d91f312cc9732ed3 100644 (file)
@@ -36,7 +36,7 @@ public:
      */
     DolphinUrlNavigator(const QUrl &url, QWidget *parent = nullptr);
 
-    virtual ~DolphinUrlNavigator();
+    ~DolphinUrlNavigator() override;
 
     // TODO: Fix KUrlNavigator::sizeHint() instead.
     QSize sizeHint() const override;
@@ -66,7 +66,17 @@ public:
      */
     void setVisualState(const VisualState &visualState);
 
-public slots:
+    /**
+     * Clears the text in the text field
+     */
+    void clearText() const;
+
+    /**
+     * Displays placeholder text in the URL navigator
+     */
+    void setPlaceholderText(const QString &text);
+
+public Q_SLOTS:
     /**
      * Switches to "breadcrumb" mode if the editable mode is not set to be
      * preferred in the Dolphin settings.