##// END OF EJS Templates
Work-around for a bug in Clang compiler
Tero Ahola -
r946:fd78c1dee939
parent child
Show More
@@ -74,6 +74,12 QPointF SplineChartItem::calculateGeometryControlPoint(int index) const
74 return XYChartItem::calculateGeometryPoint(m_series->controlPoint(index));
74 return XYChartItem::calculateGeometryPoint(m_series->controlPoint(index));
75 }
75 }
76
76
77 void SplineChartItem::setLayout(QVector<QPointF> &points)
78 {
79 // Dummy implementation because of a bug in Clang compiler
80 XYChartItem::setLayout(points);
81 }
82
77 void SplineChartItem::setLayout(QVector<QPointF> &points, QVector<QPointF> &controlPoints)
83 void SplineChartItem::setLayout(QVector<QPointF> &points, QVector<QPointF> &controlPoints)
78 {
84 {
79 if ((points.size()<2) || (controlPoints.size()<2)) {
85 if ((points.size()<2) || (controlPoints.size()<2)) {
@@ -41,6 +41,7 public Q_SLOTS:
41 void handleUpdated();
41 void handleUpdated();
42
42
43 protected:
43 protected:
44 void setLayout(QVector<QPointF> &points);
44 void setLayout(QVector<QPointF> &points,QVector<QPointF> &controlPoints);
45 void setLayout(QVector<QPointF> &points,QVector<QPointF> &controlPoints);
45 void updateLayout(QVector<QPointF> &oldPoints,QVector<QPointF> &newPoints,int index);
46 void updateLayout(QVector<QPointF> &oldPoints,QVector<QPointF> &newPoints,int index);
46
47
General Comments 0
You need to be logged in to leave comments. Login now