summaryrefslogtreecommitdiff
path: root/examples/sensors/sensor_explorer/import/sensoritem.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sensors/sensor_explorer/import/sensoritem.h')
-rw-r--r--examples/sensors/sensor_explorer/import/sensoritem.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/sensors/sensor_explorer/import/sensoritem.h b/examples/sensors/sensor_explorer/import/sensoritem.h
index e2c5cdf..0931367 100644
--- a/examples/sensors/sensor_explorer/import/sensoritem.h
+++ b/examples/sensors/sensor_explorer/import/sensoritem.h
@@ -42,7 +42,7 @@
#ifndef QSENSORITEM_H
#define QSENSORITEM_H
-#include <QtDeclarative/qdeclarative.h>
+#include <QtQml/qqml.h>
#include <QtCore/QString>
#include "propertyinfo.h"
@@ -54,7 +54,7 @@ class QSensorItem : public QObject
Q_OBJECT
Q_PROPERTY(bool start READ start WRITE setStart NOTIFY startChanged)
Q_PROPERTY(QString id READ id CONSTANT)
- Q_PROPERTY(QDeclarativeListProperty<QPropertyInfo> properties READ properties NOTIFY propertiesChanged)
+ Q_PROPERTY(QQmlListProperty<QPropertyInfo> properties READ properties NOTIFY propertiesChanged)
public:
QSensorItem(QObject* parent = 0);
QSensorItem(QSensor* sensor, QObject* parent = 0);
@@ -72,7 +72,7 @@ private:
QString id();
bool start();
void setStart(bool run);
- QDeclarativeListProperty<QPropertyInfo> properties();
+ QQmlListProperty<QPropertyInfo> properties();
QString convertValue(const QString& type, const QVariant& val);
bool isWriteable(const QString& propertyname);
bool ignoreProperty(const QString& propertyname);