@ -182,8 +182,6 @@ void UBGraphicsDelegateFrame::initializeTransform()
bottomLeft = itemTransform . map ( itemRect . topLeft ( ) ) ;
bottomLeft = itemTransform . map ( itemRect . topLeft ( ) ) ;
}
}
qDebug ( ) < < " mMirrorX " < < mMirrorX < < " ,mMirrorY " < < mMirrorY ;
QLineF topLine ( topLeft , topRight ) ;
QLineF topLine ( topLeft , topRight ) ;
QLineF leftLine ( topLeft , bottomLeft ) ;
QLineF leftLine ( topLeft , bottomLeft ) ;
qreal width = topLine . length ( ) ;
qreal width = topLine . length ( ) ;
@ -627,7 +625,6 @@ UBGraphicsDelegateFrame::FrameTool UBGraphicsDelegateFrame::toolFromPos(QPointF
}
}
}
}
else if ( leftResizeGripRect ( ) . contains ( pos ) ) {
else if ( leftResizeGripRect ( ) . contains ( pos ) ) {
qDebug ( ) < < " LEFT GRIP ( " < < mMirrorX < < " ) " ;
if ( mMirrorX ) {
if ( mMirrorX ) {
return ResizeRight ;
return ResizeRight ;
} else {
} else {
@ -636,7 +633,6 @@ UBGraphicsDelegateFrame::FrameTool UBGraphicsDelegateFrame::toolFromPos(QPointF
return ResizeLeft ;
return ResizeLeft ;
}
}
else if ( rightResizeGripRect ( ) . contains ( pos ) ) {
else if ( rightResizeGripRect ( ) . contains ( pos ) ) {
qDebug ( ) < < " RIGHT GRIP ( " < < mMirrorX < < " ) " ;
if ( mMirrorX ) {
if ( mMirrorX ) {
return ResizeLeft ;
return ResizeLeft ;
} else {
} else {
@ -702,7 +698,6 @@ void UBGraphicsDelegateFrame::refreshGeometry()
QPointF bottomLeft = itemTransform . map ( itemRect . bottomLeft ( ) ) ;
QPointF bottomLeft = itemTransform . map ( itemRect . bottomLeft ( ) ) ;
QPointF center = itemTransform . map ( itemRect . center ( ) ) ;
QPointF center = itemTransform . map ( itemRect . center ( ) ) ;
qDebug ( ) < < topLeft < < " , " < < topRight < < " , " < < bottomLeft ;
QLineF topLine ( topLeft , topRight ) ;
QLineF topLine ( topLeft , topRight ) ;
qreal angle = topLine . angle ( ) ;
qreal angle = topLine . angle ( ) ;