summaryrefslogtreecommitdiff
path: root/noncore/tools
Side-by-side diff
Diffstat (limited to 'noncore/tools') (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
@@ -18,4 +18,5 @@
**
**********************************************************************/
+// changes added and Copyright (C) by L. J. Potter <ljp@llornkcor.com> 2002
#include "clock.h"
@@ -67,4 +68,5 @@ Clock::Clock( QWidget * parent, const char * name, WFlags f )
ampm = config.readBoolEntry( "AMPM", TRUE );
+
snoozeBtn = new QPushButton ( this);
snoozeBtn->setText( tr( "Snooze" ) );
@@ -381,8 +383,13 @@ void Clock::appMessage(const QCString& msg, const QByteArray& data)
int timerStay = 5000;
bSound=TRUE;
+ qDebug("Message received in clock");
if ( msg == "alarm(QDateTime,int)" ) {
Sound::soundAlarm();
stopTimer = startTimer( timerStay);
}
+ show();
+ raise();
+ QPEApplication::setKeepRunning();
+ setActiveWindow();
}
@@ -486,6 +493,6 @@ QPoint AnalogClock::rotate( QPoint c, QPoint p, int a )
return QPoint( nx, ny );
}
-void Clock::slotAdjustTime()
-{
+
+void Clock::slotAdjustTime() {
QCopEnvelope e("QPE/System", "execute(QString)");
e << QString("systemtime");
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
@@ -78,5 +78,4 @@ private slots:
void timerEvent( QTimerEvent *e );
void slotAdjustTime();
-
private:
void clearClock();