##// END OF EJS Templates
Fix axes issues with oscilloscope demos...
Titta Heikkala -
r2694:638297e957ee
parent child
Show More
@@ -28,6 +28,7
28 QTCOMMERCIALCHART_USE_NAMESPACE
28 QTCOMMERCIALCHART_USE_NAMESPACE
29
29
30 Q_DECLARE_METATYPE(QAbstractSeries *)
30 Q_DECLARE_METATYPE(QAbstractSeries *)
31 Q_DECLARE_METATYPE(QAbstractAxis *)
31
32
32 DataSource::DataSource(QDeclarativeView *appViewer, QObject *parent) :
33 DataSource::DataSource(QDeclarativeView *appViewer, QObject *parent) :
33 QObject(parent),
34 QObject(parent),
@@ -35,6 +36,7 DataSource::DataSource(QDeclarativeView *appViewer, QObject *parent) :
35 m_index(-1)
36 m_index(-1)
36 {
37 {
37 qRegisterMetaType<QAbstractSeries*>();
38 qRegisterMetaType<QAbstractSeries*>();
39 qRegisterMetaType<QAbstractAxis*>();
38
40
39 generateData(0, 5, 1024);
41 generateData(0, 5, 1024);
40 }
42 }
@@ -29,6 +29,7
29 QTCOMMERCIALCHART_USE_NAMESPACE
29 QTCOMMERCIALCHART_USE_NAMESPACE
30
30
31 Q_DECLARE_METATYPE(QAbstractSeries *)
31 Q_DECLARE_METATYPE(QAbstractSeries *)
32 Q_DECLARE_METATYPE(QAbstractAxis *)
32
33
33 DataSource::DataSource(QQuickView *appViewer, QObject *parent) :
34 DataSource::DataSource(QQuickView *appViewer, QObject *parent) :
34 QObject(parent),
35 QObject(parent),
@@ -36,6 +37,7 DataSource::DataSource(QQuickView *appViewer, QObject *parent) :
36 m_index(-1)
37 m_index(-1)
37 {
38 {
38 qRegisterMetaType<QAbstractSeries*>();
39 qRegisterMetaType<QAbstractSeries*>();
40 qRegisterMetaType<QAbstractAxis*>();
39
41
40 generateData(0, 5, 1024);
42 generateData(0, 5, 1024);
41 }
43 }
General Comments 0
You need to be logged in to leave comments. Login now