[vlc-devel] commit: Workaround braindead QT implementation of ResizeToContents ( Marian Ďurkovič )

git version control git at videolan.org
Mon Sep 21 20:38:18 CEST 2009


vlc | branch: master | Marian Ďurkovič <md at bts.sk> | Mon Sep 21 20:37:57 2009 +0200| [677a311c80c57b883402d0b99e81fe178dfd5f5a] | committer: Marian Ďurkovič 

Workaround braindead QT implementation of ResizeToContents

It's so slow that it's not usable on large datasets.

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

 modules/gui/qt4/components/info_panels.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/components/info_panels.cpp b/modules/gui/qt4/components/info_panels.cpp
index ab693ba..a4f3364 100644
--- a/modules/gui/qt4/components/info_panels.cpp
+++ b/modules/gui/qt4/components/info_panels.cpp
@@ -410,9 +410,10 @@ InfoPanel::InfoPanel( QWidget *parent,
 
      InfoTree = new QTreeWidget(this);
      InfoTree->setColumnCount( 1 );
+     InfoTree->setColumnWidth( 0, 20000 );
      InfoTree->header()->hide();
-     InfoTree->header()->setStretchLastSection(false);
-     InfoTree->header()->setResizeMode(QHeaderView::ResizeToContents);
+//     InfoTree->header()->setStretchLastSection(false);
+//     InfoTree->header()->setResizeMode(QHeaderView::ResizeToContents);
      layout->addWidget(InfoTree, 1, 0 );
 }
 




More information about the vlc-devel mailing list