summaryrefslogtreecommitdiffstats
path: root/openglscene.h
diff options
context:
space:
mode:
Diffstat (limited to 'openglscene.h')
-rw-r--r--openglscene.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/openglscene.h b/openglscene.h
index 70f1c41..e572527 100644
--- a/openglscene.h
+++ b/openglscene.h
@@ -22,8 +22,8 @@ public slots:
void enableWireframe(bool enabled);
void enableNormals(bool enabled);
void setLightPosition(int pos);
- void setModelColor(QRgb color);
- void setBackgroundColor(QRgb color);
+ void setModelColor(const QColor &color);
+ void setBackgroundColor(const QColor &color);
protected:
void mousePressEvent(QGraphicsSceneMouseEvent *event);
@@ -39,8 +39,8 @@ private:
float m_lightPos;
float m_distance;
- QRgb m_backgroundColor;
- QRgb m_modelColor;
+ QColor m_backgroundColor;
+ QColor m_modelColor;
Model *m_model;