-rw-r--r-- | kalarmd/simplealarmdaemonimpl.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/kalarmd/simplealarmdaemonimpl.cpp b/kalarmd/simplealarmdaemonimpl.cpp index c1e064c..553e377 100644 --- a/kalarmd/simplealarmdaemonimpl.cpp +++ b/kalarmd/simplealarmdaemonimpl.cpp | |||
@@ -148,8 +148,9 @@ SimpleAlarmDaemonImpl::SimpleAlarmDaemonImpl( QWidget *parent ) | |||
148 | mSoundPopUp->setItemChecked ( 1, true ); | 148 | mSoundPopUp->setItemChecked ( 1, true ); |
149 | } | 149 | } |
150 | saveSlot( 1 ); | 150 | saveSlot( 1 ); |
151 | mTimerStartLabel = new QLabel( 0 ); | 151 | mTimerStartLabel = new QLabel( 0, 0, WType_Popup ); |
152 | mTimerStartLabel->setCaption( "Timer started!"); | 152 | //mTimerStartLabel->setCaption( "Timer started!"); |
153 | mTimerStartLabel->setAlignment ( Qt::AlignCenter ) ; | ||
153 | fon = mTimerPopUp->font(); | 154 | fon = mTimerPopUp->font(); |
154 | fon.setBold( true ); | 155 | fon.setBold( true ); |
155 | points = (fon.pointSize()*2); | 156 | points = (fon.pointSize()*2); |
@@ -619,14 +620,14 @@ void SimpleAlarmDaemonImpl::confTimer( int time ) | |||
619 | mRunningTimer = QDateTime::currentDateTime().addSecs( minutes * 60 ); | 620 | mRunningTimer = QDateTime::currentDateTime().addSecs( minutes * 60 ); |
620 | timerMesssage = mess; | 621 | timerMesssage = mess; |
621 | AlarmServer::addAlarm ( mRunningTimer,"koalarm",timerMesssage.utf8()); | 622 | AlarmServer::addAlarm ( mRunningTimer,"koalarm",timerMesssage.utf8()); |
622 | mTimerStartLabel->setText( disp ); | 623 | mTimerStartLabel->setText( disp + "\n\nTimer started!" ); |
623 | int w = 200; | 624 | int w = mTimerStartLabel->sizeHint().width()+20; |
624 | int h = mTimerStartLabel->sizeHint().height() ; | 625 | int h = mTimerStartLabel->sizeHint().height()+40 ; |
625 | int dw = QApplication::desktop()->width(); | 626 | int dw = QApplication::desktop()->width(); |
626 | int dh = QApplication::desktop()->height(); | 627 | int dh = QApplication::desktop()->height(); |
627 | mTimerStartLabel->setGeometry( (dw-w)/2, (dh - h )/2 ,w,h ); | 628 | mTimerStartLabel->setGeometry( (dw-w)/2, (dh - h )/2 ,w,h ); |
628 | mTimerStartLabel->show(); | 629 | mTimerStartLabel->show(); |
629 | QTimer::singleShot( 2000, mTimerStartLabel, SLOT ( hide() ) ); | 630 | QTimer::singleShot( 3000, mTimerStartLabel, SLOT ( hide() ) ); |
630 | mTimerTime = 1; | 631 | mTimerTime = 1; |
631 | } | 632 | } |
632 | 633 | ||