优化旋转操作
|
|
@ -1,8 +1,10 @@
|
||||||
<RCC>
|
<RCC>
|
||||||
<qresource prefix="/">
|
<qresource prefix="/">
|
||||||
<file>images/checkerboard.png</file>
|
<file>images/checkerboard.png</file>
|
||||||
|
<file>images/icon_rotate_lb.png</file>
|
||||||
|
<file>images/icon_rotate_lt.png</file>
|
||||||
|
<file>images/icon_rotate_rb.png</file>
|
||||||
|
<file>images/icon_rotate_rt.png</file>
|
||||||
<file>images/icon_rotate.png</file>
|
<file>images/icon_rotate.png</file>
|
||||||
<file>images/icon_rotate2.png</file>
|
|
||||||
<file>images/icon-rotate3.png</file>
|
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 373 B |
|
Before Width: | Height: | Size: 387 B After Width: | Height: | Size: 373 B |
|
Before Width: | Height: | Size: 347 B |
|
After Width: | Height: | Size: 865 B |
|
After Width: | Height: | Size: 864 B |
|
After Width: | Height: | Size: 872 B |
|
After Width: | Height: | Size: 280 B |
|
|
@ -147,13 +147,32 @@ void BaseSelector::mouseMoveEvent(QGraphicsSceneMouseEvent* event, DesignerScene
|
||||||
setCursor(scene, Qt::SizeHorCursor);
|
setCursor(scene, Qt::SizeHorCursor);
|
||||||
break;
|
break;
|
||||||
case H_rotate_leftTop:
|
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:
|
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:
|
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:
|
case H_rotate_leftBottom:
|
||||||
{
|
{
|
||||||
int nSize = 24;
|
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);
|
setCursor(scene, rotateCursor);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||