summaryrefslogtreecommitdiffstats
path: root/src/imports/sensors/qmlmagnetometer.h
diff options
context:
space:
mode:
authorThomas McGuire <thomas.mcguire.qnx@kdab.com>2013-01-31 18:59:24 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-08 11:17:51 +0100
commit2dba878107fbe290782af720981ce28ec3723e7a (patch)
treecfd0ef94263c7cf45a61a2eb3cf33a00adb66cb5 /src/imports/sensors/qmlmagnetometer.h
parent034fda27751b506ee13caf18820d07b73b95c915 (diff)
Convert QMagnetometer::returnGeoValues to a proper property
Change-Id: I39cde0046e8a3fc77edbcf5c9510e2dcf6c731c7 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
Diffstat (limited to 'src/imports/sensors/qmlmagnetometer.h')
-rw-r--r--src/imports/sensors/qmlmagnetometer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/imports/sensors/qmlmagnetometer.h b/src/imports/sensors/qmlmagnetometer.h
index a008a36c..6e5facda 100644
--- a/src/imports/sensors/qmlmagnetometer.h
+++ b/src/imports/sensors/qmlmagnetometer.h
@@ -51,6 +51,7 @@ class QMagnetometer;
class QmlMagnetometer : public QmlSensor
{
Q_OBJECT
+ Q_PROPERTY(bool returnGeoValues READ returnGeoValues WRITE setReturnGeoValues NOTIFY returnGeoValuesChanged)
public:
explicit QmlMagnetometer(QObject *parent = 0);
~QmlMagnetometer();
@@ -58,6 +59,8 @@ public:
bool returnGeoValues() const;
void setReturnGeoValues(bool geo);
+Q_SIGNALS:
+ void returnGeoValuesChanged(bool returnGeoValues);
private:
QSensor *sensor() const Q_DECL_OVERRIDE;