diff --git a/src/locationhelper.h b/src/locationhelper.h index 0271f33e0..8c848ad87 100644 --- a/src/locationhelper.h +++ b/src/locationhelper.h @@ -12,7 +12,8 @@ class LocationHelper : public QObject { Q_OBJECT QML_ELEMENT - QML_UNCREATABLE("") + QML_SINGLETON + public: /** Unite two rectanlges. */ Q_INVOKABLE static QRectF unite(const QRectF &r1, const QRectF &r2);