[vlc-commits] Qt: setMovable 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:35:49 2013 +0200| [1c9516cfe5dee0869591858f2e2dd66681876cae] | committer: Ludovic Fauvet

Qt: setMovable has been deprecated in Qt5

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

 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