summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openglscene.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/openglscene.cpp b/openglscene.cpp
index fa4dcf9..4e52f1b 100644
--- a/openglscene.cpp
+++ b/openglscene.cpp
@@ -22,8 +22,8 @@ QDialog *OpenGLScene::createDialog(const QString &windowTitle) const
OpenGLScene::OpenGLScene()
: m_wireframeEnabled(false)
, m_normalsEnabled(false)
- , m_modelColor(QColor::fromCmykF(0.40, 0.0, 1.0, 0.0))
- , m_backgroundColor(QColor::fromCmykF(0.39, 0.39, 0.0, 0.0))
+ , m_modelColor(153, 255, 0)
+ , m_backgroundColor(0, 170, 255)
, m_model(0)
, m_lastTime(0)
, m_distance(1.4f)
@@ -76,8 +76,7 @@ OpenGLScene::OpenGLScene()
item->setCacheMode(QGraphicsItem::DeviceCoordinateCache);
const QRectF rect = item->boundingRect();
- item->translate(pos.x() - rect.x(), pos.y() - rect.y());
-
+ item->setPos(pos.x() - rect.x(), pos.y() - rect.y());
pos += QPointF(0, 10 + rect.height());
}