summaryrefslogtreecommitdiffabout
path: root/kalarmd/simplealarmdaemonimpl.cpp
Side-by-side diff
Diffstat (limited to 'kalarmd/simplealarmdaemonimpl.cpp') (more/less context) (show whitespace changes)
-rw-r--r--kalarmd/simplealarmdaemonimpl.cpp13
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
@@ -150,4 +150,5 @@ SimpleAlarmDaemonImpl::SimpleAlarmDaemonImpl( QWidget *parent )
saveSlot( 1 );
- mTimerStartLabel = new QLabel( 0 );
- mTimerStartLabel->setCaption( "Timer started!");
+ mTimerStartLabel = new QLabel( 0, 0, WType_Popup );
+ //mTimerStartLabel->setCaption( "Timer started!");
+ mTimerStartLabel->setAlignment ( Qt::AlignCenter ) ;
fon = mTimerPopUp->font();
@@ -621,5 +622,5 @@ void SimpleAlarmDaemonImpl::confTimer( int time )
AlarmServer::addAlarm ( mRunningTimer,"koalarm",timerMesssage.utf8());
- mTimerStartLabel->setText( disp );
- int w = 200;
- int h = mTimerStartLabel->sizeHint().height() ;
+ mTimerStartLabel->setText( disp + "\n\nTimer started!" );
+ int w = mTimerStartLabel->sizeHint().width()+20;
+ int h = mTimerStartLabel->sizeHint().height()+40 ;
int dw = QApplication::desktop()->width();
@@ -628,3 +629,3 @@ void SimpleAlarmDaemonImpl::confTimer( int time )
mTimerStartLabel->show();
- QTimer::singleShot( 2000, mTimerStartLabel, SLOT ( hide() ) );
+ QTimer::singleShot( 3000, mTimerStartLabel, SLOT ( hide() ) );
mTimerTime = 1;