summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/tools/clock/clock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/tools/clock/clock.cpp b/noncore/tools/clock/clock.cpp
index ad422a6..e681650 100644
--- a/noncore/tools/clock/clock.cpp
+++ b/noncore/tools/clock/clock.cpp
@@ -72,65 +72,65 @@ static const int magic_playmp = 2292925;
72 72
73static void toggleScreenSaver( bool on ) 73static void toggleScreenSaver( bool on )
74{ 74{
75 QCopEnvelope e( "QPE/System", "setScreenSaverMode(int)" ); 75 QCopEnvelope e( "QPE/System", "setScreenSaverMode(int)" );
76 e << ( on ? QPEApplication::Enable : QPEApplication::DisableSuspend ); 76 e << ( on ? QPEApplication::Enable : QPEApplication::DisableSuspend );
77} 77}
78 78
79static void startPlayer() 79static void startPlayer()
80{ 80{
81 Config config( "qpe" ); 81 Config config( "qpe" );
82 config.setGroup( "Time" ); 82 config.setGroup( "Time" );
83 sleep(15); 83 sleep(15);
84 QCopEnvelope e( "QPE/Application/opieplayer", "setDocument(QString)" ); 84 QCopEnvelope e( "QPE/Application/opieplayer", "setDocument(QString)" );
85 e << config.readEntry( "mp3File", "" ); 85 e << config.readEntry( "mp3File", "" );
86} 86}
87 87
88class MySpinBox : public QSpinBox 88class MySpinBox : public QSpinBox
89{ 89{
90public: 90public:
91 QLineEdit *lineEdit() const { 91 QLineEdit *lineEdit() const {
92 return editor(); 92 return editor();
93 } 93 }
94}; 94};
95 95
96// 96//
97// 97//
98// 98//
99AlarmDlg::AlarmDlg(QWidget *parent, const char *name, bool modal, 99AlarmDlg::AlarmDlg(QWidget *parent, const char *name, bool modal,
100 const QString &txt) : 100 const QString &txt) :
101 AlarmDlgBase(parent, name, modal) 101 AlarmDlgBase(parent, name, modal)
102{ 102{
103 setCaption( tr("Clock") ); 103 setCaption( tr("Clock") );
104 pixmap->setPixmap( Resource::loadPixmap("alarmbell") ); 104 pixmap->setPixmap( Resource::loadPixmap("clock/alarmbell") );
105 alarmDlgLabel->setText(txt); 105 alarmDlgLabel->setText(txt);
106 106
107 connect(snoozeTime, SIGNAL(valueChanged(int)), this, 107 connect(snoozeTime, SIGNAL(valueChanged(int)), this,
108 SLOT(changePrompt(int))); 108 SLOT(changePrompt(int)));
109 connect(cmdOk, SIGNAL(clicked()), this, SLOT(checkSnooze())); 109 connect(cmdOk, SIGNAL(clicked()), this, SLOT(checkSnooze()));
110} 110}
111 111
112// 112//
113// 113//
114// 114//
115void 115void
116AlarmDlg::setText(const QString &txt) 116AlarmDlg::setText(const QString &txt)
117{ 117{
118 alarmDlgLabel->setText(txt); 118 alarmDlgLabel->setText(txt);
119} 119}
120 120
121// 121//
122// 122//
123// 123//
124void 124void
125AlarmDlg::checkSnooze(void) 125AlarmDlg::checkSnooze(void)
126{ 126{
127 // 127 //
128 // Ensure we have only one snooze alarm. 128 // Ensure we have only one snooze alarm.
129 // 129 //
130 AlarmServer::deleteAlarm(QDateTime(), "QPE/Application/clock", 130 AlarmServer::deleteAlarm(QDateTime(), "QPE/Application/clock",
131 "alarm(QDateTime,int)", magic_snooze); 131 "alarm(QDateTime,int)", magic_snooze);
132 132
133 if (snoozeTime->value() > 0) { 133 if (snoozeTime->value() > 0) {
134 QDateTime wake = QDateTime::currentDateTime(); 134 QDateTime wake = QDateTime::currentDateTime();
135 wake = wake.addSecs(snoozeTime->value() * 60); // snoozeTime in minutes 135 wake = wake.addSecs(snoozeTime->value() * 60); // snoozeTime in minutes
136 136