From: Vincent van Ravesteijn Date: Fri, 29 Mar 2013 17:03:10 +0000 (+0100) Subject: Use setSectionResizeMode from qt_helpers X-Git-Tag: 2.1.0beta1~446 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ea7d36912b9e670c9b29815edb920195efe05316;p=lyx.git Use setSectionResizeMode from qt_helpers This is needed to compile with Qt5. --- 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;