[Digikam-devel] [Bug 145237] small wishes for the light-table

Marcel Wiesweg marcel.wiesweg at gmx.de
Sat May 12 16:34:07 BST 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=145237         




------- Additional Comments From marcel.wiesweg gmx de  2007-05-12 17:34 -------
SVN commit 663883 by mwiesweg:

Adapt the line step of the scroll bars to the zoom factor.
For low zoom factors, scrolling with the mouse wheel is still precise,
for higher zoom rates the steps get bigger.
This means the approx. the same amount of mouse wheel scrolling is required
for to scroll the same span in the original picture, regardless of zoom rate.

For the overall relative speed, I added a factor of 2 which feels good, please report
if scrolling steps are too big or too small.

(bug 145237, #4)

CCBUG: 145237


 M  +6 -0      previewwidget.cpp  


--- trunk/extragear/graphics/digikam/libs/widgets/common/previewwidget.cpp #663882:663883
 @ -219,6 +219,12  @
 
     updateContentsSize();
 
+    int step = QMAX(2, 2*lround(d->zoom));
+    horizontalScrollBar()->setLineStep( step );
+    horizontalScrollBar()->setPageStep( step * 10 );
+    verticalScrollBar()->setLineStep( step );
+    verticalScrollBar()->setPageStep( step * 10 );
+
     viewport()->setUpdatesEnabled(false);
     center((int)((cpx * d->tileSize ) / floor(d->tileSize / d->zoom)), 
            (int)((cpy * d->tileSize ) / floor(d->tileSize / d->zoom)));



More information about the Digikam-devel mailing list