[vlc-commits] Qt: setResizeMode has been deprecated in Qt5

Ludovic Fauvet git at videolan.org
Fri Jul 19 12:53:24 CEST 2013


vlc/vlc-2.1 | branch: master | Ludovic Fauvet <etix at videolan.org> | Mon Jul 15 10:44:59 2013 +0200| [a58576eaae9496232227db335b3d82ea33020fdf] | committer: Jean-Baptiste Kempf

Qt: setResizeMode has been deprecated in Qt5

(cherry picked from commit 19a8ef0abec71e579306a9529012e49daf5e9e06)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/qt4/components/info_panels.cpp |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/gui/qt4/components/info_panels.cpp b/modules/gui/qt4/components/info_panels.cpp
index c637041..d58bae8 100644
--- a/modules/gui/qt4/components/info_panels.cpp
+++ b/modules/gui/qt4/components/info_panels.cpp
@@ -462,7 +462,11 @@ InfoPanel::InfoPanel( QWidget *parent ) : QWidget( parent )
      InfoTree = new QTreeWidget(this);
      InfoTree->setColumnCount( 1 );
      InfoTree->header()->hide();
+#if QT_VERSION >= 0x050000
+     InfoTree->header()->setSectionResizeMode(QHeaderView::ResizeToContents);
+#else
      InfoTree->header()->setResizeMode(QHeaderView::ResizeToContents);
+#endif
      layout->addWidget(InfoTree, 1, 0 );
 }
 



More information about the vlc-commits mailing list