mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
Properly resize columns of child document table widget
This commit is contained in:
parent
4fd4310ea7
commit
b8546139c8
@ -893,9 +893,13 @@ GuiDocument::GuiDocument(GuiView & lv)
|
|||||||
masterChildModule->childrenTW->setColumnCount(2);
|
masterChildModule->childrenTW->setColumnCount(2);
|
||||||
masterChildModule->childrenTW->headerItem()->setText(0, qt_("Child Document"));
|
masterChildModule->childrenTW->headerItem()->setText(0, qt_("Child Document"));
|
||||||
masterChildModule->childrenTW->headerItem()->setText(1, qt_("Include to Output"));
|
masterChildModule->childrenTW->headerItem()->setText(1, qt_("Include to Output"));
|
||||||
masterChildModule->childrenTW->resizeColumnToContents(1);
|
#if (QT_VERSION > 0x050000)
|
||||||
masterChildModule->childrenTW->resizeColumnToContents(2);
|
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
|
// Formats
|
||||||
outputModule = new UiWidget<Ui::OutputUi>(this);
|
outputModule = new UiWidget<Ui::OutputUi>(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user