mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
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:
parent
b5f2d46ef9
commit
3e5f57127d
1 changed files with 7 additions and 2 deletions
|
@ -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()),
|
||||
|
|
Loading…
Reference in a new issue