Bug 240048 - Open images with double instead of single click
Summary: Open images with double instead of single click
Status: RESOLVED WORKSFORME
Alias: None
Product: digikam
Classification: Applications
Component: Usability-Mouse (show other bugs)
Version: 1.3.0
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-30 08:26 UTC by Simon
Modified: 2017-08-15 13:55 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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