┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphiniconsview.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-06-27 17:02:55 +0000
committerPeter Penz <[email protected]>2007-06-27 17:02:55 +0000
commit3e5f57127d48826f2a75be645b92a9f35f674b34 (patch)
treec2cc36ffbf2781860fc52898c19160ab80bf9d47 /src/dolphiniconsview.cpp
parentb5f2d46ef909a32650ddaacd2016ab46d3bee8b4 (diff)
connecting the the activated() signal does not work when using the double click setting within KDE
svn path=/trunk/KDE/kdebase/apps/; revision=680989
Diffstat (limited to 'src/dolphiniconsview.cpp')
-rw-r--r--src/dolphiniconsview.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp
index ddfd68026..bac7b5e4b 100644
--- a/src/dolphiniconsview.cpp
+++ b/src/dolphiniconsview.cpp
@@ -44,8 +44,13 @@ DolphinIconsView::DolphinIconsView(QWidget* parent, DolphinController* controlle
setMouseTracking(true);
viewport()->setAttribute(Qt::WA_Hover);
- connect(this, SIGNAL(activated(const QModelIndex&)),
- controller, SLOT(triggerItem(const QModelIndex&)));
+ if (KGlobalSettings::singleClick()) {
+ connect(this, SIGNAL(clicked(const QModelIndex&)),
+ controller, SLOT(triggerItem(const QModelIndex&)));
+ } else {
+ connect(this, SIGNAL(doubleClicked(const QModelIndex&)),
+ controller, SLOT(triggerItem(const QModelIndex&)));
+ }
connect(this, SIGNAL(entered(const QModelIndex&)),
controller, SLOT(emitItemEntered(const QModelIndex&)));
connect(this, SIGNAL(viewportEntered()),