author | llornkcor <llornkcor> | 2002-05-31 13:00:05 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-05-31 13:00:05 (UTC) |
commit | 075f2ae74f328581ec0db05d633961f3baa5ed36 (patch) (unidiff) | |
tree | 370eb2838813a9fa2aaf47e32f6e711dd2a8f36e | |
parent | dd08e7fa2ccbcc0489c17ed305b20a9a7d187161 (diff) | |
download | opie-075f2ae74f328581ec0db05d633961f3baa5ed36.zip opie-075f2ae74f328581ec0db05d633961f3baa5ed36.tar.gz opie-075f2ae74f328581ec0db05d633961f3baa5ed36.tar.bz2 |
added clock to popup if closed before app gets alarm message
-rw-r--r-- | noncore/tools/clock/clock.cpp | 11 | ||||
-rw-r--r-- | noncore/tools/clock/clock.h | 1 |
2 files changed, 9 insertions, 3 deletions
diff --git a/noncore/tools/clock/clock.cpp b/noncore/tools/clock/clock.cpp index 0a21146..9b9e644 100644 --- a/noncore/tools/clock/clock.cpp +++ b/noncore/tools/clock/clock.cpp | |||
@@ -19,2 +19,3 @@ | |||
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | // changes added and Copyright (C) by L. J. Potter <ljp@llornkcor.com> 2002 | ||
20 | 21 | ||
@@ -68,2 +69,3 @@ Clock::Clock( QWidget * parent, const char * name, WFlags f ) | |||
68 | 69 | ||
70 | |||
69 | snoozeBtn = new QPushButton ( this); | 71 | snoozeBtn = new QPushButton ( this); |
@@ -382,2 +384,3 @@ void Clock::appMessage(const QCString& msg, const QByteArray& data) | |||
382 | bSound=TRUE; | 384 | bSound=TRUE; |
385 | qDebug("Message received in clock"); | ||
383 | if ( msg == "alarm(QDateTime,int)" ) { | 386 | if ( msg == "alarm(QDateTime,int)" ) { |
@@ -386,2 +389,6 @@ void Clock::appMessage(const QCString& msg, const QByteArray& data) | |||
386 | } | 389 | } |
390 | show(); | ||
391 | raise(); | ||
392 | QPEApplication::setKeepRunning(); | ||
393 | setActiveWindow(); | ||
387 | } | 394 | } |
@@ -487,4 +494,4 @@ QPoint AnalogClock::rotate( QPoint c, QPoint p, int a ) | |||
487 | } | 494 | } |
488 | void Clock::slotAdjustTime() | 495 | |
489 | { | 496 | void Clock::slotAdjustTime() { |
490 | QCopEnvelope e("QPE/System", "execute(QString)"); | 497 | QCopEnvelope e("QPE/System", "execute(QString)"); |
diff --git a/noncore/tools/clock/clock.h b/noncore/tools/clock/clock.h index 024dd28..be71b9d 100644 --- a/noncore/tools/clock/clock.h +++ b/noncore/tools/clock/clock.h | |||
@@ -79,3 +79,2 @@ private slots: | |||
79 | void slotAdjustTime(); | 79 | void slotAdjustTime(); |
80 | |||
81 | private: | 80 | private: |