@ -170,7 +170,8 @@ QVariant UBGraphicsCompass::itemChange(GraphicsItemChange change, const QVariant
void UBGraphicsCompass : : mousePressEvent ( QGraphicsSceneMouseEvent * event )
{
if ( UBDrawingController : : drawingController ( ) - > stylusTool ( ) ! = UBStylusTool : : Selector )
if ( UBDrawingController : : drawingController ( ) - > stylusTool ( ) ! = UBStylusTool : : Selector & &
UBDrawingController : : drawingController ( ) - > stylusTool ( ) ! = UBStylusTool : : Play )
return ;
if ( resizeButtonRect ( ) . contains ( event - > pos ( ) ) )
@ -205,7 +206,8 @@ void UBGraphicsCompass::mousePressEvent(QGraphicsSceneMouseEvent *event)
void UBGraphicsCompass : : mouseMoveEvent ( QGraphicsSceneMouseEvent * event )
{
if ( UBDrawingController : : drawingController ( ) - > stylusTool ( ) ! = UBStylusTool : : Selector )
if ( UBDrawingController : : drawingController ( ) - > stylusTool ( ) ! = UBStylusTool : : Selector & &
UBDrawingController : : drawingController ( ) - > stylusTool ( ) ! = UBStylusTool : : Play )
return ;
if ( ! mResizing & & ! mRotating & & ! mDrawing )
@ -249,7 +251,8 @@ void UBGraphicsCompass::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
void UBGraphicsCompass : : mouseReleaseEvent ( QGraphicsSceneMouseEvent * event )
{
if ( UBDrawingController : : drawingController ( ) - > stylusTool ( ) ! = UBStylusTool : : Selector )
if ( UBDrawingController : : drawingController ( ) - > stylusTool ( ) ! = UBStylusTool : : Selector & &
UBDrawingController : : drawingController ( ) - > stylusTool ( ) ! = UBStylusTool : : Play )
return ;
if ( mResizing )
@ -289,7 +292,8 @@ void UBGraphicsCompass::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
void UBGraphicsCompass : : hoverEnterEvent ( QGraphicsSceneHoverEvent * event )
{
if ( UBDrawingController : : drawingController ( ) - > stylusTool ( ) ! = UBStylusTool : : Selector )
if ( UBDrawingController : : drawingController ( ) - > stylusTool ( ) ! = UBStylusTool : : Selector & &
UBDrawingController : : drawingController ( ) - > stylusTool ( ) ! = UBStylusTool : : Play )
return ;
mOuterCursor = cursor ( ) ;
@ -318,7 +322,8 @@ void UBGraphicsCompass::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
void UBGraphicsCompass : : hoverLeaveEvent ( QGraphicsSceneHoverEvent * event )
{
if ( UBDrawingController : : drawingController ( ) - > stylusTool ( ) ! = UBStylusTool : : Selector )
if ( UBDrawingController : : drawingController ( ) - > stylusTool ( ) ! = UBStylusTool : : Selector & &
UBDrawingController : : drawingController ( ) - > stylusTool ( ) ! = UBStylusTool : : Play )
return ;
mShowButtons = false ;
@ -331,7 +336,8 @@ void UBGraphicsCompass::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
void UBGraphicsCompass : : hoverMoveEvent ( QGraphicsSceneHoverEvent * event )
{
if ( UBDrawingController : : drawingController ( ) - > stylusTool ( ) ! = UBStylusTool : : Selector )
if ( UBDrawingController : : drawingController ( ) - > stylusTool ( ) ! = UBStylusTool : : Selector & &
UBDrawingController : : drawingController ( ) - > stylusTool ( ) ! = UBStylusTool : : Play )
return ;
mShowButtons = shape ( ) . contains ( event - > pos ( ) ) ;