summaryrefslogtreecommitdiff
path: root/core/settings/light-and-power/sensor.cpp
Side-by-side diff
Diffstat (limited to 'core/settings/light-and-power/sensor.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/settings/light-and-power/sensor.cpp31
1 files changed, 16 insertions, 15 deletions
diff --git a/core/settings/light-and-power/sensor.cpp b/core/settings/light-and-power/sensor.cpp
index 013e655..53c3aed 100644
--- a/core/settings/light-and-power/sensor.cpp
+++ b/core/settings/light-and-power/sensor.cpp
@@ -18,3 +18,3 @@
..}^=.=       =       ; Public License for more details.
-++=   -.     .`     .:
+++=   -.     .`     .:
 :     =  ...= . :.=- You should have received a copy of the GNU
@@ -27,2 +27,8 @@
*/
+
+#include "calibration.h"
+#include "sensor.h"
+
+#include <opie2/odevice.h>
+
#include <qlayout.h>
@@ -31,9 +37,4 @@
-#include <opie/odevice.h>
-
using namespace Opie;
-#include "calibration.h"
-#include "sensor.h"
-
Sensor::Sensor ( QStringList &params, QWidget *parent, const char *name )
@@ -41,5 +42,5 @@ Sensor::Sensor ( QStringList &params, QWidget *parent, const char *name )
{
- int steps = 12;
+ int steps = 12;
int inter = 2;
-
+
int smin = 40;
@@ -48,3 +49,3 @@ Sensor::Sensor ( QStringList &params, QWidget *parent, const char *name )
int lmax = 255;
-
+
switch ( params. count ( )) {
@@ -60,3 +61,3 @@ Sensor::Sensor ( QStringList &params, QWidget *parent, const char *name )
int yscale = ODevice::inst ( )-> displayBrightnessResolution ( );
-
+
QVBoxLayout *lay = new QVBoxLayout ( frame );
@@ -64,3 +65,3 @@ Sensor::Sensor ( QStringList &params, QWidget *parent, const char *name )
m_calib = new Calibration ( frame );
- lay-> add ( m_calib );
+ lay-> add ( m_calib );
@@ -71,12 +72,12 @@ Sensor::Sensor ( QStringList &params, QWidget *parent, const char *name )
m_calib-> setEndPoint ( QPoint ( smax * xscale / 256, lmin * yscale / 256 ));
-
+
interval-> setValue ( inter );
linesteps-> setValue ( steps );
-
+
connect ( interval, SIGNAL( valueChanged(int)), m_calib, SLOT( setInterval(int)));
connect ( linesteps, SIGNAL( valueChanged(int)), m_calib, SLOT( setLineSteps(int)));
-
+
connect ( m_calib, SIGNAL( startPointChanged(const QPoint&)), this, SLOT( pointDrag(const QPoint&)));
connect ( m_calib, SIGNAL( endPointChanged(const QPoint&)), this, SLOT( pointDrag(const QPoint&)));
-}
+}