disable scrollbar context menu

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17093 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Peter Kümmel 2007-02-07 18:50:58 +00:00
parent f1d47e4416
commit be4be30532

View File

@ -189,6 +189,9 @@ GuiWorkArea::GuiWorkArea(int w, int h, int id, LyXView & lyx_view)
QObject::connect(verticalScrollBar(), SIGNAL(actionTriggered(int)),
this, SLOT(adjustViewWithScrollBar(int)));
// disable context menu for the scrollbar
verticalScrollBar()->setContextMenuPolicy(Qt::NoContextMenu);
// PageStep only depends on the viewport height.
verticalScrollBar()->setPageStep(viewport()->height());