]> git.lyx.org Git - features.git/commitdiff
disable scrollbar context menu
authorPeter Kümmel <syntheticpp@gmx.net>
Wed, 7 Feb 2007 18:50:58 +0000 (18:50 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Wed, 7 Feb 2007 18:50:58 +0000 (18:50 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17093 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiWorkArea.C

index 261aaef8f8b9e224cdf84a1d65616916fb31f665..73a2d0d405d34c07cef106e60d82f5ee3f48d26c 100644 (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());