From 12a8e69d76023719f3a77b2d2b952ea8fa651d89 2014-11-26 08:15:00 From: Titta Heikkala Date: 2014-11-26 08:15:00 Subject: [PATCH] Fix donutbreakdown example Using static member in a function made compilation fail. Change-Id: I5aff56e331ca5d4a977342cfa7dfa9017857478c Task-number: QTRD-3437 Reviewed-by: Miikka Heikkinen --- 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) {