##// END OF EJS Templates
Remove scaledomain ect. warnings from pie. Not going to be implemented (for now at least).
Jani Honkonen -
r1191:6223c1214e9d
parent child
Show More
@@ -61,6 +61,31 void PieChartItem::handleGeometryChanged(const QRectF& rect)
61 61 updateLayout();
62 62 }
63 63
64 void PieChartItem::handleDomainChanged(qreal minX, qreal maxX, qreal minY, qreal maxY)
65 {
66 Q_UNUSED(minX);
67 Q_UNUSED(maxX);
68 Q_UNUSED(minY);
69 Q_UNUSED(maxY);
70 // does not apply to pie
71 }
72
73 void PieChartItem::rangeXChanged(qreal min, qreal max, int tickXCount)
74 {
75 Q_UNUSED(min);
76 Q_UNUSED(max);
77 Q_UNUSED(tickXCount);
78 // does not apply to pie
79 }
80
81 void PieChartItem::rangeYChanged(qreal min, qreal max, int tickYCount)
82 {
83 Q_UNUSED(min);
84 Q_UNUSED(max);
85 Q_UNUSED(tickYCount);
86 // does not apply to pie
87 }
88
64 89 void PieChartItem::initialize()
65 90 {
66 91 handleSlicesAdded(m_series->slices());
@@ -45,10 +45,9 public:
45 45 public Q_SLOTS:
46 46 // from Chart
47 47 virtual void handleGeometryChanged(const QRectF &rect);
48 // TODO: Do we have actual need for these at all? What is the use case for pie?
49 //virtual void handleDomainChanged(qreal minX, qreal maxX, qreal minY, qreal maxY);
50 //virtual void rangeXChanged(qreal min, qreal max, int tickXCount);
51 //virtual void rangeYChanged(qreal min, qreal max, int tickYCount);
48 virtual void handleDomainChanged(qreal minX, qreal maxX, qreal minY, qreal maxY);
49 virtual void rangeXChanged(qreal min, qreal max, int tickXCount);
50 virtual void rangeYChanged(qreal min, qreal max, int tickYCount);
52 51
53 52 void initialize();
54 53 void updateLayout();
@@ -782,9 +782,7 bool QPieSeriesPrivate::setRealValue(qreal &value, qreal newValue, qreal max, qr
782 782 void QPieSeriesPrivate::scaleDomain(Domain& domain)
783 783 {
784 784 Q_UNUSED(domain);
785 #ifndef QT_NO_DEBUG
786 qWarning() << __FILE__<<__FUNCTION__<<"not implemented";
787 #endif
785 // does not apply to pie
788 786 }
789 787
790 788 Chart* QPieSeriesPrivate::createGraphics(ChartPresenter* presenter)
General Comments 0
You need to be logged in to leave comments. Login now