From e228113016abd6f75824633da9520c1ec1763f23 Mon Sep 17 00:00:00 2001 From: zautrix Date: Sat, 17 Sep 2005 21:37:24 +0000 Subject: aa --- (limited to 'kalarmd') diff --git a/kalarmd/simplealarmdaemonimpl.cpp b/kalarmd/simplealarmdaemonimpl.cpp index eff96eb..2acfacf 100644 --- a/kalarmd/simplealarmdaemonimpl.cpp +++ b/kalarmd/simplealarmdaemonimpl.cpp @@ -68,7 +68,11 @@ SimpleAlarmDaemonImpl::SimpleAlarmDaemonImpl( QWidget *parent ) mPopUp->insertItem( "Multi Sync", this, SLOT ( ringSync() ) ); mTimerPopUp = new QPopupMenu( this ); QFont fon = mTimerPopUp->font(); - fon.setPointSize( fon.pointSize() *3/2 ); + int points = 16; + if ( QApplication::desktop()->width() < 480 ) + points = 12; + fon.setPointSize( points ); + //qDebug("point s %d ", fon.pointSize()); mTimerPopUp->setFont( fon ); mPopUp->setFont( fon ); mBeepPopUp = new QPopupMenu( this ); @@ -312,14 +316,12 @@ void SimpleAlarmDaemonImpl::recieve( const QCString& msg, const QByteArray& ) mAlarmMessage = "Procedure Alarm\nError - File not found\n"; mAlarmMessage += mess.mid( 10+len+3+9 ); } else { - { - QCopEnvelope e("QPE/Application/kopi", "-writeFileSilent"); - } //qDebug("-----system command %s ",tempfilename.latin1() ); if ( vfork () == 0 ) { execl ( tempfilename.latin1(), 0 ); return; } + QTimer::singleShot( 10000, this, SLOT ( writeFile() ) ); return; } @@ -345,7 +347,7 @@ void SimpleAlarmDaemonImpl::recieve( const QCString& msg, const QByteArray& ) mAlarmMessage = mess.mid( 9 ) ; } - writeFile(); + QTimer::singleShot( 10000, this, SLOT ( writeFile() ) ); startAlarm( mAlarmMessage, filename ); } @@ -648,7 +650,7 @@ void SimpleAlarmDaemonImpl::newCountdown() } void SimpleAlarmDaemonImpl::simulate() { - writeFile(); + QTimer::singleShot( 10000, this, SLOT ( writeFile() ) ); QString filename = getenv("QPEDIR") ; filename += "/pics/kdepim/korganizer/koalarm.wav"; startAlarm("Alarm simulation", filename ); -- cgit v0.9.0.2