@@ -28,12 +28,15 | |||||
28 |
|
28 | |||
29 | QTCOMMERCIALCHART_USE_NAMESPACE |
|
29 | QTCOMMERCIALCHART_USE_NAMESPACE | |
30 |
|
30 | |||
|
31 | Q_DECLARE_METATYPE(QAbstractSeries *) | |||
|
32 | ||||
31 | DataSource::DataSource(QDeclarativeView *appViewer, QObject *parent) : |
|
33 | DataSource::DataSource(QDeclarativeView *appViewer, QObject *parent) : | |
32 | QObject(parent), |
|
34 | QObject(parent), | |
33 | m_appViewer(appViewer), |
|
35 | m_appViewer(appViewer), | |
34 | m_index(-1) |
|
36 | m_index(-1) | |
35 | { |
|
37 | { | |
36 | // generate |
|
38 | qRegisterMetaType<QAbstractSeries*>(); | |
|
39 | ||||
37 | generateData(0, 5, 1024); |
|
40 | generateData(0, 5, 1024); | |
38 | } |
|
41 | } | |
39 |
|
42 |
General Comments 0
You need to be logged in to leave comments.
Login now