[Digikam-devel] [Bug 141238] Album tree lacks horizontal scroll bar

Arnd Baecker arnd.baecker at web.de
Wed Dec 5 18:20:19 GMT 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=141238         




------- Additional Comments From arnd.baecker web de  2007-12-05 19:20 -------
Created an attachment (id=22365)
 --> (http://bugs.kde.org/attachment.cgi?id=22365&action=view)
failed attempt to solve the issue ...


The following summarizes an attempt discussed with Gilles on the IRC:

In digikam/folderview.cpp album tree view re-implements Qt class.
Trying to setVScrollBarMode(QScrollView::Always) 
and setHScrollBarMode(QScrollView::Always)
does not work: Then the problem is that the horizontal one appears, 
but one cannot scroll ...
The default is QScrollView::Auto, so it should work.
Gilles suspected that the content size of viewport is not 
properly defined and because of this the scroolbar do not appear:

"""AlbumFolderViewItem class does not set dimenssion somewhere and 
this class is a child of FolderItem and this one re-implemente 
paintCell() where the dimension must re-computed.
Qt doc : http://doc.trolltech.com/3.3/qlistviewitem.html#paintCell
"If you reimplement this function, you should also reimplement width()."
"""

The attached patch provides a reimplementation of width(), currently
just returning 600, for testing purposes.
This value should be large enough to trigger the automatic use of a 
horiztonal scroll-bar.

However, it does not work.

So that's currently the end of the story, ideas are welcome!



More information about the Digikam-devel mailing list