Commit a1cd238d authored by Ludovic Fauvet's avatar Ludovic Fauvet

Qt: setClickable has been deprecated in Qt5

parent 19a8ef0a
...@@ -425,7 +425,11 @@ PlTreeView::PlTreeView( PLModel *, QWidget *parent ) : QTreeView( parent ) ...@@ -425,7 +425,11 @@ PlTreeView::PlTreeView( PLModel *, QWidget *parent ) : QTreeView( parent )
viewport()->setAttribute( Qt::WA_Hover ); viewport()->setAttribute( Qt::WA_Hover );
header()->setSortIndicator( -1 , Qt::AscendingOrder ); header()->setSortIndicator( -1 , Qt::AscendingOrder );
header()->setSortIndicatorShown( true ); header()->setSortIndicatorShown( true );
#if QT_VERSION >= 0x050000
header()->setSectionsClickable( true );
#else
header()->setClickable( true ); header()->setClickable( true );
#endif
header()->setContextMenuPolicy( Qt::CustomContextMenu ); header()->setContextMenuPolicy( Qt::CustomContextMenu );
setSelectionBehavior( QAbstractItemView::SelectRows ); setSelectionBehavior( QAbstractItemView::SelectRows );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment