From ea7d36912b9e670c9b29815edb920195efe05316 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Fri, 29 Mar 2013 18:03:10 +0100 Subject: [PATCH] Use setSectionResizeMode from qt_helpers This is needed to compile with Qt5. --- src/frontends/qt4/GuiDocument.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index 84a8ccf8fe..57aef0f3d9 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -1154,7 +1154,7 @@ GuiDocument::GuiDocument(GuiView & lv) headers << qt_("Package") << qt_("Load automatically") << qt_("Load always") << qt_("Do not load"); mathsModule->packagesTW->setHorizontalHeaderLabels(headers); - mathsModule->packagesTW->horizontalHeader()->setResizeMode(QHeaderView::Stretch); + setSectionResizeMode(mathsModule->packagesTW->horizontalHeader(), QHeaderView::Stretch); map const & packages = BufferParams::auto_packages(); mathsModule->packagesTW->setRowCount(packages.size()); int i = 0;