Bug 240048

Summary: Open images with double instead of single click
Product: [Applications] digikam Reporter: Simon <simon.eu>
Component: Usability-MouseAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: caulier.gilles, friiduh
Priority: NOR    
Version: 1.3.0   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In: 4.0.0
Sentry Crash Report:

Description Simon 2010-05-30 08:26:12 UTC
Version:           1.3.0 (using KDE 4.4.3) 
OS:                Linux

I don't know the reason for it, I assume it's KDE. Anyway, digikam opens all images with a single click although the KDE settings are on «open with double click».

Reproducible: Always




OS: Linux (x86_64) release 2.6.34-0.slh.4-sidux-amd64
Compiler: cc
Comment 1 caulier.gilles 2010-05-30 08:33:24 UTC
Go to KDE control panel, and change this behavior at the right place.
digiKam will follow this settings.

Gilles Caulier
Comment 2 Simon 2010-05-30 08:42:41 UTC
System settings > Keyboard and Mouse > Mouse > Double click for opening files/directories is activated.
Comment 3 Marcel Wiesweg 2010-06-04 21:55:25 UTC
Just tested, works fine for me, cannot reproduce.


Note:
1) You need to restart digikam for the changed setting to take effect in the icon view, at least with standard KDE style.
2) It is code in Qt's qabstractitemview.cpp that handles single/double click settings for us in the icon view:        
1783:
if (style()->styleHint(QStyle::SH_ItemView_ActivateItemOnSingleClick, 0, this))
            emit activated(index);
That means your style is responsible to propagate this setting.
I dont know which component failing for you. Can be an upstream or downstream problem. In any case, there is not a single line of code in digikam for this.
Comment 4 Simon 2010-06-13 17:59:46 UTC
Okay, thank you. So I'll just have to get used to it unless I find a way to change the QStyle behaviour.
Comment 5 Simon 2010-06-15 18:47:21 UTC
I can't get used to it.

I've asked in the #qt channel:
* The double click behaviour of Qt styles cannot be changed
* It's strange that digikam is the _only_ application that uses a single click. Firefox, dolphin, kdenlive, ktorrent, all others use double click.
* Running digikam with -style=plastique or _any_ other style does not change the behaviour. Always single clicks.
* Also switching back to single click in the kde control center and then to double click again does not solve the problem. (With restarting digikam between.)

So, as digikam is the only application that uses single clicks, I wonder whether this is really an upstream issue.
Comment 6 Fri13 2010-06-15 21:33:51 UTC
I can not reproduce this either. I dont like single click systems myself. Especially because of digiKam where I need to manage multiple photos at once and select them. Even that I use so much Ctrl+click, I have learned it too well that first click selects first file and after that I need Ctrl.

I have 1.3 version and I tested this by changing the behavior between the digiKam was closed for making sure. (Quit the digiKam -> change behavior -> re-start digiKam)
Comment 7 caulier.gilles 2011-12-14 09:39:09 UTC
Simon, 

It still valid using digiKam 2.x serie ?

Gilles Caulier
Comment 8 Simon 2012-06-13 15:49:37 UTC
Nope – at least not on my laptop. Works the way it should here now.
Comment 9 caulier.gilles 2013-11-26 16:46:11 UTC
I just tested with KDE 4.10.5 with digiKam 4.0.0-beta1, and opening image from icon-view with one or double mouse click respect KDE Mouse control panel settings. 

digiKam just need to be restarted when you change this behavior in KDE control panel...

Gilles Caulier