vlc | branch: master | Ludovic Fauvet <[email protected]> | Mon Jul 15 10:47:21 
2013 +0200| [a1cd238d746ca072650e3bb000018fcd68814a49] | committer: Ludovic 
Fauvet

Qt: setClickable has been deprecated in Qt5

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

 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 );

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to