summaryrefslogtreecommitdiffstats
path: root/examples/datavisualization/texturesurface/highlightseries.h
diff options
context:
space:
mode:
authorMika Salmela <mika.salmela@digia.com>2014-08-21 09:55:23 +0300
committerMika Salmela <mika.salmela@digia.com>2014-08-21 10:09:04 +0300
commit8fab0a9cfcbed9deb47f4a9bd101434985c1c611 (patch)
tree4c884d30f6bed5ce7471a16884b734ab8a347763 /examples/datavisualization/texturesurface/highlightseries.h
parent7ef676c7cbe5e3a960a66150794be3a862642073 (diff)
Gradient to highlight series
Added a gradient to highlight series on textured surface example. Change-Id: I2fc17dfa79f986cf5b651d964eb3bcf5d65f1c80 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'examples/datavisualization/texturesurface/highlightseries.h')
-rw-r--r--examples/datavisualization/texturesurface/highlightseries.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/datavisualization/texturesurface/highlightseries.h b/examples/datavisualization/texturesurface/highlightseries.h
index 36361fbc..aa1590e5 100644
--- a/examples/datavisualization/texturesurface/highlightseries.h
+++ b/examples/datavisualization/texturesurface/highlightseries.h
@@ -33,9 +33,11 @@ public:
~HighlightSeries();
void setTopographicSeries(TopographicSeries *series);
+ inline void setMinHeight(float height) { m_minHeight = height; }
public slots:
void handlePositionChange(const QPoint &position);
+ void handleGradientChange(float value);
private:
int m_width;
@@ -44,6 +46,7 @@ private:
int m_srcHeight;
QPoint m_position;
TopographicSeries *m_topographicSeries;
+ float m_minHeight;
};
#endif // HIGHLIGHTSERIES_H