connecting the the activated() signal does not work when using the double click setting within KDE

svn path=/trunk/KDE/kdebase/apps/; revision=680989
This commit is contained in:
Peter Penz 2007-06-27 17:02:55 +00:00
parent b5f2d46ef9
commit 3e5f57127d

View file

@ -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()),