]> cloud.milkyroute.net Git - dolphin.git/commit
The layout algorithm of QListView in Qt4.5 also respects the style-hint QStyle::SH_Sc...
authorPeter Penz <peter.penz19@gmail.com>
Sat, 7 Feb 2009 18:56:28 +0000 (18:56 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Sat, 7 Feb 2009 18:56:28 +0000 (18:56 +0000)
commit95607a31cd72680eabe0c33c56e1922047745b64
tree5af119e4e9d088608ca9c0378572d92124f8cd8b
parenteb9dd90419cc00ed667512ba94d63a4f16e9c675
The layout algorithm of QListView in Qt4.5 also respects the style-hint QStyle::SH_ScrollView_FrameOnlyAroundContents. To assure that Dolphin uses the maximum available width for the size hint of the items, the style-hint must be included too for Qt 4.5.

I tested this fix also with Qt4.4 and it seems that the style-hint returns always 0 in this case -> this patch seems to be backward compatible...

svn path=/trunk/KDE/kdebase/apps/; revision=922900
src/dolphiniconsview.cpp