##// END OF EJS Templates
Fixed a compilation issue in axis example
Tero Ahola -
r501:6973892b62db
parent child
Show More
@@ -50,10 +50,10 int main(int argc, char *argv[])
50 axisX->setLabelsAngle(45);
50 axisX->setLabelsAngle(45);
51 axisX->setGridPen(Qt::DashLine);
51 axisX->setGridPen(Qt::DashLine);
52
52
53 QChartAxisCategories& categoriesX = axisX->categories();
53 QChartAxisCategories *categoriesX = axisX->categories();
54 categoriesX.insert(0,"low");
54 categoriesX->insert(0,"low");
55 categoriesX.insert(50,"medium");
55 categoriesX->insert(50,"medium");
56 categoriesX.insert(100,"High");
56 categoriesX->insert(100,"High");
57
57
58 axisX->setMin(-10);
58 axisX->setMin(-10);
59 axisX->setMax(2200);
59 axisX->setMax(2200);
@@ -62,10 +62,10 int main(int argc, char *argv[])
62 axisY->setLabelsAngle(45);
62 axisY->setLabelsAngle(45);
63 axisY->setShadesBrush(Qt::yellow);
63 axisY->setShadesBrush(Qt::yellow);
64
64
65 QChartAxisCategories& categoriesY = axisY->categories();
65 QChartAxisCategories *categoriesY = axisY->categories();
66 categoriesY.insert(0,"low");
66 categoriesY->insert(0,"low");
67 categoriesY.insert(50,"medium");
67 categoriesY->insert(50,"medium");
68 categoriesY.insert(100,"High");
68 categoriesY->insert(100,"High");
69
69
70 axisY->setMin(-10);
70 axisY->setMin(-10);
71 axisY->setMax(200);
71 axisY->setMax(200);
General Comments 0
You need to be logged in to leave comments. Login now