]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphincontroller.h
use "Sort by" instead of "Sort By"
[dolphin.git] / src / dolphincontroller.h
index aa0eab22fabbcc4d7fd5cafa0317dcc401a53af5..d91e7f5c1c1f576c6418903836105a88881cc1e0 100644 (file)
@@ -57,7 +57,8 @@ public:
     explicit DolphinController(QObject* parent);
     virtual ~DolphinController();
 
-    inline void setUrl(const KUrl& url);
+    /** Sets the URL to \a url and emits the signal urlChanged(). */
+    void setUrl(const KUrl& url);
     inline const KUrl& url() const;
 
     void triggerContextMenuRequest(const QPoint& pos);
@@ -110,6 +111,12 @@ public slots:
     void emitViewportEntered();
 
 signals:
+    /**
+     * Is emitted if the URL for the Dolphin controller has been changed
+     * to \a url.
+     */
+    void urlChanged(const KUrl& url);
+
     /**
      * Is emitted if a context menu should be opened.
      * @param pos       Position relative to the view widget where the
@@ -155,6 +162,7 @@ signals:
      * Is emitted if the item with the index \a index should be triggered.
      * Usually triggering on a directory opens the directory, triggering
      * on a file opens the corresponding application.
+     * Emitted with an invalid \a index when clicking on the viewport itself.
      */
     void itemTriggered(const QModelIndex& index);
 
@@ -183,11 +191,6 @@ private:
     KUrl m_url;
 };
 
-void DolphinController::setUrl(const KUrl& url)
-{
-    m_url = url;
-}
-
 const KUrl& DolphinController::url() const
 {
     return m_url;