From: ouv Date: Thu, 30 Aug 2012 10:04:23 +0000 (+0000) Subject: Issue 0001138: External 20348 View operation X-Git-Tag: CTH_1_8_0~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=230fa685038bc1c3f806fed8d62daf4b23f4abf0;p=modules%2Fgui.git Issue 0001138: External 20348 View operation --- 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() ); + } } /*!