Diffstat (limited to 'noncore/tools/clock/clock.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/tools/clock/clock.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/tools/clock/clock.cpp b/noncore/tools/clock/clock.cpp index b780675..485354b 100644 --- a/noncore/tools/clock/clock.cpp +++ b/noncore/tools/clock/clock.cpp | |||
@@ -53,12 +53,13 @@ | |||
53 | #include <pthread.h> | 53 | #include <pthread.h> |
54 | 54 | ||
55 | 55 | ||
56 | const double deg2rad = 0.017453292519943295769; // pi/180 | 56 | const double deg2rad = 0.017453292519943295769; // pi/180 |
57 | const int sw_prec = 2; | 57 | const int sw_prec = 2; |
58 | 58 | ||
59 | using namespace Opie::Ui; | ||
59 | void startPlayer() | 60 | void startPlayer() |
60 | { | 61 | { |
61 | Config config( "qpe" ); | 62 | Config config( "qpe" ); |
62 | config.setGroup( "Time" ); | 63 | config.setGroup( "Time" ); |
63 | sleep(15); | 64 | sleep(15); |
64 | QCopEnvelope e( "QPE/Application/opieplayer", "setDocument(QString)" ); | 65 | QCopEnvelope e( "QPE/Application/opieplayer", "setDocument(QString)" ); |
@@ -142,13 +143,13 @@ Clock::Clock( QWidget * parent, const char * name, WFlags f ) | |||
142 | 143 | ||
143 | alarmBtn = new QPushButton ( controls ); | 144 | alarmBtn = new QPushButton ( controls ); |
144 | gl->addWidget( alarmBtn, 1, 2 ); | 145 | gl->addWidget( alarmBtn, 1, 2 ); |
145 | 146 | ||
146 | alarmBtn->setText( tr( "Set Alarm" ) ); | 147 | alarmBtn->setText( tr( "Set Alarm" ) ); |
147 | 148 | ||
148 | Opie::OClickableLabel *click = new Opie::OClickableLabel( controls, "label" ); | 149 | OClickableLabel *click = new Opie::Ui::OClickableLabel( controls, "label" ); |
149 | click->setText( tr( "Set date and time." ) ); | 150 | click->setText( tr( "Set date and time." ) ); |
150 | gl->addMultiCellWidget( click, 3, 3, 0, 2, AlignHCenter ); | 151 | gl->addMultiCellWidget( click, 3, 3, 0, 2, AlignHCenter ); |
151 | connect( click, SIGNAL( clicked() ), this, SLOT( slotAdjustTime() ) ); | 152 | connect( click, SIGNAL( clicked() ), this, SLOT( slotAdjustTime() ) ); |
152 | 153 | ||
153 | connect( set , SIGNAL( pressed() ), SLOT( slotSet() ) ); | 154 | connect( set , SIGNAL( pressed() ), SLOT( slotSet() ) ); |
154 | connect( reset, SIGNAL( clicked() ), SLOT( slotReset() ) ); | 155 | connect( reset, SIGNAL( clicked() ), SLOT( slotReset() ) ); |