┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphiniconsview.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-11-23 12:28:10 +0000
committerPeter Penz <[email protected]>2008-11-23 12:28:10 +0000
commitdcbf1a11783d47e7e4fa30d488ac93a8bc547e71 (patch)
treed993a7b29885dec9e6550ba0b9b5ce95eadaa3ed /src/dolphiniconsview.cpp
parentd5c0a60505fd5f20a4069d8fe3bcf4ae0b0b3594 (diff)
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
Diffstat (limited to 'src/dolphiniconsview.cpp')
-rw-r--r--src/dolphiniconsview.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp
index 0dd7dd719..52be40b02 100644
--- a/src/dolphiniconsview.cpp
+++ b/src/dolphiniconsview.cpp
@@ -62,10 +62,8 @@ DolphinIconsView::DolphinIconsView(QWidget* parent, DolphinController* controlle
setMouseTracking(true);
- // TODO: Connecting to the signal 'activated()' is not possible, as kstyle
- // does not forward the single vs. doubleclick to it yet (KDE 4.1?). Hence it is
- // necessary connecting the signal 'singleClick()' or 'doubleClick' and to handle the
- // RETURN-key in keyPressEvent().
+ connect(this, SIGNAL(clicked(const QModelIndex&)),
+ controller, SLOT(requestTab(const QModelIndex&)));
if (KGlobalSettings::singleClick()) {
connect(this, SIGNAL(clicked(const QModelIndex&)),
controller, SLOT(triggerItem(const QModelIndex&)));