[Digikam-devel] Preview behaviour

Arnd Baecker arnd.baecker at web.de
Wed Apr 16 19:53:49 BST 2008


Hi,

there are a couple of small issues, which nag me for a while:

a) CTRL+ALT+0 should behave as a toggle between
   fit-to-window and 100% zoom
   (also for the light-table and image-editor)
b) the slider should "snap" to 100% when one is in the range
   95% < x < 105%
c) CTRL+ALT+0 should be centered
d) moving the slider, the view should stay centered

e) when going from one image to the next in preview mode,
   it should stay at the same zoom level and same position
   (This is only possible if neither image dimensions,
    nor orientation are changed.
   Otherwise it should stay at the same zoom-level,
   but center the view)

The attached patch implements a), b) c) and d).
Testing and comments are welcome.
In particular, I removed a bit of (I think unnecessary) code
at the beginning of PreviewWidget::setZoomFactor(double zoom).

About e): When going to the next image,
  void DigikamView::slotNextItem(void)
is called.
However, I don't see where (or why) the preview gets
set to fit-to-window.
Any pointers/explanations are welcome!

Best, Arnd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: preview_v5.patch
Type: text/x-diff
Size: 6243 bytes
Desc: 
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20080416/8e954d2b/attachment.patch>


More information about the Digikam-devel mailing list