##// END OF EJS Templates
Fixed issue with multiple QML charts...
Tero Ahola -
r213:d6e1b3166f68
parent child
Show More
@@ -102,11 +102,13 void LineChartItem::clearView()
102
102
103 void LineChartItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
103 void LineChartItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
104 {
104 {
105 Q_UNUSED(widget);
105 Q_UNUSED(widget);
106 Q_UNUSED(option);
106 Q_UNUSED(option);
107 painter->save();
107 painter->setPen(m_pen);
108 painter->setPen(m_pen);
108 painter->setClipRect(m_clipRect);
109 painter->setClipRect(m_clipRect);
109 painter->drawPath(m_path);
110 painter->drawPath(m_path);
111 painter->restore();
110 }
112 }
111
113
112 void LineChartItem::calculatePoint(QPointF& point, int index, const QLineChartSeries* series,const QSizeF& size, const Domain& domain) const
114 void LineChartItem::calculatePoint(QPointF& point, int index, const QLineChartSeries* series,const QSizeF& size, const Domain& domain) const
@@ -43,12 +43,9 Rectangle {
43 seriesType: Series.SeriesTypePie
43 seriesType: Series.SeriesTypePie
44 }
44 }
45
45
46 // TODO: a bug: drawing order affects the drawing; if you draw chart1 first (by changing the
46 Series {
47 // z-order), then chart2 is not shown at all. By drawing chart2 first, both are visible.
47 seriesType: Series.SeriesTypeLine
48 // Also, if you don't draw line series on chart1 (only pie), both charts are visible.
48 }
49 // Series {
50 // seriesType: Series.SeriesTypeLine
51 // }
52 // TODO:
49 // TODO:
53 // Series {
50 // Series {
54 // seriesType: Series.SeriesTypeBar
51 // seriesType: Series.SeriesTypeBar
General Comments 0
You need to be logged in to leave comments. Login now