commit 6617d492e888c3dc48ffcfd1f61aa13ca74f638b
Author: Juergen Spitzmueller <[email protected]>
Date:   Sat Feb 8 09:27:21 2020 +0100

    Properly resize columns of child document table widget
---
 src/frontends/qt4/GuiDocument.cpp |   10 ++++++++--
 status.23x                        |    2 ++
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/frontends/qt4/GuiDocument.cpp 
b/src/frontends/qt4/GuiDocument.cpp
index 8fe7dda..122a490 100644
--- a/src/frontends/qt4/GuiDocument.cpp
+++ b/src/frontends/qt4/GuiDocument.cpp
@@ -874,8 +874,14 @@ GuiDocument::GuiDocument(GuiView & lv)
        masterChildModule->childrenTW->setColumnCount(2);
        masterChildModule->childrenTW->headerItem()->setText(0, qt_("Child 
Document"));
        masterChildModule->childrenTW->headerItem()->setText(1, qt_("Include to 
Output"));
-       masterChildModule->childrenTW->resizeColumnToContents(1);
-       masterChildModule->childrenTW->resizeColumnToContents(2);
+
+#if (QT_VERSION > 0x050000)
+       masterChildModule->childrenTW->header()->setSectionResizeMode(0, 
QHeaderView::ResizeToContents);
+       masterChildModule->childrenTW->header()->setSectionResizeMode(1, 
QHeaderView::ResizeToContents);
+#else
+       masterChildModule->childrenTW->header()->setResizeMode(0, 
QHeaderView::ResizeToContents);
+       masterChildModule->childrenTW->header()->setResizeMode(1, 
QHeaderView::ResizeToContents);
+#endif
 
 
        // Formats
diff --git a/status.23x b/status.23x
index e7e08f9..f93844e 100644
--- a/status.23x
+++ b/status.23x
@@ -63,6 +63,8 @@ What's new
 
 - Consider shorthand in biblatex cite display (bug 11696).
 
+- Properly resize columns of child document table widget.
+
 
 * INTERNALS
 
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to