| 836 | |
| 837 | GRAPHICSITEM_SETTER_CMD_IMPL_F_S(WorksheetElement, SetRotationAngle, qreal, rotation, setRotation, recalcShapeAndBoundingRect) |
| 838 | void WorksheetElement::setRotationAngle(qreal angle) { |
| 839 | const qreal angle_graphicsItem = -angle; |
| 840 | Q_D(WorksheetElement); |
| 841 | if (angle_graphicsItem != d->rotation()) |
| 842 | exec(new WorksheetElementSetRotationAngleCmd(d, angle_graphicsItem, ki18n("%1: set rotation angle"))); |
| 843 | } |
| 844 | |
| 845 | // ############################################################################## |
| 846 | // ####################### Private implementation ############################### |
no test coverage detected