From dcbf1a11783d47e7e4fa30d488ac93a8bc547e71 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 23 Nov 2008 12:28:10 +0000 Subject: Opening a tab with the middle mouse button should always be done with one click, even if double click has been activated. BUG: 162986 svn path=/trunk/KDE/kdebase/apps/; revision=888007 --- src/dolphincontroller.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/dolphincontroller.h') diff --git a/src/dolphincontroller.h b/src/dolphincontroller.h index 13a840a38..77e965afe 100644 --- a/src/dolphincontroller.h +++ b/src/dolphincontroller.h @@ -60,6 +60,7 @@ class QWidget; * - indicateSortingChange() * - indicateSortOrderChanged() * - triggerItem() + * - openTab() * - handleKeyPressEvent() * - emitItemEntered() * - emitViewportEntered() @@ -217,10 +218,19 @@ public: public slots: /** * Emits the signal itemTriggered() if the file item for the index \a index - * is not null. The method should be invoked by the - * controller parent whenever the user has triggered an item. + * is not null and the left mouse button has been pressed. If the item is + * null, the signal itemEntered() is emitted. + * The method should be invoked by the controller parent whenever the + * user has triggered an item. */ void triggerItem(const QModelIndex& index); + + /** + * Emits the signal tabRequested(), if the file item for the index \a index + * represents a directory and when the middle mouse button has been pressed. + * The method should be invoked by the controller parent. + */ + void requestTab(const QModelIndex& index); /** * Emits the signal itemEntered() if the file item for the index \a index -- cgit v1.3