TOC dialog: fix scrollbar flickering when clicking on items

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16571 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Peter Kümmel 2007-01-07 13:13:40 +00:00
parent 24e837d390
commit 37652b6d7a

View File

@ -231,6 +231,8 @@ void QTocDialog::updateGui()
tocTV->setModel(form_->tocModel()); tocTV->setModel(form_->tocModel());
tocTV->setEditTriggers(QAbstractItemView::NoEditTriggers); tocTV->setEditTriggers(QAbstractItemView::NoEditTriggers);
} }
// avoid flickering
tocTV-> setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
tocTV->showColumn(0); tocTV->showColumn(0);
// hide the pointless QHeader for now // hide the pointless QHeader for now
// in the future, new columns may appear // in the future, new columns may appear