diff options
author | Tero Ahola <tero.ahola@digia.com> | 2012-05-23 20:48:03 +0300 |
---|---|---|
committer | Tero Ahola <tero.ahola@digia.com> | 2012-05-24 09:47:45 +0300 |
commit | bae2376cbfec567c587e712bee6cefb06714b0c6 (patch) | |
tree | 69efc3b9a3ad2501b4a7a23a4f665580e3cbe29d /examples/scatterinteractions/chartview.cpp | |
parent | fa2cebfef38ceb6be2a381dd9e24a415ffa14891 (diff) |
Named all series in example applications
Diffstat (limited to 'examples/scatterinteractions/chartview.cpp')
-rw-r--r-- | examples/scatterinteractions/chartview.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/scatterinteractions/chartview.cpp b/examples/scatterinteractions/chartview.cpp index 60b4d015..1867c994 100644 --- a/examples/scatterinteractions/chartview.cpp +++ b/examples/scatterinteractions/chartview.cpp @@ -32,12 +32,14 @@ ChartView::ChartView(QWidget *parent) chart()->setTitle("Click to interact with scatter points"); m_scatter = new QScatterSeries(); + m_scatter->setName("scatter1"); for(qreal x(0.5); x <= 4.0; x += 0.5) { for(qreal y(0.5); y <= 4.0; y += 0.5) { *m_scatter << QPointF(x, y); } } m_scatter2 = new QScatterSeries(); + m_scatter2->setName("scatter2"); chart()->addSeries(m_scatter2); chart()->addSeries(m_scatter); |