]> git.lyx.org Git - features.git/commitdiff
TOC dialog: fix scrollbar flickering when clicking on items
authorPeter Kümmel <syntheticpp@gmx.net>
Sun, 7 Jan 2007 13:13:40 +0000 (13:13 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Sun, 7 Jan 2007 13:13:40 +0000 (13:13 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16571 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/QTocDialog.C

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