]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinmainwindow.h
Don't show an empty window caption when browsing "/", "trash:", etc.
[dolphin.git] / src / dolphinmainwindow.h
index 5e1d27476bc1c10af8f1461f42f18046b93a2122..c1e0ffcbdc14415e0c4cd50d5d5a3f0b9a1ab486 100644 (file)
@@ -435,6 +435,12 @@ private:
      */
     QString tabProperty(const QString& property, int tabIndex) const;
 
+    /**
+     * Sets the window caption to url.fileName() if this is non-empty, 
+     * "/" if the URL is "file:///", and url.protocol() otherwise.
+     */
+    void setUrlAsCaption(const KUrl& url);
+
 private:
     /**
      * Implements a custom error handling for the undo manager. This