From 96771618f2413de849101b15344e1bb1fd1f7e7f Mon Sep 17 00:00:00 2001 From: Sergio Ahumada Date: Mon, 3 Mar 2014 22:59:27 +0100 Subject: Fix some typos in comments and documentation Change-Id: I8541601c0bfe2b7c80e88b4617e8215b266fb0bd Reviewed-by: Mitch Curtis --- src/plugins/sensors/blackberry/bbguihelper.cpp | 2 +- src/plugins/sensors/blackberry/bbsensorbackend.h | 4 ++-- src/plugins/sensors/blackberry/sensor.h | 2 +- src/plugins/sensors/generic/generictiltsensor.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/plugins/sensors') diff --git a/src/plugins/sensors/blackberry/bbguihelper.cpp b/src/plugins/sensors/blackberry/bbguihelper.cpp index a0b2a38..8b8e84f 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 953d7bc..bd206e3 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 7317f07..2e97497 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 95c8525..ea85032 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); -- cgit v1.2.1