ProgressView quirks

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33016 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2010-01-13 21:45:44 +00:00
parent c37bef4127
commit 5218e4ace0

View File

@ -77,7 +77,7 @@ GuiProgressView::GuiProgressView(GuiView & parent, Qt::DockWidgetArea area,
QTreeWidgetItem * item = 0;
widget_->debugMessagesTW->setColumnCount(2);
widget_->debugMessagesTW->headerItem()->setText(0, qt_("Debug Level"));
widget_->debugMessagesTW->headerItem()->setText(1, qt_("Display"));
widget_->debugMessagesTW->headerItem()->setText(1, qt_("Set"));
for (int i = 1 ; i < level_count; i++) {
item = new QTreeWidgetItem(widget_->debugMessagesTW);
Debug::Type const level = Debug::value(i);
@ -86,6 +86,7 @@ GuiProgressView::GuiProgressView(GuiView & parent, Qt::DockWidgetArea area,
item->setText(1, qt_("No"));
}
widget_->debugMessagesTW->resizeColumnToContents(0);
widget_->debugMessagesTW->resizeColumnToContents(1);
connect(widget_->debugMessagesTW,
SIGNAL(itemActivated(QTreeWidgetItem *, int)),
this, SLOT(debugMessageActivated(QTreeWidgetItem *, int)));