##// END OF EJS Templates
Make splinechart compile
Jani Honkonen -
r832:6772dd97cfaa
parent child
Show More
@@ -14,7 +14,7 SUBDIRS += \
14 14 #presenterchart \
15 15 scatterchart \
16 16 scatterinteractions \
17 #splinechart \
17 splinechart \
18 18 stackedbarchart \
19 19 stackedbarchartdrilldown \
20 20 #tablemodelchart \
@@ -76,12 +76,12 SplineWidget::SplineWidget(QWidget *parent)
76 76
77 77 //! [3]
78 78 // create chart view
79 QChartView* chart = new QChartView;
79 QChart* chart = new QChart;
80 80 chart->addSeries(series);
81 81 chart->addSeries(series2);
82 82 chart->addSeries(series3);
83 83
84 chart->setChartTitle("Spline chart example");
84 chart->setTitle("Spline chart example");
85 85 chart->axisX()->setMax(1500);
86 86 chart->axisY()->setMax(500);
87 87
@@ -106,7 +106,8 SplineWidget::SplineWidget(QWidget *parent)
106 106 buttonsLayout->addStretch();
107 107
108 108 QGridLayout* mainLayout = new QGridLayout;
109 mainLayout->addWidget(chart, 1, 0);
109 QChartView *chartView = new QChartView(chart);
110 mainLayout->addWidget(chartView, 1, 0);
110 111 mainLayout->addLayout(buttonsLayout, 1, 1);
111 112 setLayout(mainLayout);
112 113 //! [5]
General Comments 0
You need to be logged in to leave comments. Login now