#include <QGraphicsRectItem>
#include <QGraphicsSceneWheelEvent>
-#define VIEWER_DEBUG // testing ImageViewer
+//#define VIEWER_DEBUG
//=======================================================================
// Name : GraphicsView_Scene
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 );
QGraphicsLineItem* aVerLineItem = new QGraphicsLineItem( 0, -2000, 0, 2000 );
aVerLineItem->setPen( QPen( Qt::red ) );
addItem( aVerLineItem );
+#endif
}
//=======================================================================
//setInteractionFlag( TraceBoundingRect );
//setInteractionFlag( DraggingByMiddleButton );
//setInteractionFlag( ImmediateContextMenu );
- //setInteractionFlag( ImmediateSelection ); // testing ImageViewer
- //setInteractionFlag( Sketching ); // testing ImageViewer
+ //setInteractionFlag( ImmediateSelection );
+ //setInteractionFlag( Sketching );
// background
setBackgroundBrush( QBrush( Qt::white ) );