]> git.lyx.org Git - lyx.git/commitdiff
Use setSectionResizeMode from qt_helpers
authorVincent van Ravesteijn <vfr@lyx.org>
Fri, 29 Mar 2013 17:03:10 +0000 (18:03 +0100)
committerVincent van Ravesteijn <vfr@lyx.org>
Sat, 30 Mar 2013 11:41:08 +0000 (12:41 +0100)
This is needed to compile with Qt5.

src/frontends/qt4/GuiDocument.cpp

index 84a8ccf8fec3f842b90148d076888cf35ea215ba..57aef0f3d9bd49da31aba2e04129a6ad148a54a5 100644 (file)
@@ -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<string, string> const & packages = BufferParams::auto_packages();
        mathsModule->packagesTW->setRowCount(packages.size());
        int i = 0;