Examples: replace deprecated QQuaternion::conjugate()
QQuaternion::conjugate() was deprecated with 5.5 and replaced by QQuaternion::conjugated(). Change-Id: I0176e3db82e9ad793f60e1034a22b11832c8c44d Reviewed-by: Sérgio Martins <sergio.martins@kdab.com>
This commit is contained in:
parent
c7ac077128
commit
1c33e8945d
@ -952,17 +952,17 @@ void Scene::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
|
||||
return;
|
||||
|
||||
if (event->buttons() & Qt::LeftButton) {
|
||||
m_trackBalls[0].move(pixelPosToViewPos(event->scenePos()), m_trackBalls[2].rotation().conjugate());
|
||||
m_trackBalls[0].move(pixelPosToViewPos(event->scenePos()), m_trackBalls[2].rotation().conjugated());
|
||||
event->accept();
|
||||
} else {
|
||||
m_trackBalls[0].release(pixelPosToViewPos(event->scenePos()), m_trackBalls[2].rotation().conjugate());
|
||||
m_trackBalls[0].release(pixelPosToViewPos(event->scenePos()), m_trackBalls[2].rotation().conjugated());
|
||||
}
|
||||
|
||||
if (event->buttons() & Qt::RightButton) {
|
||||
m_trackBalls[1].move(pixelPosToViewPos(event->scenePos()), m_trackBalls[2].rotation().conjugate());
|
||||
m_trackBalls[1].move(pixelPosToViewPos(event->scenePos()), m_trackBalls[2].rotation().conjugated());
|
||||
event->accept();
|
||||
} else {
|
||||
m_trackBalls[1].release(pixelPosToViewPos(event->scenePos()), m_trackBalls[2].rotation().conjugate());
|
||||
m_trackBalls[1].release(pixelPosToViewPos(event->scenePos()), m_trackBalls[2].rotation().conjugated());
|
||||
}
|
||||
|
||||
if (event->buttons() & Qt::MidButton) {
|
||||
@ -980,12 +980,12 @@ void Scene::mousePressEvent(QGraphicsSceneMouseEvent *event)
|
||||
return;
|
||||
|
||||
if (event->buttons() & Qt::LeftButton) {
|
||||
m_trackBalls[0].push(pixelPosToViewPos(event->scenePos()), m_trackBalls[2].rotation().conjugate());
|
||||
m_trackBalls[0].push(pixelPosToViewPos(event->scenePos()), m_trackBalls[2].rotation().conjugated());
|
||||
event->accept();
|
||||
}
|
||||
|
||||
if (event->buttons() & Qt::RightButton) {
|
||||
m_trackBalls[1].push(pixelPosToViewPos(event->scenePos()), m_trackBalls[2].rotation().conjugate());
|
||||
m_trackBalls[1].push(pixelPosToViewPos(event->scenePos()), m_trackBalls[2].rotation().conjugated());
|
||||
event->accept();
|
||||
}
|
||||
|
||||
@ -1002,12 +1002,12 @@ void Scene::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
|
||||
return;
|
||||
|
||||
if (event->button() == Qt::LeftButton) {
|
||||
m_trackBalls[0].release(pixelPosToViewPos(event->scenePos()), m_trackBalls[2].rotation().conjugate());
|
||||
m_trackBalls[0].release(pixelPosToViewPos(event->scenePos()), m_trackBalls[2].rotation().conjugated());
|
||||
event->accept();
|
||||
}
|
||||
|
||||
if (event->button() == Qt::RightButton) {
|
||||
m_trackBalls[1].release(pixelPosToViewPos(event->scenePos()), m_trackBalls[2].rotation().conjugate());
|
||||
m_trackBalls[1].release(pixelPosToViewPos(event->scenePos()), m_trackBalls[2].rotation().conjugated());
|
||||
event->accept();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user