[vlc-commits] Qt: setResizeMode has been deprecated in Qt5
Ludovic Fauvet
git at videolan.org
Mon Jul 15 16:56:47 CEST 2013
vlc | branch: master | Ludovic Fauvet <etix at videolan.org> | Mon Jul 15 10:44:59 2013 +0200| [19a8ef0abec71e579306a9529012e49daf5e9e06] | committer: Ludovic Fauvet
Qt: setResizeMode has been deprecated in Qt5
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=19a8ef0abec71e579306a9529012e49daf5e9e06
---
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 6a02e51..f4104f0 100644
--- a/modules/gui/qt4/components/info_panels.cpp
+++ b/modules/gui/qt4/components/info_panels.cpp
@@ -455,7 +455,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