Bug 230003

Summary: Zoombar slider adjustments below 100% are hard to archieve [patch]
Product: [Applications] digikam Reporter: Jens Mueller <tschenser>
Component: Preview-ImageAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: 1.2.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 1.2.0
Sentry Crash Report:
Attachments: proposed patch

Description Jens Mueller 2010-03-08 22:14:26 UTC
Version:           1.2.0 (rev.: 1100832) (using 4.4.1 (KDE 4.4.1), Kubuntu packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.31-20-generic

Current zoom slider uses a (pseudo?)linear function to map zoom value to slider position which makes is it nearly impossible to adjust the slider to zoom factors below 100%.
Using a logarithmic function will set the 100% position to the middle of the slider when having the same zoom in/out factor.
Because I do not want to change this without having OK I mark this only here.
Below is a patch to archieve the logarithmic slider adjustment. 

Jens
Comment 1 Jens Mueller 2010-03-08 22:15:39 UTC
Created attachment 41454 [details]
proposed patch
Comment 2 caulier.gilles 2010-03-09 11:16:17 UTC
Jens,

The patch sound fine for me. Anyway press ":1" loup button on the left of zoom slider to switch automatically to 100% value.

Gilles Caulier
Comment 3 Jens Mueller 2010-03-09 17:25:25 UTC
SVN commit 1101210 by jmueller:

do logarithmic zoom value to zoom slider pos adjustment

BUGS: 230003

 M  +2 -1      NEWS  
 M  +9 -8      libs/widgets/common/dzoombar.cpp  
 M  +2 -7      utilities/imageeditor/editor/editorstackview.cpp  


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