X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/2cb45d81a5d61fbb703c8dac342d9945aed35e41..ec00f379dc42b00a64ab1af25bb4bb1a06bd7449:/src/dolphincontroller.h diff --git a/src/dolphincontroller.h b/src/dolphincontroller.h index aa0eab22f..d91e7f5c1 100644 --- a/src/dolphincontroller.h +++ b/src/dolphincontroller.h @@ -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;