-rw-r--r-- | noncore/tools/clock/clock.cpp | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/noncore/tools/clock/clock.cpp b/noncore/tools/clock/clock.cpp index a85cc19..0a21146 100644 --- a/noncore/tools/clock/clock.cpp +++ b/noncore/tools/clock/clock.cpp | |||
@@ -19,3 +19,2 @@ | |||
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | // code added and Copyright (C) by L. J. Potter <ljp@llornkcor.com> 2002 | ||
21 | 20 | ||
@@ -34,2 +33,4 @@ | |||
34 | 33 | ||
34 | #include <opie/oclickablelabel.h> | ||
35 | |||
35 | #include <qlcdnumber.h> | 36 | #include <qlcdnumber.h> |
@@ -95,3 +96,3 @@ Clock::Clock( QWidget * parent, const char * name, WFlags f ) | |||
95 | QWidget *controls = new QWidget( this ); | 96 | QWidget *controls = new QWidget( this ); |
96 | QGridLayout *gl = new QGridLayout( controls, 2, 2, 6, 4 ); | 97 | QGridLayout *gl = new QGridLayout( controls, 3, 2, 6, 4 ); |
97 | 98 | ||
@@ -134,2 +135,7 @@ Clock::Clock( QWidget * parent, const char * name, WFlags f ) | |||
134 | 135 | ||
136 | OClickableLabel *click = new OClickableLabel(controls, "label" ); | ||
137 | click->setText(tr("Set date and time." ) ); | ||
138 | gl->addMultiCellWidget( click, 3, 3, 0, 2, AlignHCenter); | ||
139 | connect( click, SIGNAL(clicked() ), this, SLOT(slotAdjustTime() ) ); | ||
140 | |||
135 | connect( set, SIGNAL( pressed() ), SLOT( slotSet() ) ); | 141 | connect( set, SIGNAL( pressed() ), SLOT( slotSet() ) ); |
@@ -312,3 +318,3 @@ void Clock::slotSnooze() | |||
312 | bSound=FALSE; | 318 | bSound=FALSE; |
313 | int warn; | 319 | int warn = 0; |
314 | QTime t = QTime::currentTime(); | 320 | QTime t = QTime::currentTime(); |
@@ -351,3 +357,3 @@ void Clock::alarmOn() | |||
351 | d = d.addDays(1); | 357 | d = d.addDays(1); |
352 | int warn; | 358 | int warn = 0; |
353 | QDateTime whenl(d,tm); | 359 | QDateTime whenl(d,tm); |
@@ -362,3 +368,3 @@ void Clock::alarmOff() | |||
362 | { | 368 | { |
363 | int warn; | 369 | int warn = 0; |
364 | bSound=FALSE; | 370 | bSound=FALSE; |
@@ -481 +487,6 @@ QPoint AnalogClock::rotate( QPoint c, QPoint p, int a ) | |||
481 | } | 487 | } |
488 | void Clock::slotAdjustTime() | ||
489 | { | ||
490 | QCopEnvelope e("QPE/System", "execute(QString)"); | ||
491 | e << QString("systemtime"); | ||
492 | } | ||