[Digikam-devel] [Bug 104031] Selected item should stay centered in thumbnail bar

Tom Albers tomalbers at kde.nl
Mon Aug 22 20:22:36 BST 2005


------- 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=104031         
tomalbers kde nl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From tomalbers kde nl  2005-08-22 21:22 -------
SVN commit 452180 by toma:

Keep the thumbnail completely visible and the next one as well. I heard from the bugreporter that he is extremely happy and will buy a pizza for me.
BUG: 104031


 M  +5 -1      thumbbar.cpp  


--- trunk/extragear/graphics/digikam/libs/thumbbar/thumbbar.cpp #452179:452180
 @ -178,7 +178,11  @
     d->currItem = item;
     if (d->currItem)
     {
-        ensureVisible(0,item->m_pos);
+        // We want the complete thumb visible and the next one.
+        // find the middle of the image and give a margin of 1,5 image
+        // When changed, watch regression for bug 104031
+        ensureVisible(0, (int)(item->m_pos+d->margin+d->tileSize*.5),
+                      0, (int)(d->tileSize*1.5+3*d->margin));
         item->repaint();
         emit signalURLSelected(item->url());
     }



More information about the Digikam-devel mailing list