Should we disable the context menu (right mouse click)
of the scrollbar? Currently the functionality is not
bug free?

Peter
Index: src/frontends/qt4/GuiWorkArea.C
===================================================================
--- src/frontends/qt4/GuiWorkArea.C     (revision 17071)
+++ src/frontends/qt4/GuiWorkArea.C     (working copy)
@@ -189,6 +189,9 @@
        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());
 

Reply via email to