mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 07:42:02 +00:00
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:
parent
f1d47e4416
commit
be4be30532
@ -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());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user