diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2013-07-08 15:11:06 +0300 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2013-07-09 07:40:05 +0300 |
commit | 24275c551f0a10df022f037962d1678b7213ef09 (patch) | |
tree | 310a339c2c1582d68618881c905fd32dd64f2f5e /examples/rainfall | |
parent | d9267977b3f5bb8ab5573c29f0721a07397e5b82 (diff) |
Refactor data item
Data items do not need to know about rendering related stuff,
so separated that to render items. Renderer will maintain
array of render items equal to the sample space.
Change-Id: I61c0db96f115b7c667e37ea92aa5ae6b8583c61a
Reviewed-by: Mika Salmela <mika.salmela@digia.com>
Diffstat (limited to 'examples/rainfall')
-rw-r--r-- | examples/rainfall/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/rainfall/main.cpp b/examples/rainfall/main.cpp index be1b120f..a13e91f9 100644 --- a/examples/rainfall/main.cpp +++ b/examples/rainfall/main.cpp @@ -326,6 +326,8 @@ void RainfallChart::addDataSet() data.append(row); row.clear(); + // TODO QDataSet reverses the data in rows and columns when you add it, so results are now mirrored. + qWarning() << "Example broken! QDataSet mirrors data, rows and columns will not be correct!"; QOldDataProxy *proxy = new QOldDataProxy; m_chart->setDataProxy(proxy); static_cast<QOldDataProxy *>(m_chart->dataProxy())->addDataSet(data); |