Commit 19a8ef0a authored by Ludovic Fauvet's avatar Ludovic Fauvet

Qt: setResizeMode has been deprecated in Qt5

parent 1beb0074
...@@ -455,7 +455,11 @@ InfoPanel::InfoPanel( QWidget *parent ) : QWidget( parent ) ...@@ -455,7 +455,11 @@ InfoPanel::InfoPanel( QWidget *parent ) : QWidget( parent )
InfoTree = new QTreeWidget(this); InfoTree = new QTreeWidget(this);
InfoTree->setColumnCount( 1 ); InfoTree->setColumnCount( 1 );
InfoTree->header()->hide(); InfoTree->header()->hide();
#if QT_VERSION >= 0x050000
InfoTree->header()->setSectionResizeMode(QHeaderView::ResizeToContents);
#else
InfoTree->header()->setResizeMode(QHeaderView::ResizeToContents); InfoTree->header()->setResizeMode(QHeaderView::ResizeToContents);
#endif
layout->addWidget(InfoTree, 1, 0 ); layout->addWidget(InfoTree, 1, 0 );
} }
......
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