[vlc-commits] Qt: setClickable 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:47:21 2013 +0200| [0927e01da46113cc75e4ea371264e6462b964772] | committer: Jean-Baptiste Kempf

Qt: setClickable has been deprecated in Qt5

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

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

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

diff --git a/modules/gui/qt4/components/playlist/views.cpp b/modules/gui/qt4/components/playlist/views.cpp
index ce0ba46..f724a93 100644
--- a/modules/gui/qt4/components/playlist/views.cpp
+++ b/modules/gui/qt4/components/playlist/views.cpp
@@ -425,7 +425,11 @@ PlTreeView::PlTreeView( PLModel *, QWidget *parent ) : QTreeView( parent )
     viewport()->setAttribute( Qt::WA_Hover );
     header()->setSortIndicator( -1 , Qt::AscendingOrder );
     header()->setSortIndicatorShown( true );
+#if QT_VERSION >= 0x050000
+    header()->setSectionsClickable( true );
+#else
     header()->setClickable( true );
+#endif
     header()->setContextMenuPolicy( Qt::CustomContextMenu );
 
     setSelectionBehavior( QAbstractItemView::SelectRows );



More information about the vlc-commits mailing list