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

git version control git at videolan.org
Tue Oct 20 18:14:50 CEST 2009


vlc | branch: 1.0-bugfix | Marian Ďurkovič <md at bts.sk> | Mon Sep 21 20:37:57 2009 +0200| [5e29b2dc5fb1565c451c2c75f1921b3f74d31fdd] | committer: Marian Ďurkovič 

Workaround braindead QT implementation of ResizeToContents

It's so slow that it's not usable on large datasets.
(cherry picked from commit 677a311c80c57b883402d0b99e81fe178dfd5f5a)

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

 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 b3ede5a..98bd707 100644
--- a/modules/gui/qt4/components/info_panels.cpp
+++ b/modules/gui/qt4/components/info_panels.cpp
@@ -422,9 +422,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