summaryrefslogtreecommitdiff
path: root/core/settings/light-and-power/sensor.cpp
Unidiff
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 @@
18..}^=.=       =       ; Public License for more details. 18..}^=.=       =       ; Public License for more details.
19++=   -.     .`     .: 19++=   -.     .`     .:
20 :     =  ...= . :.=- You should have received a copy of the GNU 20 :     =  ...= . :.=- You should have received a copy of the GNU
@@ -27,2 +27,8 @@
27*/ 27*/
28
29#include "calibration.h"
30#include "sensor.h"
31
32#include <opie2/odevice.h>
33
28#include <qlayout.h> 34#include <qlayout.h>
@@ -31,9 +37,4 @@
31 37
32#include <opie/odevice.h>
33
34using namespace Opie; 38using namespace Opie;
35 39
36#include "calibration.h"
37#include "sensor.h"
38
39Sensor::Sensor ( QStringList &params, QWidget *parent, const char *name ) 40Sensor::Sensor ( QStringList &params, QWidget *parent, const char *name )
@@ -41,5 +42,5 @@ Sensor::Sensor ( QStringList &params, QWidget *parent, const char *name )
41{ 42{
42 int steps = 12; 43 int steps = 12;
43 int inter = 2; 44 int inter = 2;
44 45
45 int smin = 40; 46 int smin = 40;
@@ -48,3 +49,3 @@ Sensor::Sensor ( QStringList &params, QWidget *parent, const char *name )
48 int lmax = 255; 49 int lmax = 255;
49 50
50 switch ( params. count ( )) { 51 switch ( params. count ( )) {
@@ -60,3 +61,3 @@ Sensor::Sensor ( QStringList &params, QWidget *parent, const char *name )
60 int yscale = ODevice::inst ( )-> displayBrightnessResolution ( ); 61 int yscale = ODevice::inst ( )-> displayBrightnessResolution ( );
61 62
62 QVBoxLayout *lay = new QVBoxLayout ( frame ); 63 QVBoxLayout *lay = new QVBoxLayout ( frame );
@@ -64,3 +65,3 @@ Sensor::Sensor ( QStringList &params, QWidget *parent, const char *name )
64 m_calib = new Calibration ( frame ); 65 m_calib = new Calibration ( frame );
65 lay-> add ( m_calib ); 66 lay-> add ( m_calib );
66 67
@@ -71,12 +72,12 @@ Sensor::Sensor ( QStringList &params, QWidget *parent, const char *name )
71 m_calib-> setEndPoint ( QPoint ( smax * xscale / 256, lmin * yscale / 256 )); 72 m_calib-> setEndPoint ( QPoint ( smax * xscale / 256, lmin * yscale / 256 ));
72 73
73 interval-> setValue ( inter ); 74 interval-> setValue ( inter );
74 linesteps-> setValue ( steps ); 75 linesteps-> setValue ( steps );
75 76
76 connect ( interval, SIGNAL( valueChanged(int)), m_calib, SLOT( setInterval(int))); 77 connect ( interval, SIGNAL( valueChanged(int)), m_calib, SLOT( setInterval(int)));
77 connect ( linesteps, SIGNAL( valueChanged(int)), m_calib, SLOT( setLineSteps(int))); 78 connect ( linesteps, SIGNAL( valueChanged(int)), m_calib, SLOT( setLineSteps(int)));
78 79
79 connect ( m_calib, SIGNAL( startPointChanged(const QPoint&)), this, SLOT( pointDrag(const QPoint&))); 80 connect ( m_calib, SIGNAL( startPointChanged(const QPoint&)), this, SLOT( pointDrag(const QPoint&)));
80 connect ( m_calib, SIGNAL( endPointChanged(const QPoint&)), this, SLOT( pointDrag(const QPoint&))); 81 connect ( m_calib, SIGNAL( endPointChanged(const QPoint&)), this, SLOT( pointDrag(const QPoint&)));
81} 82}
82 83