summaryrefslogtreecommitdiff
path: root/core/launcher/firstuse.cpp
Unidiff
Diffstat (limited to 'core/launcher/firstuse.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/launcher/firstuse.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/core/launcher/firstuse.cpp b/core/launcher/firstuse.cpp
index 2dc6a72..3f769ae 100644
--- a/core/launcher/firstuse.cpp
+++ b/core/launcher/firstuse.cpp
@@ -31,7 +31,6 @@
31#include "serverapp.h" 31#include "serverapp.h"
32#include <qtopia/custom.h> 32#include <qtopia/custom.h>
33#if defined(QPE_NEED_CALIBRATION) 33
34#include "calibrate.h" 34#include "calibrate.h"
35#endif
36#include "documentlist.h" 35#include "documentlist.h"
37 36
@@ -169,10 +168,14 @@ FirstUse::FirstUse(QWidget* parent, const char * name, WFlags wf) :
169#endif 168#endif
170 calcMaxWindowRect(); 169 calcMaxWindowRect();
171#if defined(QPE_NEED_CALIBRATION) 170
171 m_calHandler = ( QWSServer::mouseHandler() && QWSServer::mouseHandler()->inherits("QCalibratedMouseHandler") ) ? true : false;
172
173 if ( m_calHandler) {
172 if ( !QFile::exists("/etc/pointercal") ) { 174 if ( !QFile::exists("/etc/pointercal") ) {
173 needCalibrate = TRUE; 175 needCalibrate = TRUE;
174 grabMouse(); 176 grabMouse();
175 } 177 }
176#endif 178 }
179
177 Config config("locale"); 180 Config config("locale");
178 config.setGroup( "Language"); 181 config.setGroup( "Language");
@@ -492,4 +495,5 @@ void FirstUse::updateButtons()
492 else 495 else
493 next->setText(tr("Next >>")); 496 next->setText(tr("Next >>"));
497
494 next->setEnabled( !waitingForLaunch ); 498 next->setEnabled( !waitingForLaunch );
495} 499}
@@ -505,6 +509,5 @@ void FirstUse::mouseReleaseEvent( QMouseEvent * )
505{ 509{
506 if ( currApp < 0 ) { 510 if ( currApp < 0 ) {
507#if defined(QPE_NEED_CALIBRATION) 511 if ( m_calHandler && needCalibrate ) {
508 if ( needCalibrate ) {
509 releaseMouse(); 512 releaseMouse();
510 Calibrate *cal = new Calibrate; 513 Calibrate *cal = new Calibrate;
@@ -512,5 +515,4 @@ void FirstUse::mouseReleaseEvent( QMouseEvent * )
512 delete cal; 515 delete cal;
513 } 516 }
514#endif
515 nextDialog(); 517 nextDialog();
516 } 518 }