From: ouv Date: Wed, 7 Aug 2013 10:44:42 +0000 (+0000) Subject: Comment VIEWER_DEBUG definition. X-Git-Tag: BR_hydro_v_0_1~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=03cb8e91358e1a6160ee3c938bb7d70546ec8455;p=modules%2Fgui.git Comment VIEWER_DEBUG definition. --- diff --git a/src/GraphicsView/GraphicsView_Scene.cxx b/src/GraphicsView/GraphicsView_Scene.cxx index c8d371a32..f597ba9d0 100644 --- a/src/GraphicsView/GraphicsView_Scene.cxx +++ b/src/GraphicsView/GraphicsView_Scene.cxx @@ -26,7 +26,7 @@ #include #include -#define VIEWER_DEBUG // testing ImageViewer +//#define VIEWER_DEBUG //======================================================================= // Name : GraphicsView_Scene @@ -44,9 +44,6 @@ GraphicsView_Scene::GraphicsView_Scene( QObject* theParent ) connect( this, SIGNAL( sceneRectChanged( const QRectF& ) ), this, SLOT( onSceneRectChanged( const QRectF& ) ) ); -#endif - - // testing ImageViewer setSceneRect( -2000, -2000, 4000, 4000 ); QGraphicsLineItem* aHorLineItem = new QGraphicsLineItem( -2000, 0, 2000, 0 ); @@ -56,6 +53,7 @@ GraphicsView_Scene::GraphicsView_Scene( QObject* theParent ) QGraphicsLineItem* aVerLineItem = new QGraphicsLineItem( 0, -2000, 0, 2000 ); aVerLineItem->setPen( QPen( Qt::red ) ); addItem( aVerLineItem ); +#endif } //======================================================================= diff --git a/src/GraphicsView/GraphicsView_ViewPort.cxx b/src/GraphicsView/GraphicsView_ViewPort.cxx index 7dc569701..4d0bb351c 100644 --- a/src/GraphicsView/GraphicsView_ViewPort.cxx +++ b/src/GraphicsView/GraphicsView_ViewPort.cxx @@ -164,8 +164,8 @@ GraphicsView_ViewPort::GraphicsView_ViewPort( QWidget* theParent ) //setInteractionFlag( TraceBoundingRect ); //setInteractionFlag( DraggingByMiddleButton ); //setInteractionFlag( ImmediateContextMenu ); - //setInteractionFlag( ImmediateSelection ); // testing ImageViewer - //setInteractionFlag( Sketching ); // testing ImageViewer + //setInteractionFlag( ImmediateSelection ); + //setInteractionFlag( Sketching ); // background setBackgroundBrush( QBrush( Qt::white ) );