summaryrefslogtreecommitdiff
path: root/core/settings/light-and-power/calibration.cpp
Unidiff
Diffstat (limited to 'core/settings/light-and-power/calibration.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/settings/light-and-power/calibration.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/settings/light-and-power/calibration.cpp b/core/settings/light-and-power/calibration.cpp
index c5377d0..504520e 100644
--- a/core/settings/light-and-power/calibration.cpp
+++ b/core/settings/light-and-power/calibration.cpp
@@ -7,49 +7,48 @@
7.> <`_,   >  .   <= redistribute it and/or modify it under 7.> <`_,   >  .   <= redistribute it and/or modify it under
8:`=1 )Y*s>-.--   : the terms of the GNU General Public 8:`=1 )Y*s>-.--   : the terms of the GNU General Public
9.="- .-=="i,     .._ License as published by the Free Software 9.="- .-=="i,     .._ License as published by the Free Software
10 - .   .-<_>     .<> Foundation; either version 2 of the License, 10 - .   .-<_>     .<> Foundation; either version 2 of the License,
11     ._= =}       : or (at your option) any later version. 11     ._= =}       : or (at your option) any later version.
12    .%`+i>       _;_. 12    .%`+i>       _;_.
13    .i_,=:_.      -<s. This file is distributed in the hope that 13    .i_,=:_.      -<s. This file is distributed in the hope that
14     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 14     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
15    : ..    .:,     . . . without even the implied warranty of 15    : ..    .:,     . . . without even the implied warranty of
16    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 16    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
17  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU General 17  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU General
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
21 -.   .:....=;==+<; General Public License along with this file; 21 -.   .:....=;==+<; General Public License along with this file;
22  -_. . .   )=.  = see the file COPYING. If not, write to the 22  -_. . .   )=.  = see the file COPYING. If not, write to the
23    --        :-=` Free Software Foundation, Inc., 23    --        :-=` Free Software Foundation, Inc.,
24 59 Temple Place - Suite 330, 24 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA. 25 Boston, MA 02111-1307, USA.
26 26
27*/ 27*/
28#include "calibration.h" 28#include "calibration.h"
29 29
30#include <qpainter.h> 30#include <qpainter.h>
31#include <qpalette.h>
32#include <qpixmap.h> 31#include <qpixmap.h>
33 32
34#define BRD 3 33#define BRD 3
35 34
36Calibration::Calibration ( QWidget *parent, const char *name, WFlags fl ) 35Calibration::Calibration ( QWidget *parent, const char *name, WFlags fl )
37 : QWidget ( parent, name, fl | WRepaintNoErase ) 36 : QWidget ( parent, name, fl | WRepaintNoErase )
38{ 37{
39 setBackgroundMode ( NoBackground ); 38 setBackgroundMode ( NoBackground );
40 39
41 m_scale = QSize ( 256, 256 ); 40 m_scale = QSize ( 256, 256 );
42 m_steps = 5; 41 m_steps = 5;
43 m_dragged = -1; 42 m_dragged = -1;
44 m_interval = 5; 43 m_interval = 5;
45 44
46 m_p [0] = QPoint ( 0, 0 ); 45 m_p [0] = QPoint ( 0, 0 );
47 m_p [1] = QPoint ( 255, 255 ); 46 m_p [1] = QPoint ( 255, 255 );
48} 47}
49 48
50Calibration::~Calibration ( ) 49Calibration::~Calibration ( )
51{ 50{
52} 51}
53 52
54void Calibration::setScale ( const QSize &s ) 53void Calibration::setScale ( const QSize &s )
55{ 54{