[vlc-commits] Qt, use correctly sized mediainfo trees

Jean-Baptiste Kempf git at videolan.org
Thu Apr 21 15:33:56 CEST 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Apr 21 15:33:28 2011 +0200| [ef77c31312815774112f09cb9b79c5f5e5fe5fbf] | committer: Jean-Baptiste Kempf

Qt, use correctly sized mediainfo trees

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

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

diff --git a/modules/gui/qt4/components/info_panels.cpp b/modules/gui/qt4/components/info_panels.cpp
index 506e653..4ef72e4 100644
--- a/modules/gui/qt4/components/info_panels.cpp
+++ b/modules/gui/qt4/components/info_panels.cpp
@@ -335,11 +335,6 @@ ExtraMetaPanel::ExtraMetaPanel( QWidget *parent,
      extraMetaTree->setColumnCount( 2 );
      extraMetaTree->resizeColumnToContents( 0 );
      extraMetaTree->header()->hide();
-/*     QStringList headerList = ( QStringList() << qtr( "Type" )
- *                                             << qtr( "Value" ) );
- * Useless, add this header if you think it would help the user          **
- */
-
      layout->addWidget( extraMetaTree, 1, 0 );
 }
 
@@ -412,10 +407,8 @@ 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()->setResizeMode(QHeaderView::ResizeToContents);
      layout->addWidget(InfoTree, 1, 0 );
 }
 
@@ -450,7 +443,7 @@ void InfoPanel::update( input_item_t *p_item)
 
             current_item->addChild(child_item);
         }
-         InfoTree->setItemExpanded( current_item, true);
+        InfoTree->setItemExpanded( current_item, true);
     }
 }
 



More information about the vlc-commits mailing list