{
emit vpContextMenuEvent( e );
}
+
+//================================================================
+// Function : scrollContentsBy
+// Purpose :
+//================================================================
+void GraphicsView_ViewPort::scrollContentsBy( int theDX, int theDY )
+{
+ if( myNameLabel )
+ myNameLabel->setAcceptMoveEvents( false );
+
+ QGraphicsView::scrollContentsBy( theDX, theDY );
+
+ if( myNameLabel )
+ myNameLabel->setAcceptMoveEvents( true );
+}
void onWheelEvent( QGraphicsSceneWheelEvent* );
void onContextMenuEvent( QGraphicsSceneContextMenuEvent* );
+protected:
+ virtual void scrollContentsBy( int theDX, int theDY );
+
signals:
void vpMouseEvent( QGraphicsSceneMouseEvent* );
void vpWheelEvent( QGraphicsSceneWheelEvent* );