Commit 583aa30a authored by Pino Toscano's avatar Pino Toscano Committed by Philipp Erhardt
Browse files

Port to non-deprecated methods of QHeaderView

They were just renamed, with the old names left for compatibility.
parent 25af37dc
......@@ -20,8 +20,13 @@ Toc::Toc(Viewer *v, QWidget *parent) :
QHeaderView *h = header();
h->setStretchLastSection(false);
#if QT_VERSION >= 0x050000
h->setSectionResizeMode(0, QHeaderView::Stretch);
h->setSectionResizeMode(1, QHeaderView::ResizeToContents);
#else
h->setResizeMode(0, QHeaderView::Stretch);
h->setResizeMode(1, QHeaderView::ResizeToContents);
#endif
QStringList list = QStringList() << "Contents" << QString();
setHeaderLabels(list);
......
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