diff options
author | Sergio Ahumada <sahumada@blackberry.com> | 2014-03-03 22:59:27 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-04 10:17:32 +0100 |
commit | 96771618f2413de849101b15344e1bb1fd1f7e7f (patch) | |
tree | 58fd03d354f7e62fc5ceb008623390325af23d08 /src/plugins/sensors | |
parent | 0a274451536078366d2b43b91f9566dc748521e7 (diff) |
Fix some typos in comments and documentation
Change-Id: I8541601c0bfe2b7c80e88b4617e8215b266fb0bd
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Diffstat (limited to 'src/plugins/sensors')
-rw-r--r-- | src/plugins/sensors/blackberry/bbguihelper.cpp | 2 | ||||
-rw-r--r-- | src/plugins/sensors/blackberry/bbsensorbackend.h | 4 | ||||
-rw-r--r-- | src/plugins/sensors/blackberry/sensor.h | 2 | ||||
-rw-r--r-- | src/plugins/sensors/generic/generictiltsensor.cpp | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/sensors/blackberry/bbguihelper.cpp b/src/plugins/sensors/blackberry/bbguihelper.cpp index a0b2a38f..8b8e84fa 100644 --- a/src/plugins/sensors/blackberry/bbguihelper.cpp +++ b/src/plugins/sensors/blackberry/bbguihelper.cpp @@ -132,7 +132,7 @@ void BbGuiHelper::readApplicationActiveState() void BbGuiHelper::readOrientation() { // There is no API to get the current orientation at the moment. - // Therefore, we assume that the inital orientation that is set in the environment variable + // Therefore, we assume that the initial orientation that is set in the environment variable // hasn't changed yet. // This assumptions don't always hold, but it is the best we got so far. // The navigator will at least inform us about updates. diff --git a/src/plugins/sensors/blackberry/bbsensorbackend.h b/src/plugins/sensors/blackberry/bbsensorbackend.h index 953d7bcf..bd206e38 100644 --- a/src/plugins/sensors/blackberry/bbsensorbackend.h +++ b/src/plugins/sensors/blackberry/bbsensorbackend.h @@ -80,8 +80,8 @@ protected: void setDevice(const QString &deviceFile, sensor_type_e sensorType); - // This is called while the device file is open during initalization and gives a subclass - // an opportunity to do additional initalization. + // This is called while the device file is open during initialization and gives a subclass + // an opportunity to do additional initialization. virtual void additionalDeviceInit(); // If true is returned here, initSensorInfo() will read the output range from the OS sensor diff --git a/src/plugins/sensors/blackberry/sensor.h b/src/plugins/sensors/blackberry/sensor.h index 7317f076..2e97497f 100644 --- a/src/plugins/sensors/blackberry/sensor.h +++ b/src/plugins/sensors/blackberry/sensor.h @@ -41,7 +41,7 @@ // // This file is a copy of the "sensor.h" header for the BlackBerry Playbook OS. -// It is only inclulded here, because it is not available in the the Playbook NDK. +// It is only inclulded here, because it is not available in the Playbook NDK. // #if !defined(Q_OS_BLACKBERRY_TABLET) #error "This file is supposed to be used only for BlackBerry Playbook OS." diff --git a/src/plugins/sensors/generic/generictiltsensor.cpp b/src/plugins/sensors/generic/generictiltsensor.cpp index 95c8525b..ea85032e 100644 --- a/src/plugins/sensors/generic/generictiltsensor.cpp +++ b/src/plugins/sensors/generic/generictiltsensor.cpp @@ -139,7 +139,7 @@ bool GenericTiltSensor::filter(QAccelerometerReading *reading) #endif qreal xrot = roll - calibratedRoll; qreal yrot = pitch - calibratedPitch; - //get angle beteen 0 and 180 or 0 -180 + //get angle between 0 and 180 or 0 -180 qreal aG = 1 * sin(xrot); qreal aK = 1 * cos(xrot); xrot = qAtan2(aG, aK); |