From 03cb8e91358e1a6160ee3c938bb7d70546ec8455 Mon Sep 17 00:00:00 2001 From: ouv Date: Wed, 7 Aug 2013 10:44:42 +0000 Subject: [PATCH] Comment VIEWER_DEBUG definition. --- src/GraphicsView/GraphicsView_Scene.cxx | 6 ++---- src/GraphicsView/GraphicsView_ViewPort.cxx | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) 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 ) ); -- 2.39.2