From: vsr Date: Fri, 17 Feb 2012 15:06:30 +0000 (+0000) Subject: Remove unused method event() X-Git-Tag: V6_5_0a1~42 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=90fc7b1fb2bcef279776ab0cdb4d74a17d50d22b;p=modules%2Fgui.git Remove unused method event() --- diff --git a/src/OCCViewer/OCCViewer_ViewFrame.cxx b/src/OCCViewer/OCCViewer_ViewFrame.cxx index 3fd668516..c66e678e7 100644 --- a/src/OCCViewer/OCCViewer_ViewFrame.cxx +++ b/src/OCCViewer/OCCViewer_ViewFrame.cxx @@ -30,14 +30,6 @@ #include #include -class VisEvent : public QEvent -{ -public: - VisEvent( const QMap& visMap ) : QEvent( QEvent::User ), myVisMap( visMap ) - {} - QMap myVisMap; -}; - OCCViewer_ViewFrame::OCCViewer_ViewFrame(SUIT_Desktop* theDesktop, OCCViewer_Viewer* theModel) : OCCViewer_ViewWindow( theDesktop, theModel ), myPopupRequestedView(0) { @@ -332,30 +324,16 @@ void OCCViewer_ViewFrame::setVisualParameters( const QString& parameters ) QStringList params = parameters.split( "|" ); if ( params.count() > 1 ) { int maximizedView = params[0].toInt(); - QMap visMap; if ( myViews.count() < params.count()-1 ) onMaximizedView( getView(MAIN_VIEW), false ); // secondary views are not created yet, but should be for ( int i = 1; i < params.count(); i++ ) { int idx = i-1; getView( idx )->setVisualParameters( params[i] ); - //visMap[idx] = maximizedView == -1 || maximizedView == idx; } onMaximizedView( getView( maximizedView ), maximizedView != -1 ); // set proper sib-window maximized - //VisEvent ve( visMap ); - //QApplication::sendEvent( this, &ve ); } else { // handle obsolete versions - no parameters for xy, yz, xz views getView(MAIN_VIEW)->setVisualParameters( parameters ); } } - -bool OCCViewer_ViewFrame::event( QEvent* e ) -{ - if ( e->type() == QEvent::User ) { - VisEvent* ve = dynamic_cast( e ); - QMap visMap = ve->myVisMap; - for ( int i = 0 ; i < myViews.count(); i++ ) - myViews[i]->setVisible( visMap.contains( i ) && visMap[i] ); - } -} diff --git a/src/OCCViewer/OCCViewer_ViewFrame.h b/src/OCCViewer/OCCViewer_ViewFrame.h index 52ff9d1ab..c8f5696bb 100644 --- a/src/OCCViewer/OCCViewer_ViewFrame.h +++ b/src/OCCViewer/OCCViewer_ViewFrame.h @@ -82,8 +82,6 @@ public: virtual void setDropDownButtons( bool ); - bool event( QEvent* e ); - public slots: virtual void onFrontView() { getView(MAIN_VIEW)->onFrontView(); } virtual void onViewFitAll();