author | kergoth <kergoth> | 2002-03-18 22:33:56 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-03-18 22:33:56 (UTC) |
commit | e7171ae513696f32a1edfeb41e22ff5b036c0460 (patch) (unidiff) | |
tree | 21297e19e810b5056a461431a0f1d8f57f66049d /core/apps | |
parent | d41e6d2ed4caeabf78ab08bde7d4f5866c9eeb04 (diff) | |
download | opie-e7171ae513696f32a1edfeb41e22ff5b036c0460.zip opie-e7171ae513696f32a1edfeb41e22ff5b036c0460.tar.gz opie-e7171ae513696f32a1edfeb41e22ff5b036c0460.tar.bz2 |
oops
-rw-r--r-- | core/apps/calibrate/calibrate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/apps/calibrate/calibrate.cpp b/core/apps/calibrate/calibrate.cpp index 945749b..8647957 100644 --- a/core/apps/calibrate/calibrate.cpp +++ b/core/apps/calibrate/calibrate.cpp | |||
@@ -32,25 +32,25 @@ | |||
32 | #include <qgfx_qws.h> | 32 | #include <qgfx_qws.h> |
33 | 33 | ||
34 | 34 | ||
35 | Calibrate::Calibrate(QWidget* parent, const char * name, WFlags wf) : | 35 | Calibrate::Calibrate(QWidget* parent, const char * name, WFlags wf) : |
36 | QDialog( parent, name, TRUE, wf | WStyle_Tool | WStyle_Customize | WStyle_StaysOnTop ) | 36 | QDialog( parent, name, TRUE, wf | WStyle_Tool | WStyle_Customize | WStyle_StaysOnTop ) |
37 | { | 37 | { |
38 | showCross = TRUE; | 38 | showCross = TRUE; |
39 | const int offset = 30; | 39 | const int offset = 30; |
40 | QRect desk = qApp->desktop()->geometry(); | 40 | QRect desk = qApp->desktop()->geometry(); |
41 | setGeometry( 0, 0, desk.width(), desk.height() ); | 41 | setGeometry( 0, 0, desk.width(), desk.height() ); |
42 | if ( desk.height() < 250 ) { | 42 | if ( desk.height() < 250 ) { |
43 | int w = desk.height()/3; | 43 | int w = desk.height()/3; |
44 | logo.convertFromImage(Resource::loadImage("launcher/launcher/opielogo").smoothScale(w,w)); | 44 | logo.convertFromImage(Resource::loadImage("launcher/opielogo").smoothScale(w,w)); |
45 | } else { | 45 | } else { |
46 | logo = Resource::loadPixmap( "launcher/launcher/opielogo" ); | 46 | logo = Resource::loadPixmap( "launcher/launcher/opielogo" ); |
47 | } | 47 | } |
48 | cd.screenPoints[QWSPointerCalibrationData::TopLeft] = QPoint( offset, offset ); | 48 | cd.screenPoints[QWSPointerCalibrationData::TopLeft] = QPoint( offset, offset ); |
49 | cd.screenPoints[QWSPointerCalibrationData::BottomLeft] = QPoint( offset, qt_screen->deviceHeight() - offset ); | 49 | cd.screenPoints[QWSPointerCalibrationData::BottomLeft] = QPoint( offset, qt_screen->deviceHeight() - offset ); |
50 | cd.screenPoints[QWSPointerCalibrationData::BottomRight] = QPoint( qt_screen->deviceWidth() - offset, qt_screen->deviceHeight() - offset ); | 50 | cd.screenPoints[QWSPointerCalibrationData::BottomRight] = QPoint( qt_screen->deviceWidth() - offset, qt_screen->deviceHeight() - offset ); |
51 | cd.screenPoints[QWSPointerCalibrationData::TopRight] = QPoint( qt_screen->deviceWidth() - offset, offset ); | 51 | cd.screenPoints[QWSPointerCalibrationData::TopRight] = QPoint( qt_screen->deviceWidth() - offset, offset ); |
52 | cd.screenPoints[QWSPointerCalibrationData::Center] = QPoint( qt_screen->deviceWidth()/2, qt_screen->deviceHeight()/2 ); | 52 | cd.screenPoints[QWSPointerCalibrationData::Center] = QPoint( qt_screen->deviceWidth()/2, qt_screen->deviceHeight()/2 ); |
53 | goodcd = cd; | 53 | goodcd = cd; |
54 | reset(); | 54 | reset(); |
55 | 55 | ||
56 | timer = new QTimer( this ); | 56 | timer = new QTimer( this ); |