From eaa0ff560b273d785d8f7524bc3ddc597ba14d96 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 19 Jun 2007 18:58:30 +0000 Subject: when requesting a context menu provide a URL for the viewport, because in the column view this URL can differ from the navigator URL svn path=/trunk/KDE/kdebase/apps/; revision=677704 --- src/dolphincontroller.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/dolphincontroller.h') diff --git a/src/dolphincontroller.h b/src/dolphincontroller.h index aa0eab22f..c45c55980 100644 --- a/src/dolphincontroller.h +++ b/src/dolphincontroller.h @@ -60,7 +60,7 @@ public: inline void setUrl(const KUrl& url); inline const KUrl& url() const; - void triggerContextMenuRequest(const QPoint& pos); + void triggerContextMenuRequest(const QPoint& pos, const KUrl& url); void triggerActivation(); @@ -116,8 +116,10 @@ signals: * context menu should be opened. It is recommended * to get the corresponding model index from * this position. + * @param url URL of the viewport, if there is no valid model + * index on the given position. */ - void requestContextMenu(const QPoint& pos); + void requestContextMenu(const QPoint& pos, const KUrl& url); /** * Is emitted if the view has been activated by e. g. a mouse click. -- cgit v1.3