ugras baran: correct switching between different TOC types

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15837 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Edwin Leuven 2006-11-10 13:13:10 +00:00
parent c6e22bc6bf
commit 7a3f9c65f7

View File

@ -104,6 +104,7 @@ void QTocDialog::on_depthSL_valueChanged(int depth)
void QTocDialog::on_typeCO_activated(int value)
{
form_->setTocModel(value);
tocTV->setModel(form_->tocModel());
enableButtons();
}
@ -204,7 +205,7 @@ void QTocDialog::updateGui()
// in the future, new columns may appear
// like labels, bookmarks, etc...
// tocTV->header()->hide();
tocTV->header()->setVisible(true);
tocTV->header()->setVisible(false);
enableButtons();
connect(tocTV->selectionModel(),