diff options
author | Mika Salmela <mika.salmela@digia.com> | 2013-08-07 11:50:21 +0300 |
---|---|---|
committer | Mika Salmela <mika.salmela@digia.com> | 2013-08-07 12:03:21 +0300 |
commit | b1ebb645452189be5df1a3d86f36c789051406c5 (patch) | |
tree | 9a7d21fb5ee2c3323bcaf63a903bec30036a2432 /examples/surfacechart | |
parent | b2ad88e33a93a491250443b200dbba22b3870782 (diff) |
Detects what point the user has clicked.
Change-Id: I53cbba795776becab00076daead66ef2f2f3194b
Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'examples/surfacechart')
-rw-r--r-- | examples/surfacechart/chartmodifier.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/surfacechart/chartmodifier.cpp b/examples/surfacechart/chartmodifier.cpp index 010c0b6f..2e3bc15b 100644 --- a/examples/surfacechart/chartmodifier.cpp +++ b/examples/surfacechart/chartmodifier.cpp @@ -107,10 +107,10 @@ void ChartModifier::togglePlane(bool enable) if (enable) { QList<qreal> series; - qreal y = 2.0 / qreal(m_xCount - 1); + qreal y = 2.0 / qreal(m_zCount - 1); for (int i = 0; i < m_zCount; i++) { for (int j = 0; j < m_xCount; j++) { - series << j * y; + series << i * y; } } |