summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-10-09 23:48:12 (UTC)
committer zautrix <zautrix>2005-10-09 23:48:12 (UTC)
commitdad8e8745591620c951cefd835ea7ea727db8925 (patch) (side-by-side diff)
treec7352262bfc07f50b5b63b7ea034bdecdaa8732c
parent6d084862c396f58c949e713e9b159ec20743fd8a (diff)
downloadkdepimpi-dad8e8745591620c951cefd835ea7ea727db8925.zip
kdepimpi-dad8e8745591620c951cefd835ea7ea727db8925.tar.gz
kdepimpi-dad8e8745591620c951cefd835ea7ea727db8925.tar.bz2
timer message
Diffstat (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
@@ -145,14 +145,15 @@ SimpleAlarmDaemonImpl::SimpleAlarmDaemonImpl( QWidget *parent )
}
else {
wavAlarm = true;
mSoundPopUp->setItemChecked ( 1, true );
}
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();
fon.setBold( true );
points = (fon.pointSize()*2);
fon.setPointSize( points );
mTimerStartLabel->setFont( fon );
}
@@ -616,20 +617,20 @@ void SimpleAlarmDaemonImpl::confTimer( int time )
}
//minutes = 1;
mRunningTimer = QDateTime::currentDateTime().addSecs( minutes * 60 );
timerMesssage = mess;
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();
int dh = QApplication::desktop()->height();
mTimerStartLabel->setGeometry( (dw-w)/2, (dh - h )/2 ,w,h );
mTimerStartLabel->show();
- QTimer::singleShot( 2000, mTimerStartLabel, SLOT ( hide() ) );
+ QTimer::singleShot( 3000, mTimerStartLabel, SLOT ( hide() ) );
mTimerTime = 1;
}
void SimpleAlarmDaemonImpl::writeFile()
{
QCopEnvelope e("QPE/Application/kopi", "-writeFileSilent");