diff --git a/examples/axischart/main.cpp b/examples/axischart/main.cpp index 5576366..f053ec9 100644 --- a/examples/axischart/main.cpp +++ b/examples/axischart/main.cpp @@ -50,10 +50,10 @@ int main(int argc, char *argv[]) axisX->setLabelsAngle(45); axisX->setGridPen(Qt::DashLine); - QChartAxisCategories& categoriesX = axisX->categories(); - categoriesX.insert(0,"low"); - categoriesX.insert(50,"medium"); - categoriesX.insert(100,"High"); + QChartAxisCategories *categoriesX = axisX->categories(); + categoriesX->insert(0,"low"); + categoriesX->insert(50,"medium"); + categoriesX->insert(100,"High"); axisX->setMin(-10); axisX->setMax(2200); @@ -62,10 +62,10 @@ int main(int argc, char *argv[]) axisY->setLabelsAngle(45); axisY->setShadesBrush(Qt::yellow); - QChartAxisCategories& categoriesY = axisY->categories(); - categoriesY.insert(0,"low"); - categoriesY.insert(50,"medium"); - categoriesY.insert(100,"High"); + QChartAxisCategories *categoriesY = axisY->categories(); + categoriesY->insert(0,"low"); + categoriesY->insert(50,"medium"); + categoriesY->insert(100,"High"); axisY->setMin(-10); axisY->setMax(200);