diff options
| author | Peter Penz <[email protected]> | 2007-06-28 18:52:54 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-06-28 18:52:54 +0000 |
| commit | 34ff90696f8a9d8a5d2c02be1b11b4d092b888c1 (patch) | |
| tree | 512848c4c0a77b5e967b5426199516c5f48da3e8 /src/dolphincontroller.h | |
| parent | ba6c853219c78e4e2a491d416b94e4e4c1aef591 (diff) | |
Improve handling of column view:
* Activate column on a mouse press event
* Always synchronize the active column with the URL navigator and vice versa
svn path=/trunk/KDE/kdebase/apps/; revision=681369
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; |
