From 230fa685038bc1c3f806fed8d62daf4b23f4abf0 Mon Sep 17 00:00:00 2001 From: ouv Date: Thu, 30 Aug 2012 10:04:23 +0000 Subject: [PATCH] Issue 0001138: External 20348 View operation --- src/GLViewer/GLViewer_Viewer.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/GLViewer/GLViewer_Viewer.cxx b/src/GLViewer/GLViewer_Viewer.cxx index da6e8ac61..ad68bc5e2 100644 --- a/src/GLViewer/GLViewer_Viewer.cxx +++ b/src/GLViewer/GLViewer_Viewer.cxx @@ -39,6 +39,7 @@ #include #include #include +#include /* used for sketching */ static QEvent* l_mbPressEvent = 0; @@ -95,6 +96,17 @@ void GLViewer_Viewer::contextMenuPopup( QMenu* thePopup ) thePopup->addSeparator(); thePopup->addAction( tr( "CHANGE_BGCOLOR" ), this, SLOT( onChangeBgColor() ) ); + + thePopup->addSeparator(); + + if( GLViewer_ViewFrame* aView = getActiveView() ) + { + QList aList = qFindChildren( aView ); + QListIterator anIter( aList ); + while( anIter.hasNext() ) + if( QToolBar* aToolBar = anIter.next() ) + thePopup->addAction( aToolBar->toggleViewAction() ); + } } /*! -- 2.39.2