From 5ee1969f24359e5885f8fa68f334d5464a4561ad Mon Sep 17 00:00:00 2001 From: dismine Date: Thu, 9 Jan 2014 14:58:07 +0200 Subject: [PATCH] Turn the detail 90 degrees. --HG-- branch : develop --- src/tablewindow.ui | 8 ++++---- src/widgets/vtablegraphicsview.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tablewindow.ui b/src/tablewindow.ui index 8381c3115..b5c5174ba 100644 --- a/src/tablewindow.ui +++ b/src/tablewindow.ui @@ -14,7 +14,7 @@ Create a layout - + :/icon/64x64/icon64x64.png:/icon/64x64/icon64x64.png @@ -111,7 +111,7 @@ Turn - Turn the detail 180 degrees + Turn the detail 90 degrees @@ -161,7 +161,7 @@ false - + :/icon/16x16/mirror.png:/icon/16x16/mirror.png @@ -199,7 +199,7 @@ - + diff --git a/src/widgets/vtablegraphicsview.cpp b/src/widgets/vtablegraphicsview.cpp index a5b4b6ab2..44dee0872 100644 --- a/src/widgets/vtablegraphicsview.cpp +++ b/src/widgets/vtablegraphicsview.cpp @@ -172,7 +172,7 @@ void VTableGraphicsView::rotateIt() QGraphicsItem *item = list.at(i); Q_ASSERT(item != 0); item->setTransformOriginPoint(item->boundingRect().center()); - item->setRotation(item->rotation() + 180); + item->setRotation(item->rotation() + 90); } } }