summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-05-31 13:00:05 (UTC)
committer llornkcor <llornkcor>2002-05-31 13:00:05 (UTC)
commit075f2ae74f328581ec0db05d633961f3baa5ed36 (patch) (side-by-side diff)
tree370eb2838813a9fa2aaf47e32f6e711dd2a8f36e
parentdd08e7fa2ccbcc0489c17ed305b20a9a7d187161 (diff)
downloadopie-075f2ae74f328581ec0db05d633961f3baa5ed36.zip
opie-075f2ae74f328581ec0db05d633961f3baa5ed36.tar.gz
opie-075f2ae74f328581ec0db05d633961f3baa5ed36.tar.bz2
added clock to popup if closed before app gets alarm message
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/tools/clock/clock.cpp11
-rw-r--r--noncore/tools/clock/clock.h1
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 @@
**********************************************************************/
+// changes added and Copyright (C) by L. J. Potter <ljp@llornkcor.com> 2002
@@ -68,2 +69,3 @@ Clock::Clock( QWidget * parent, const char * name, WFlags f )
+
snoozeBtn = new QPushButton ( this);
@@ -382,2 +384,3 @@ void Clock::appMessage(const QCString& msg, const QByteArray& data)
bSound=TRUE;
+ qDebug("Message received in clock");
if ( msg == "alarm(QDateTime,int)" ) {
@@ -386,2 +389,6 @@ void Clock::appMessage(const QCString& msg, const QByteArray& data)
}
+ show();
+ raise();
+ QPEApplication::setKeepRunning();
+ setActiveWindow();
}
@@ -487,4 +494,4 @@ QPoint AnalogClock::rotate( QPoint c, QPoint p, int a )
}
-void Clock::slotAdjustTime()
-{
+
+void Clock::slotAdjustTime() {
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:
void slotAdjustTime();
-
private: