[vlc-devel] commit: Qt: iconView, use uniformItemSizes() (Jean-Baptiste Kempf )

git version control git at videolan.org
Tue Jan 26 12:18:59 CET 2010


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Jan 26 12:18:00 2010 +0100| [ec86ab4e1f8542146946a20fd02ccd30aac9115c] | committer: Jean-Baptiste Kempf 

Qt: iconView, use uniformItemSizes()

>From Qt's doc:
"This enables the view to do some optimizations for performance purposes."

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ec86ab4e1f8542146946a20fd02ccd30aac9115c
---

 modules/gui/qt4/components/playlist/icon_view.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/icon_view.cpp b/modules/gui/qt4/components/playlist/icon_view.cpp
index b3101e9..49ce2b1 100644
--- a/modules/gui/qt4/components/playlist/icon_view.cpp
+++ b/modules/gui/qt4/components/playlist/icon_view.cpp
@@ -98,6 +98,7 @@ PlIconView::PlIconView( PLModel *model, QWidget *parent ) : QListView( parent )
     setMovement( QListView::Static );
     setResizeMode( QListView::Adjust );
     setGridSize( QSize( 100, 100 ) );
+    setUniformItemSizes( true );
     setSpacing( ITEMS_SPACING );
     setWrapping( true );
 




More information about the vlc-devel mailing list