From 34ff90696f8a9d8a5d2c02be1b11b4d092b888c1 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Thu, 28 Jun 2007 18:52:54 +0000 Subject: 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 --- src/dolphincontroller.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/dolphincontroller.h') 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); @@ -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 @@ -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; -- cgit v1.3