summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/sensors/blackberry/bbguihelper.cpp2
-rw-r--r--src/plugins/sensors/blackberry/bbsensorbackend.h4
-rw-r--r--src/plugins/sensors/blackberry/sensor.h2
-rw-r--r--src/plugins/sensors/generic/generictiltsensor.cpp2
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);