##// END OF EJS Templates
restore zoomlinechart example
Michal Klocek -
r2324:611d357cfff4
parent child
Show More
@@ -47,7 +47,6 int main(int argc, char *argv[])
47 chart->setAnimationOptions(QChart::SeriesAnimations);
47 chart->setAnimationOptions(QChart::SeriesAnimations);
48 chart->legend()->hide();
48 chart->legend()->hide();
49 chart->createDefaultAxes();
49 chart->createDefaultAxes();
50 qobject_cast<QValueAxis*>(chart->axisX())->setNiceNumbersEnabled(true);
51
50
52 ChartView *chartView = new ChartView(chart);
51 ChartView *chartView = new ChartView(chart);
53 chartView->setRenderHint(QPainter::Antialiasing);
52 chartView->setRenderHint(QPainter::Antialiasing);
@@ -59,7 +58,5 int main(int argc, char *argv[])
59 window.grabGesture(Qt::PinchGesture);
58 window.grabGesture(Qt::PinchGesture);
60 window.show();
59 window.show();
61
60
62 qobject_cast<QValueAxis*>(chart->axisX())->setMax(600);
63
64 return a.exec();
61 return a.exec();
65 }
62 }
General Comments 0
You need to be logged in to leave comments. Login now