]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Don't differ between single-click and double-click in the column view, stay consisten...
authorPeter Penz <peter.penz19@gmail.com>
Tue, 3 Feb 2009 18:35:19 +0000 (18:35 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Tue, 3 Feb 2009 18:35:19 +0000 (18:35 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=920753

src/dolphincolumnwidget.cpp

index af6246809d74c412e6e94395761dc0f60fee044d..4a6527c1bed6ea3b896e32a7b5d87193504082e7 100644 (file)
@@ -495,13 +495,8 @@ void DolphinColumnWidget::activate()
 
     connect(this, SIGNAL(clicked(const QModelIndex&)),
             m_view->m_controller, SLOT(requestTab(const QModelIndex&)));
-    if (KGlobalSettings::singleClick()) {
-        connect(this, SIGNAL(clicked(const QModelIndex&)),
-                m_view->m_controller, SLOT(triggerItem(const QModelIndex&)));
-    } else {
-        connect(this, SIGNAL(doubleClicked(const QModelIndex&)),
-                m_view->m_controller, SLOT(triggerItem(const QModelIndex&)));
-    }
+    connect(this, SIGNAL(clicked(const QModelIndex&)),
+            m_view->m_controller, SLOT(triggerItem(const QModelIndex&)));
 
     if (selectionModel() && selectionModel()->currentIndex().isValid())
         selectionModel()->setCurrentIndex(selectionModel()->currentIndex(), QItemSelectionModel::SelectCurrent);
@@ -513,16 +508,8 @@ void DolphinColumnWidget::deactivate()
 {
     clearFocus();
 
-    // 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'.
-    if (KGlobalSettings::singleClick()) {
-        disconnect(this, SIGNAL(clicked(const QModelIndex&)),
-                   m_view->m_controller, SLOT(triggerItem(const QModelIndex&)));
-    } else {
-        disconnect(this, SIGNAL(doubleClicked(const QModelIndex&)),
-                   m_view->m_controller, SLOT(triggerItem(const QModelIndex&)));
-    }
+    disconnect(this, SIGNAL(clicked(const QModelIndex&)),
+               m_view->m_controller, SLOT(triggerItem(const QModelIndex&)));
 
     const QModelIndex current = selectionModel()->currentIndex();
     selectionModel()->clear();