summaryrefslogtreecommitdiffstats
path: root/src/datavis3d/engine/surface3dcontroller.cpp
diff options
context:
space:
mode:
authorMika Salmela <mika.salmela@digia.com>2013-07-26 13:56:45 +0300
committerMika Salmela <mika.salmela@digia.com>2013-07-26 13:59:23 +0300
commitd1eb5ceed9bb4e35a185e575f9bd9d2228f9f5e4 (patch)
tree39b75e46322759c56c1be7588bf44541155d9771 /src/datavis3d/engine/surface3dcontroller.cpp
parent51d6d0258c8d1fe0608045986792ac5601f8613f (diff)
Surface gradient to theme and drawing implementation to renderer.
Change-Id: I78a3f3d0aa9bd24a05368545cf8e779dda65ef4c Reviewed-by: Mika Salmela <mika.salmela@digia.com>
Diffstat (limited to 'src/datavis3d/engine/surface3dcontroller.cpp')
-rw-r--r--src/datavis3d/engine/surface3dcontroller.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/datavis3d/engine/surface3dcontroller.cpp b/src/datavis3d/engine/surface3dcontroller.cpp
index ca24da09..9996e1b8 100644
--- a/src/datavis3d/engine/surface3dcontroller.cpp
+++ b/src/datavis3d/engine/surface3dcontroller.cpp
@@ -191,6 +191,12 @@ void Surface3dController::setTickCount(GLint tickCount, GLfloat step, GLfloat mi
emit tickCountChanged(m_tickCount, m_tickStep, m_tickMinimum);
}
+void Surface3dController::setGradientColorAt(qreal pos, const QColor &color)
+{
+ Theme t = theme();
+ t.m_surfaceGradient.setColorAt(pos, color);
+ emit themeChanged(t);
+}
// TODO: Temp
void Surface3dController::setData(QList<qreal> series, int width, int depth)