summaryrefslogtreecommitdiffabout
path: root/kalarmd
authorzautrix <zautrix>2005-10-08 23:54:34 (UTC)
committer zautrix <zautrix>2005-10-08 23:54:34 (UTC)
commit6d084862c396f58c949e713e9b159ec20743fd8a (patch) (unidiff)
tree6e6f5166df3c2d4044362c385a177a3a76ebf32b /kalarmd
parentc0b255e16d45fed73185fac431169284cc1431e8 (diff)
downloadkdepimpi-6d084862c396f58c949e713e9b159ec20743fd8a.zip
kdepimpi-6d084862c396f58c949e713e9b159ec20743fd8a.tar.gz
kdepimpi-6d084862c396f58c949e713e9b159ec20743fd8a.tar.bz2
fixed time
Diffstat (limited to 'kalarmd') (more/less context) (ignore whitespace changes)
-rw-r--r--kalarmd/simplealarmdaemonimpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kalarmd/simplealarmdaemonimpl.cpp b/kalarmd/simplealarmdaemonimpl.cpp
index 04b8b21..c1e064c 100644
--- a/kalarmd/simplealarmdaemonimpl.cpp
+++ b/kalarmd/simplealarmdaemonimpl.cpp
@@ -597,65 +597,65 @@ void SimpleAlarmDaemonImpl::confTimer( int time )
597 mCustomText = lEdit.text(); 597 mCustomText = lEdit.text();
598 mCustomMinutes = spinh.value()*60+spinm.value(); 598 mCustomMinutes = spinh.value()*60+spinm.value();
599 if ( mCustomMinutes == 0 ) 599 if ( mCustomMinutes == 0 )
600 mCustomMinutes = 1; 600 mCustomMinutes = 1;
601 if ( mCustomMinutes > 1440 ) 601 if ( mCustomMinutes > 1440 )
602 mCustomMinutes = 1440; 602 mCustomMinutes = 1440;
603 mess += mCustomText; 603 mess += mCustomText;
604 disp = mCustomText; 604 disp = mCustomText;
605 minutes = mCustomMinutes; 605 minutes = mCustomMinutes;
606 mRunningTimerText = mCustomText.stripWhiteSpace (); 606 mRunningTimerText = mCustomText.stripWhiteSpace ();
607 int in = mRunningTimerText.find( " " ); 607 int in = mRunningTimerText.find( " " );
608 mRunningTimerText = mRunningTimerText.left ( in ); 608 mRunningTimerText = mRunningTimerText.left ( in );
609 } 609 }
610 else { 610 else {
611 mess += mTimerPopUp->text( minutes ); 611 mess += mTimerPopUp->text( minutes );
612 disp = mTimerPopUp->text( minutes ); 612 disp = mTimerPopUp->text( minutes );
613 mRunningTimerText = mTimerPopUp->text( minutes ); 613 mRunningTimerText = mTimerPopUp->text( minutes );
614 minutes -= 10; 614 minutes -= 10;
615 } 615 }
616 } 616 }
617 //minutes = 1; 617 //minutes = 1;
618 618
619 mRunningTimer = QDateTime::currentDateTime().addSecs( minutes * 60 ); 619 mRunningTimer = QDateTime::currentDateTime().addSecs( minutes * 60 );
620 timerMesssage = mess; 620 timerMesssage = mess;
621 AlarmServer::addAlarm ( mRunningTimer,"koalarm",timerMesssage.utf8()); 621 AlarmServer::addAlarm ( mRunningTimer,"koalarm",timerMesssage.utf8());
622 mTimerStartLabel->setText( disp ); 622 mTimerStartLabel->setText( disp );
623 int w = 200; 623 int w = 200;
624 int h = mTimerStartLabel->sizeHint().height() ; 624 int h = mTimerStartLabel->sizeHint().height() ;
625 int dw = QApplication::desktop()->width(); 625 int dw = QApplication::desktop()->width();
626 int dh = QApplication::desktop()->height(); 626 int dh = QApplication::desktop()->height();
627 mTimerStartLabel->setGeometry( (dw-w)/2, (dh - h )/2 ,w,h ); 627 mTimerStartLabel->setGeometry( (dw-w)/2, (dh - h )/2 ,w,h );
628 mTimerStartLabel->show(); 628 mTimerStartLabel->show();
629 QTimer::singleShot( 3000, mTimerStartLabel, SLOT ( hide() ) ); 629 QTimer::singleShot( 2000, mTimerStartLabel, SLOT ( hide() ) );
630 mTimerTime = 1; 630 mTimerTime = 1;
631} 631}
632 632
633void SimpleAlarmDaemonImpl::writeFile() 633void SimpleAlarmDaemonImpl::writeFile()
634{ 634{
635 QCopEnvelope e("QPE/Application/kopi", "-writeFileSilent"); 635 QCopEnvelope e("QPE/Application/kopi", "-writeFileSilent");
636 //QCopEnvelope e("QPE/Application/kopi", "-writeFile"); 636 //QCopEnvelope e("QPE/Application/kopi", "-writeFile");
637} 637}
638void SimpleAlarmDaemonImpl::showWN() 638void SimpleAlarmDaemonImpl::showWN()
639{ 639{
640 QCopEnvelope e("QPE/Application/kopi", "-showWN"); 640 QCopEnvelope e("QPE/Application/kopi", "-showWN");
641} 641}
642void SimpleAlarmDaemonImpl::newTodo() 642void SimpleAlarmDaemonImpl::newTodo()
643{ 643{
644 QCopEnvelope e("QPE/Application/kopi", "-newTodo"); 644 QCopEnvelope e("QPE/Application/kopi", "-newTodo");
645} 645}
646 646
647void SimpleAlarmDaemonImpl::newEvent() 647void SimpleAlarmDaemonImpl::newEvent()
648{ 648{
649 QCopEnvelope e("QPE/Application/kopi", "-newEvent"); 649 QCopEnvelope e("QPE/Application/kopi", "-newEvent");
650 650
651} 651}
652void SimpleAlarmDaemonImpl::newMail() 652void SimpleAlarmDaemonImpl::newMail()
653{ 653{
654 QCopEnvelope e("QPE/Application/ompi", "newMail()"); 654 QCopEnvelope e("QPE/Application/ompi", "newMail()");
655} 655}
656void SimpleAlarmDaemonImpl::showAdd() 656void SimpleAlarmDaemonImpl::showAdd()
657{ 657{
658 QCopEnvelope e("QPE/Application/kapi", "raise()"); 658 QCopEnvelope e("QPE/Application/kapi", "raise()");
659} 659}
660void SimpleAlarmDaemonImpl::ringSync() 660void SimpleAlarmDaemonImpl::ringSync()
661{ 661{