From 1b4836ba28ca57947d37699fc67cddd74fb29fbe Mon Sep 17 00:00:00 2001 From: kergoth Date: Mon, 24 Mar 2003 01:24:56 +0000 Subject: Remove ifdefs based on device as the means by which we decide to run calibrate, and instead check if the mouse handler inherits from QCalibratedMouseHandler. --- (limited to 'core/opie-login') diff --git a/core/opie-login/main.cpp b/core/opie-login/main.cpp index 1800be0..9c40fc4 100644 --- a/core/opie-login/main.cpp +++ b/core/opie-login/main.cpp @@ -323,14 +323,14 @@ int login_main ( int argc, char **argv, pid_t ppid ) ODevice::inst ( )-> setSoftSuspend ( true ); -#if defined(QT_QWS_CASSIOPEIA) || defined(QT_QWS_IPAQ) || defined(QT_QWS_SL5XXX) - if ( !QFile::exists ( "/etc/pointercal" )) { - // Make sure calibration widget starts on top. - Calibrate *cal = new Calibrate; - cal-> exec ( ); - delete cal; + if ( QWSServer::mouseHandler() ->inherits("QCalibratedMouseHandler") ) { + if ( !QFile::exists ( "/etc/pointercal" )) { + // Make sure calibration widget starts on top. + Calibrate *cal = new Calibrate; + cal-> exec ( ); + delete cal; + } } -#endif LoginScreenSaver *saver = new LoginScreenSaver; -- cgit v0.9.0.2