author | zautrix <zautrix> | 2005-03-26 22:32:32 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-26 22:32:32 (UTC) |
commit | 46b94158f6b115e175516a8432ec5b71f1403834 (patch) (unidiff) | |
tree | b075219da97f93d4e09863fda822722872f8b94b /kalarmd/simplealarmdaemonimpl.cpp | |
parent | 7177e62052b732f901eca6627825d0b38d8438be (diff) | |
download | kdepimpi-46b94158f6b115e175516a8432ec5b71f1403834.zip kdepimpi-46b94158f6b115e175516a8432ec5b71f1403834.tar.gz kdepimpi-46b94158f6b115e175516a8432ec5b71f1403834.tar.bz2 |
fixes
Diffstat (limited to 'kalarmd/simplealarmdaemonimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kalarmd/simplealarmdaemonimpl.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/kalarmd/simplealarmdaemonimpl.cpp b/kalarmd/simplealarmdaemonimpl.cpp index e8ec033..b3da428 100644 --- a/kalarmd/simplealarmdaemonimpl.cpp +++ b/kalarmd/simplealarmdaemonimpl.cpp | |||
@@ -360,9 +360,9 @@ void SimpleAlarmDaemonImpl::fillTimerPopUp() | |||
360 | if ( mTimerPopupConf == mTimerTime ) { | 360 | if ( mTimerPopupConf == mTimerTime ) { |
361 | if ( mTimerTime ) { | 361 | if ( mTimerTime ) { |
362 | int secs = QDateTime::currentDateTime().secsTo ( mRunningTimer ); | 362 | int secs = QDateTime::currentDateTime().secsTo ( mRunningTimer ); |
363 | QTime t ( secs/3600, (secs/60)%60, secs%60 ); | 363 | QTime t ( secs/3600, (secs/60)%60, secs%60 ); |
364 | mTimerPopUp->changeItem ( 1 , t.toString() + " (remaining time)"); | 364 | mTimerPopUp->changeItem ( 1 , t.toString() + " (countdown)"); |
365 | } | 365 | } |
366 | else { | 366 | else { |
367 | QString text = mCustomText.stripWhiteSpace (); | 367 | QString text = mCustomText.stripWhiteSpace (); |
368 | int in = text.find( " " ); | 368 | int in = text.find( " " ); |
@@ -378,10 +378,10 @@ void SimpleAlarmDaemonImpl::fillTimerPopUp() | |||
378 | QTime t ( secs/3600, (secs/60)%60, secs%60 ); | 378 | QTime t ( secs/3600, (secs/60)%60, secs%60 ); |
379 | 379 | ||
380 | 380 | ||
381 | mTimerPopUp->insertItem( "Stop timer "+ mRunningTimerText , 0 ); | 381 | mTimerPopUp->insertItem( "Stop timer "+ mRunningTimerText , 0 ); |
382 | mTimerPopUp->insertItem( t.toString() + " (remaining time)",1); | 382 | mTimerPopUp->insertItem( t.toString() + " (countdown)",1); |
383 | mTimerPopUp->insertItem( mRunningTimer.time().toString() + " (alarm time)",2); | 383 | mTimerPopUp->insertItem( mRunningTimer.time().toString() + " (alarm)",2); |
384 | } else { | 384 | } else { |
385 | 385 | ||
386 | QString fileName = QDir::homeDirPath() +"/.kopialarmtimerrc"; | 386 | QString fileName = QDir::homeDirPath() +"/.kopialarmtimerrc"; |
387 | QFile file( fileName ); | 387 | QFile file( fileName ); |
@@ -559,10 +559,10 @@ void SimpleAlarmDaemonImpl::confTimer( int time ) | |||
559 | spinh.setFixedSize( 100,62 ); | 559 | spinh.setFixedSize( 100,62 ); |
560 | spinm.upButton ()->setFixedSize( QSize( 48, 30 )); | 560 | spinm.upButton ()->setFixedSize( QSize( 48, 30 )); |
561 | spinm.downButton ()->setFixedSize( QSize( 48, 30 )); | 561 | spinm.downButton ()->setFixedSize( QSize( 48, 30 )); |
562 | spinm.downButton ()->setGeometry( 50,50,50,50); | 562 | spinm.downButton ()->setGeometry( 50,50,50,50); |
563 | spinm.setSuffix( " m" ); | 563 | // spinm.setSuffix( " m" ); |
564 | spinh.setSuffix( " h" ); | 564 | //spinh.setSuffix( " h" ); |
565 | spinm.setWrapping ( true ); | 565 | spinm.setWrapping ( true ); |
566 | //spinm.editor ()->setFixedSize( QSize( 50, 100 )); | 566 | //spinm.editor ()->setFixedSize( QSize( 50, 100 )); |
567 | spinm.setLineStep( 1 ); | 567 | spinm.setLineStep( 1 ); |
568 | spinm.setFixedSize( 110,62 ); | 568 | spinm.setFixedSize( 110,62 ); |
@@ -578,9 +578,11 @@ void SimpleAlarmDaemonImpl::confTimer( int time ) | |||
578 | lay.addWidget( &dl); | 578 | lay.addWidget( &dl); |
579 | spinh.setValue( mCustomMinutes/60 ); | 579 | spinh.setValue( mCustomMinutes/60 ); |
580 | spinm.setValue( mCustomMinutes%60 ); | 580 | spinm.setValue( mCustomMinutes%60 ); |
581 | QPushButton ok ( "Start timer", &dia); | 581 | QPushButton ok ( "Start timer", &dia); |
582 | ok.setDefault( true ); | ||
582 | ok.setFont( fo ); | 583 | ok.setFont( fo ); |
584 | spinh.setFocus(); | ||
583 | lay.addWidget( &ok); | 585 | lay.addWidget( &ok); |
584 | connect ( &ok, SIGNAL (clicked()), &dia, SLOT ( accept() ) ); | 586 | connect ( &ok, SIGNAL (clicked()), &dia, SLOT ( accept() ) ); |
585 | dia.resize( dia.sizeHint().width(), dia.sizeHint().height() ); | 587 | dia.resize( dia.sizeHint().width(), dia.sizeHint().height() ); |
586 | 588 | ||
@@ -607,8 +609,9 @@ void SimpleAlarmDaemonImpl::confTimer( int time ) | |||
607 | mRunningTimerText = QString::number ( minutes ) + ( " minutes"); | 609 | mRunningTimerText = QString::number ( minutes ) + ( " minutes"); |
608 | } | 610 | } |
609 | } | 611 | } |
610 | //minutes = 1; | 612 | //minutes = 1; |
613 | |||
611 | mRunningTimer = QDateTime::currentDateTime().addSecs( minutes * 60 ); | 614 | mRunningTimer = QDateTime::currentDateTime().addSecs( minutes * 60 ); |
612 | timerMesssage = mess; | 615 | timerMesssage = mess; |
613 | AlarmServer::addAlarm ( mRunningTimer,"koalarm",timerMesssage.latin1()); | 616 | AlarmServer::addAlarm ( mRunningTimer,"koalarm",timerMesssage.latin1()); |
614 | mTimerTime = 1; | 617 | mTimerTime = 1; |