##// 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 updateLayout();
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 void PieChartItem::initialize()
89 void PieChartItem::initialize()
65 {
90 {
66 handleSlicesAdded(m_series->slices());
91 handleSlicesAdded(m_series->slices());
@@ -45,10 +45,9 public:
45 public Q_SLOTS:
45 public Q_SLOTS:
46 // from Chart
46 // from Chart
47 virtual void handleGeometryChanged(const QRectF &rect);
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?
48 virtual void handleDomainChanged(qreal minX, qreal maxX, qreal minY, qreal maxY);
49 //virtual void handleDomainChanged(qreal minX, qreal maxX, qreal minY, qreal maxY);
49 virtual void rangeXChanged(qreal min, qreal max, int tickXCount);
50 //virtual void rangeXChanged(qreal min, qreal max, int tickXCount);
50 virtual void rangeYChanged(qreal min, qreal max, int tickYCount);
51 //virtual void rangeYChanged(qreal min, qreal max, int tickYCount);
52
51
53 void initialize();
52 void initialize();
54 void updateLayout();
53 void updateLayout();
@@ -782,9 +782,7 bool QPieSeriesPrivate::setRealValue(qreal &value, qreal newValue, qreal max, qr
782 void QPieSeriesPrivate::scaleDomain(Domain& domain)
782 void QPieSeriesPrivate::scaleDomain(Domain& domain)
783 {
783 {
784 Q_UNUSED(domain);
784 Q_UNUSED(domain);
785 #ifndef QT_NO_DEBUG
785 // does not apply to pie
786 qWarning() << __FILE__<<__FUNCTION__<<"not implemented";
787 #endif
788 }
786 }
789
787
790 Chart* QPieSeriesPrivate::createGraphics(ChartPresenter* presenter)
788 Chart* QPieSeriesPrivate::createGraphics(ChartPresenter* presenter)
General Comments 0
You need to be logged in to leave comments. Login now