@@ -10,7 +10,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||
|
10 | 10 | |
|
11 | 11 | //TODO: optimize : remove points which are not visible |
|
12 | 12 | |
|
13 |
AreaChartItem::AreaChartItem(QAreaSeries* areaSeries,ChartPresenter *presenter):Chart(presenter), |
|
|
13 | AreaChartItem::AreaChartItem(QAreaSeries* areaSeries,ChartPresenter *presenter):ChartItem(presenter), | |
|
14 | 14 | m_series(areaSeries), |
|
15 | 15 | m_upper(0), |
|
16 | 16 | m_lower(0), |
@@ -99,8 +99,12 void AreaChartItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *opt | |||
|
99 | 99 | Q_UNUSED(option) |
|
100 | 100 | |
|
101 | 101 | painter->save(); |
|
102 | painter->setPen(m_linePen); | |
|
103 | painter->setBrush(m_brush); | |
|
102 | QPen pen; | |
|
103 | pen.setCosmetic(false); | |
|
104 | pen.setWidth(4); | |
|
105 | pen.setColor(qRgb(200,0,250)); | |
|
106 | painter->setPen(pen); | |
|
107 | //painter->setBrush(m_brush); | |
|
104 | 108 | painter->setClipRect(m_clipRect); |
|
105 | 109 | painter->drawPath(m_path); |
|
106 | 110 | if(m_pointsVisible){ |
@@ -10,7 +10,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||
|
10 | 10 | class QAreaSeries; |
|
11 | 11 | class AreaChartItem; |
|
12 | 12 | |
|
13 |
class AreaChartItem : public Chart |
|
|
13 | class AreaChartItem : public ChartItem | |
|
14 | 14 | { |
|
15 | 15 | Q_OBJECT |
|
16 | 16 | public: |
@@ -76,8 +76,7 void QPieSeriesPrivate::updateDerivativeData() | |||
|
76 | 76 | |
|
77 | 77 | void QPieSeriesPrivate::sliceChanged() |
|
78 | 78 | { |
|
79 |
Q |
|
|
80 | Q_ASSERT(m_slices.contains(slice)); | |
|
79 | Q_ASSERT(m_slices.contains(qobject_cast<QPieSlice *>(sender()))); | |
|
81 | 80 | updateDerivativeData(); |
|
82 | 81 | } |
|
83 | 82 |
General Comments 0
You need to be logged in to leave comments.
Login now