Bug 230003 - Zoombar slider adjustments below 100% are hard to archieve [patch]
Summary: Zoombar slider adjustments below 100% are hard to archieve [patch]
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Preview-Image (show other bugs)
Version: 1.2.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-08 22:14 UTC by Jens Mueller
Modified: 2012-06-27 10:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 1.2.0
Sentry Crash Report:


Attachments
proposed patch (1.98 KB, patch)
2010-03-08 22:15 UTC, Jens Mueller
Details

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