From 9a6e1d2a6108c7262016504f73af71d533128e72 Mon Sep 17 00:00:00 2001 From: Laurent Trinques Date: Fri, 20 May 2022 10:18:37 +0200 Subject: [PATCH] =?UTF-8?q?Editor=20commands:=20change=20the=20rotation=20?= =?UTF-8?q?with=20the=20space=20key=20on=20the=20keyboard=20from=2090?= =?UTF-8?q?=C2=B0=20to=2015=C2=B0=20for=20more=20precision=20for=20part=20?= =?UTF-8?q?lines,=20polygons,=20texts,=20arcs=20and=20circles.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sources/editor/editorcommands.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sources/editor/editorcommands.cpp b/sources/editor/editorcommands.cpp index a1c5f8bd7..9be73c34a 100644 --- a/sources/editor/editorcommands.cpp +++ b/sources/editor/editorcommands.cpp @@ -633,14 +633,14 @@ void RotateElementsCommand::undo() } else if (item->type() == PartLine::Type) { PartLine* line = qgraphicsitem_cast(item); - line->setRotation(line->rotation()-90); + line->setRotation(line->rotation()-15); } else if (item->type() == PartPolygon::Type) { PartPolygon* poly = qgraphicsitem_cast(item); - poly->setRotation(poly->rotation()-90); + poly->setRotation(poly->rotation()-15); } else { - item->setRotation(item->rotation()-90); + item->setRotation(item->rotation()-15); } } } @@ -661,14 +661,14 @@ void RotateElementsCommand::redo() } else if (item->type() == PartLine::Type) { PartLine* line = qgraphicsitem_cast(item); - line->setRotation(line->rotation()+90); + line->setRotation(line->rotation()+15); } else if (item->type() == PartPolygon::Type) { PartPolygon* poly = qgraphicsitem_cast(item); - poly->setRotation(poly->rotation()+90); + poly->setRotation(poly->rotation()+15); } else { - item->setRotation(item->rotation()+90); + item->setRotation(item->rotation()+15); } }