diff options
| author | Peter Penz <[email protected]> | 2009-02-03 18:35:19 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-02-03 18:35:19 +0000 |
| commit | 0217168998bb6b9c327cd1a803dfe19a10543db7 (patch) | |
| tree | e204f4d65f74b4cf21dbe3cd69ce88e0d0e98e17 /src | |
| parent | 7af662dc12e8c4544c924e22fe0dc24df8efac2c (diff) | |
Don't differ between single-click and double-click in the column view, stay consistent with the behavior like the Places Panel or Folders Panel.
svn path=/trunk/KDE/kdebase/apps/; revision=920753
Diffstat (limited to 'src')
| -rw-r--r-- | src/dolphincolumnwidget.cpp | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/src/dolphincolumnwidget.cpp b/src/dolphincolumnwidget.cpp index af6246809..4a6527c1b 100644 --- a/src/dolphincolumnwidget.cpp +++ b/src/dolphincolumnwidget.cpp @@ -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(); |
