mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-23 02:10:52 +01:00
diagram image: add undo/redo command and save/load to .qet file
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2498 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -261,8 +261,7 @@ void DiagramTextItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) {
|
||||
@param angle Angle de la rotation a effectuer
|
||||
*/
|
||||
void DiagramTextItem::applyRotation(const qreal &angle) {
|
||||
// un simple appel a QGraphicsTextItem::setRotation suffit
|
||||
QGraphicsTextItem::setRotation(QGraphicsTextItem::rotation() + angle);
|
||||
setRotation(QET::correctAngle(rotation()+angle));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user