From 5ee1969f24359e5885f8fa68f334d5464a4561ad Mon Sep 17 00:00:00 2001 From: dismine <dismine@gmail.com> 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 @@ <string>Create a layout</string> </property> <property name="windowIcon"> - <iconset resource="icon.qrc"> + <iconset resource="../share/resources/icon.qrc"> <normaloff>:/icon/64x64/icon64x64.png</normaloff>:/icon/64x64/icon64x64.png</iconset> </property> <property name="locale"> @@ -111,7 +111,7 @@ <string>Turn</string> </property> <property name="toolTip"> - <string>Turn the detail 180 degrees</string> + <string>Turn the detail 90 degrees</string> </property> </action> <action name="actionStop"> @@ -161,7 +161,7 @@ <bool>false</bool> </property> <property name="icon"> - <iconset resource="icon.qrc"> + <iconset resource="../share/resources/icon.qrc"> <normaloff>:/icon/16x16/mirror.png</normaloff>:/icon/16x16/mirror.png</iconset> </property> <property name="text"> @@ -199,7 +199,7 @@ </action> </widget> <resources> - <include location="icon.qrc"/> + <include location="../share/resources/icon.qrc"/> </resources> <connections/> </ui> 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); } } }