##// END OF EJS Templates
Correct graphics flags for items
Michal Klocek -
r856:cabe72fb9d4b
parent child
Show More
@@ -45,6 +45,7 PieChartItem::PieChartItem(QPieSeries *series, ChartPresenter* presenter)
45
45
46 // Note: the following does not affect as long as the item does not have anything to paint
46 // Note: the following does not affect as long as the item does not have anything to paint
47 setZValue(ChartPresenter::PieSeriesZValue);
47 setZValue(ChartPresenter::PieSeriesZValue);
48 setFlags(QGraphicsItem::ItemClipsChildrenToShape);
48 }
49 }
49
50
50 PieChartItem::~PieChartItem()
51 PieChartItem::~PieChartItem()
@@ -37,7 +37,6 ScatterChartItem::ScatterChartItem(QScatterSeries *series, ChartPresenter *prese
37 QObject::connect(m_series,SIGNAL(updated()), this, SLOT(handleUpdated()));
37 QObject::connect(m_series,SIGNAL(updated()), this, SLOT(handleUpdated()));
38
38
39 setZValue(ChartPresenter::ScatterSeriesZValue);
39 setZValue(ChartPresenter::ScatterSeriesZValue);
40 setFlags(QGraphicsItem::ItemHasNoContents);
41 setFlags(QGraphicsItem::ItemClipsChildrenToShape);
40 setFlags(QGraphicsItem::ItemClipsChildrenToShape);
42
41
43 handleUpdated();
42 handleUpdated();
General Comments 0
You need to be logged in to leave comments. Login now