diff --git a/resource/PowerDesigner.qrc b/resource/PowerDesigner.qrc index 8785285..6daf3a9 100644 --- a/resource/PowerDesigner.qrc +++ b/resource/PowerDesigner.qrc @@ -1,8 +1,10 @@ images/checkerboard.png + images/icon_rotate_lb.png + images/icon_rotate_lt.png + images/icon_rotate_rb.png + images/icon_rotate_rt.png images/icon_rotate.png - images/icon_rotate2.png - images/icon-rotate3.png diff --git a/resource/images/icon-rotate3.png b/resource/images/icon-rotate3.png deleted file mode 100644 index 39c110a..0000000 Binary files a/resource/images/icon-rotate3.png and /dev/null differ diff --git a/resource/images/icon_rotate.png b/resource/images/icon_rotate.png index 3c91ea9..39c110a 100644 Binary files a/resource/images/icon_rotate.png and b/resource/images/icon_rotate.png differ diff --git a/resource/images/icon_rotate2.png b/resource/images/icon_rotate2.png deleted file mode 100644 index 9dfadbd..0000000 Binary files a/resource/images/icon_rotate2.png and /dev/null differ diff --git a/resource/images/icon_rotate_lb.png b/resource/images/icon_rotate_lb.png new file mode 100644 index 0000000..4438b6c Binary files /dev/null and b/resource/images/icon_rotate_lb.png differ diff --git a/resource/images/icon_rotate_lt.png b/resource/images/icon_rotate_lt.png new file mode 100644 index 0000000..c4c15c1 Binary files /dev/null and b/resource/images/icon_rotate_lt.png differ diff --git a/resource/images/icon_rotate_rb.png b/resource/images/icon_rotate_rb.png new file mode 100644 index 0000000..6570833 Binary files /dev/null and b/resource/images/icon_rotate_rb.png differ diff --git a/resource/images/icon_rotate_rt.png b/resource/images/icon_rotate_rt.png new file mode 100644 index 0000000..2d3f985 Binary files /dev/null and b/resource/images/icon_rotate_rt.png differ diff --git a/source/util/baseSelector.cpp b/source/util/baseSelector.cpp index 078034a..d93e8ef 100644 --- a/source/util/baseSelector.cpp +++ b/source/util/baseSelector.cpp @@ -147,13 +147,32 @@ void BaseSelector::mouseMoveEvent(QGraphicsSceneMouseEvent* event, DesignerScene setCursor(scene, Qt::SizeHorCursor); break; case H_rotate_leftTop: + { + int nSize = 24; + QCursor rotateCursor = QCursor(QPixmap(":/images/icon_rotate.png")/*.scaled(nSize, nSize, Qt::KeepAspectRatio, Qt::SmoothTransformation)*/); + setCursor(scene, rotateCursor); + break; + } case H_rotate_rightTop: + { + int nSize = 24; + QCursor rotateCursor = QCursor(QPixmap(":/images/icon_rotate.png")/*.scaled(nSize, nSize, Qt::KeepAspectRatio, Qt::SmoothTransformation)*/); + setCursor(scene, rotateCursor); + break; + } case H_rotate_rightBottom: + { + int nSize = 24; + QCursor rotateCursor = QCursor(QPixmap(":/images/icon_rotate.png")/*.scaled(nSize, nSize, Qt::KeepAspectRatio, Qt::SmoothTransformation)*/); + setCursor(scene, rotateCursor); + break; + } case H_rotate_leftBottom: { int nSize = 24; - QCursor rotateCursor = QCursor(QPixmap(":/images/icon_rotate2.png").scaled(nSize, nSize, Qt::KeepAspectRatio, Qt::SmoothTransformation)); + QCursor rotateCursor = QCursor(QPixmap(":/images/icon_rotate.png")/*.scaled(nSize, nSize, Qt::KeepAspectRatio, Qt::SmoothTransformation)*/); setCursor(scene, rotateCursor); + break; } default: break;