mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-03-11 02:49:58 +01:00
QetGraphicsItem, remove the function applyRotation and rotateBy, and use instead the native function of QGraphicsItem : setRotation
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5281 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -147,7 +147,7 @@ bool DiagramEventAddElement::keyPressEvent(QKeyEvent *event)
|
||||
{
|
||||
if (m_element && event->key() == Qt::Key_Space)
|
||||
{
|
||||
m_element->rotateBy(90);
|
||||
m_element->setRotation(m_element->rotation() + 90);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ bool DiagramEventAddImage::mousePressEvent(QGraphicsSceneMouseEvent *event)
|
||||
|
||||
if (m_image && event -> button() == Qt::RightButton)
|
||||
{
|
||||
m_image -> rotateBy(90);
|
||||
m_image->setRotation(m_image->rotation() + 90);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user