From fd78c1dee939c1b41599e9101b065def8910eeb5 2012-04-10 08:54:32 From: Tero Ahola Date: 2012-04-10 08:54:32 Subject: [PATCH] Work-around for a bug in Clang compiler --- diff --git a/src/splinechart/splinechartitem.cpp b/src/splinechart/splinechartitem.cpp index 6d6fd3f..f0f6995 100644 --- a/src/splinechart/splinechartitem.cpp +++ b/src/splinechart/splinechartitem.cpp @@ -74,6 +74,12 @@ QPointF SplineChartItem::calculateGeometryControlPoint(int index) const return XYChartItem::calculateGeometryPoint(m_series->controlPoint(index)); } +void SplineChartItem::setLayout(QVector &points) +{ + // Dummy implementation because of a bug in Clang compiler + XYChartItem::setLayout(points); +} + void SplineChartItem::setLayout(QVector &points, QVector &controlPoints) { if ((points.size()<2) || (controlPoints.size()<2)) { diff --git a/src/splinechart/splinechartitem_p.h b/src/splinechart/splinechartitem_p.h index 8defc7c..8e84dc9 100644 --- a/src/splinechart/splinechartitem_p.h +++ b/src/splinechart/splinechartitem_p.h @@ -41,6 +41,7 @@ public Q_SLOTS: void handleUpdated(); protected: + void setLayout(QVector &points); void setLayout(QVector &points,QVector &controlPoints); void updateLayout(QVector &oldPoints,QVector &newPoints,int index);