[vlc-commits] Qt: setMovable 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:35:49 2013 +0200| [a7618958dc3521435c9b6a63dc7e999ac571f454] | committer: Jean-Baptiste Kempf
Qt: setMovable has been deprecated in Qt5
(cherry picked from commit 1c9516cfe5dee0869591858f2e2dd66681876cae)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=a7618958dc3521435c9b6a63dc7e999ac571f454
---
modules/gui/qt4/dialogs/plugins.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/gui/qt4/dialogs/plugins.cpp b/modules/gui/qt4/dialogs/plugins.cpp
index 3a0396a..b29497e 100644
--- a/modules/gui/qt4/dialogs/plugins.cpp
+++ b/modules/gui/qt4/dialogs/plugins.cpp
@@ -95,7 +95,11 @@ PluginTab::PluginTab( intf_thread_t *p_intf_ )
layout->addWidget( treePlugins, 0, 0, 1, -1 );
/* Users cannot move the columns around but we need to sort */
+#if QT_VERSION >= 0x050000
+ treePlugins->header()->setSectionsMovable( false );
+#else
treePlugins->header()->setMovable( false );
+#endif
treePlugins->header()->setSortIndicatorShown( true );
// treePlugins->header()->setResizeMode( QHeaderView::ResizeToContents );
treePlugins->setAlternatingRowColors( true );
More information about the vlc-commits
mailing list