|
|
@ -802,6 +802,7 @@ void UBGraphicsTriangle::hoverLeaveEvent(QGraphicsSceneHoverEvent *event) |
|
|
|
mVFlipSvgItem->setVisible(false); |
|
|
|
mVFlipSvgItem->setVisible(false); |
|
|
|
mHFlipSvgItem->setVisible(false); |
|
|
|
mHFlipSvgItem->setVisible(false); |
|
|
|
mRotateSvgItem->setVisible(false); |
|
|
|
mRotateSvgItem->setVisible(false); |
|
|
|
|
|
|
|
UBDrawingController::drawingController()->mActiveRuler = NULL; |
|
|
|
event->accept(); |
|
|
|
event->accept(); |
|
|
|
update(); |
|
|
|
update(); |
|
|
|
} |
|
|
|
} |
|
|
@ -831,14 +832,13 @@ void UBGraphicsTriangle::hoverMoveEvent(QGraphicsSceneHoverEvent *event) |
|
|
|
else |
|
|
|
else |
|
|
|
setCursor(moveCursor()); |
|
|
|
setCursor(moveCursor()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
event->accept(); |
|
|
|
|
|
|
|
} else if (UBDrawingController::drawingController()->isDrawingTool()) { |
|
|
|
event->accept(); |
|
|
|
event->accept(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
void UBGraphicsTriangle::StartLine(const QPointF &scenePos, qreal width) |
|
|
|
void UBGraphicsTriangle::StartLine(const QPointF &scenePos, qreal width) |
|
|
|
{ |
|
|
|
{ |
|
|
|
qDebug() << "morientation" << mOrientation; |
|
|
|
|
|
|
|
//qDebug() << "triangle rect()" << rect();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QPointF itemPos = mapFromScene(scenePos); |
|
|
|
QPointF itemPos = mapFromScene(scenePos); |
|
|
|
|
|
|
|
|
|
|
|
qreal y; |
|
|
|
qreal y; |
|
|
|