summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrond Kjernåsen <trond@trolltech.com>2008-06-26 12:11:57 +0200
committerTrond Kjernåsen <trond@trolltech.com>2008-06-26 12:11:57 +0200
commitc1b656f35992b3e819d6de4430cabe1fd2622864 (patch)
tree73bffb7d86e3719854317c9c230cf1f3536636ac
parent40627081774ff73c78e9d45d959da4184fc8baf8 (diff)
Change background color and fix dialog positioning bug.
-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());
}