From ed4bebf698ee08a0077124df72f8d2c53c6c3cc0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20K=C3=BCmmel?= Date: Tue, 15 Feb 2011 09:37:19 +0000 Subject: [PATCH] suppress abbreviated descriptions in document dialog git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37674 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiDocument.cpp | 3 +++ src/frontends/qt4/PanelStack.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index 272a72b4be..58e1ea5411 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -1045,6 +1045,7 @@ GuiDocument::GuiDocument(GuiView & lv) numberingModule->tocTW->headerItem()->setText(0, qt_("Example")); numberingModule->tocTW->headerItem()->setText(1, qt_("Numbered")); numberingModule->tocTW->headerItem()->setText(2, qt_("Appears in TOC")); + numberingModule->tocTW->header()->setResizeMode(QHeaderView::ResizeToContents); // biblio @@ -1194,6 +1195,8 @@ GuiDocument::GuiDocument(GuiView & lv) // Modules modulesModule = new UiWidget; modulesModule->availableLV->header()->setVisible(false); + modulesModule->availableLV->header()->setResizeMode(QHeaderView::ResizeToContents); + modulesModule->availableLV->header()->setStretchLastSection(false); selectionManager = new ModuleSelectionManager(modulesModule->availableLV, modulesModule->selectedLV, diff --git a/src/frontends/qt4/PanelStack.cpp b/src/frontends/qt4/PanelStack.cpp index 343b36ecb0..60793c31f8 100644 --- a/src/frontends/qt4/PanelStack.cpp +++ b/src/frontends/qt4/PanelStack.cpp @@ -39,6 +39,9 @@ PanelStack::PanelStack(QWidget * parent) list_->setRootIsDecorated(false); list_->setColumnCount(1); list_->header()->hide(); + list_->header()->setResizeMode(QHeaderView::ResizeToContents); + list_->header()->setStretchLastSection(false); + list_->setMinimumSize(list_->viewport()->size()); connect(list_, SIGNAL(currentItemChanged(QTreeWidgetItem*, QTreeWidgetItem*)), this, SLOT(switchPanel(QTreeWidgetItem *, QTreeWidgetItem*))); -- 2.39.2