fixed android setup
added missing c++11 methods
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#ifndef ACCELEROMETERSENSOR_H
|
||||
#define ACCELEROMETERSENSOR_H
|
||||
#ifndef ACCELEROMETERSENSORANDROID_H
|
||||
#define ACCELEROMETERSENSORANDROID_H
|
||||
|
||||
|
||||
#ifdef ANDROID
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
#include <QtSensors/QAccelerometer>
|
||||
|
||||
|
||||
#include "../AccelerometerSensor.h"
|
||||
|
||||
class AccelerometerSensorAndroid : public AccelerometerSensor {
|
||||
|
||||
@@ -26,8 +26,8 @@ private:
|
||||
public:
|
||||
|
||||
/** singleton access */
|
||||
static AccelerometerSensor& get() {
|
||||
static AccelerometerSensor acc;
|
||||
static AccelerometerSensorAndroid& get() {
|
||||
static AccelerometerSensorAndroid acc;
|
||||
return acc;
|
||||
}
|
||||
|
||||
@@ -44,12 +44,13 @@ public:
|
||||
}
|
||||
|
||||
void stop() override {
|
||||
throw "todo";
|
||||
throw "TODO";
|
||||
}
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif ANDROID
|
||||
|
||||
#endif // ACCELEROMETERSENSOR_H
|
||||
#endif // ACCELEROMETERSENSORANDROID_H
|
||||
|
||||
Reference in New Issue
Block a user