diff options
Diffstat (limited to 'src/dolphincontroller.h')
| -rw-r--r-- | src/dolphincontroller.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/dolphincontroller.h b/src/dolphincontroller.h index aa0eab22f..356daead5 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); @@ -111,6 +112,12 @@ public slots: 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 * context menu should be opened. It is recommended @@ -183,11 +190,6 @@ private: KUrl m_url; }; -void DolphinController::setUrl(const KUrl& url) -{ - m_url = url; -} - const KUrl& DolphinController::url() const { return m_url; |
