From 57e3503e2f7dc2528d7935226d1cd283d8278807 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 11 May 2008 20:14:50 +0000 Subject: If the middle mouse button is pressed above an item of the places panel, open the URL inside a new tab. svn path=/trunk/KDE/kdebase/apps/; revision=806606 --- src/dolphinmainwindow.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/dolphinmainwindow.h') diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h index c03e2404d..71d7b52d1 100644 --- a/src/dolphinmainwindow.h +++ b/src/dolphinmainwindow.h @@ -339,6 +339,13 @@ private slots: */ void openTabContextMenu(int index, const QPoint& pos); + /** + * Handles a click on a places item: if the middle mouse button is + * clicked, a new tab is opened for \a url, otherwise the current + * view is replaced by \a url. + */ + void handlePlacesClick(const KUrl& url, Qt::MouseButtons buttons); + private: DolphinMainWindow(int id); void init(); -- cgit v1.3