Bug 256297

Summary: Plasma: Folder View: Icon displays 'pressed' on non-activating clicks
Product: [Plasma] plasma4 Reporter: Lindsay Roberts <linds.r>
Component: widget-folderviewAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: minor    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Don't scale until activating mouse press
Don't scale until activating mouse press [r2]

Description Lindsay Roberts 2010-11-07 12:20:58 UTC
Version:           unspecified (using Devel) 
OS:                Linux

The folder view employs a 'pressed' effect to show when an icon is activated. This works as expected when global settings are set to single click: the icon is scaled to 90% on press, and rescales back up on activate.

Under double click the icon scales on the first click, and weirdly stays scaled until the mouse leaves the hover area.

Further, the same issue applies when modifier keys are used to change selection.

Reproducible: Always

Steps to Reproduce:
Set mouse to double click in global preferences. Single click an icon in a folder view. Alternately: use ctrl- or shift- click on an icon.

Actual Results:  
Icon scales to 90% and stays that way until mouse leaves the icon boundary completely.

Expected Results:  
Icon should only scale on the press of the second mouse click.
Comment 1 Lindsay Roberts 2010-11-07 12:31:47 UTC
Created attachment 53218 [details]
Don't scale until activating mouse press

This patch doesn't scale the icon when a) shift or ctrl are held, and b) on the first click when double click is enabled.
Comment 2 Lindsay Roberts 2010-11-07 12:42:48 UTC
Created attachment 53219 [details]
Don't scale until activating mouse press [r2]

Tiny update: match indentation
Comment 3 Aaron J. Seigo 2010-11-12 23:16:46 UTC
SVN commit 1196275 by aseigo:

fix clicked painting when set to double click, patch by Lindsay Roberts
BUG:256297


 M  +7 -0      iconview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1196275