author | zautrix <zautrix> | 2005-09-17 21:37:24 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-09-17 21:37:24 (UTC) |
commit | e228113016abd6f75824633da9520c1ec1763f23 (patch) (side-by-side diff) | |
tree | f574255c93d80de4461c6c2743d4ad0c80102144 /kalarmd/simplealarmdaemonimpl.cpp | |
parent | 2cde25d8061acd536bccd698722952ce8555f5db (diff) | |
download | kdepimpi-e228113016abd6f75824633da9520c1ec1763f23.zip kdepimpi-e228113016abd6f75824633da9520c1ec1763f23.tar.gz kdepimpi-e228113016abd6f75824633da9520c1ec1763f23.tar.bz2 |
aa
Diffstat (limited to 'kalarmd/simplealarmdaemonimpl.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | kalarmd/simplealarmdaemonimpl.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/kalarmd/simplealarmdaemonimpl.cpp b/kalarmd/simplealarmdaemonimpl.cpp index eff96eb..2acfacf 100644 --- a/kalarmd/simplealarmdaemonimpl.cpp +++ b/kalarmd/simplealarmdaemonimpl.cpp @@ -67,9 +67,13 @@ SimpleAlarmDaemonImpl::SimpleAlarmDaemonImpl( QWidget *parent ) mPopUp->insertSeparator(); 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 ); mSoundPopUp = new QPopupMenu( this ); @@ -311,16 +315,14 @@ void SimpleAlarmDaemonImpl::recieve( const QCString& msg, const QByteArray& ) if ( error ) { 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; } //qDebug("+++++++system command %s ",tempfilename.latin1() ); @@ -344,9 +346,9 @@ void SimpleAlarmDaemonImpl::recieve( const QCString& msg, const QByteArray& ) if ( mess.left( 9 ) == "cal_alarm") { mAlarmMessage = mess.mid( 9 ) ; } - writeFile(); + QTimer::singleShot( 10000, this, SLOT ( writeFile() ) ); startAlarm( mAlarmMessage, filename ); } @@ -647,9 +649,9 @@ void SimpleAlarmDaemonImpl::newCountdown() //recieve("cal_alarm", 10 ); } void SimpleAlarmDaemonImpl::simulate() { - writeFile(); + QTimer::singleShot( 10000, this, SLOT ( writeFile() ) ); QString filename = getenv("QPEDIR") ; filename += "/pics/kdepim/korganizer/koalarm.wav"; startAlarm("Alarm simulation", filename ); } |