diff --git a/examples/charts/donutbreakdown/donutbreakdownchart.cpp b/examples/charts/donutbreakdown/donutbreakdownchart.cpp index d4c37b8..46c9737 100644 --- a/examples/charts/donutbreakdown/donutbreakdownchart.cpp +++ b/examples/charts/donutbreakdown/donutbreakdownchart.cpp @@ -89,7 +89,7 @@ void DonutBreakdownChart::recalculateAngles() void DonutBreakdownChart::updateLegendMarkers() { // go through all markers - foreach (QAbstractSeries *series, QChart::series()) { + foreach (QAbstractSeries *series, series()) { foreach (QLegendMarker *marker, legend()->markers(series)) { QPieLegendMarker *pieMarker = qobject_cast(marker); if (series == m_mainSeries) {