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:
blacksun
2013-09-09 13:29:28 +00:00
parent 17661b561a
commit 8e5f4762e8
5 changed files with 75 additions and 141 deletions

View File

@@ -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));
}
/**