summaryrefslogtreecommitdiff
path: root/examples/bluetooth/lowenergyscanner/serviceinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bluetooth/lowenergyscanner/serviceinfo.h')
-rw-r--r--examples/bluetooth/lowenergyscanner/serviceinfo.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/bluetooth/lowenergyscanner/serviceinfo.h b/examples/bluetooth/lowenergyscanner/serviceinfo.h
index f89b37a0..dfd0b919 100644
--- a/examples/bluetooth/lowenergyscanner/serviceinfo.h
+++ b/examples/bluetooth/lowenergyscanner/serviceinfo.h
@@ -7,6 +7,8 @@
#include <QtCore/qobject.h>
+#include <QtQmlIntegration/qqmlintegration.h>
+
QT_BEGIN_NAMESPACE
class QLowEnergyService;
QT_END_NAMESPACE
@@ -17,6 +19,9 @@ class ServiceInfo: public QObject
Q_PROPERTY(QString serviceName READ getName NOTIFY serviceChanged)
Q_PROPERTY(QString serviceUuid READ getUuid NOTIFY serviceChanged)
Q_PROPERTY(QString serviceType READ getType NOTIFY serviceChanged)
+
+ QML_ANONYMOUS
+
public:
ServiceInfo() = default;
ServiceInfo(QLowEnergyService *service);