author | zecke <zecke> | 2004-04-04 11:38:52 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-04-04 11:38:52 (UTC) |
commit | 321f82bb3d43cbab358434fef52fe76f17e7d1e3 (patch) (unidiff) | |
tree | 7a7a25db1b639a95ed5087bd5f90167a38252789 | |
parent | 56b4b6a658854637f688975874390938260f2afc (diff) | |
download | opie-321f82bb3d43cbab358434fef52fe76f17e7d1e3.zip opie-321f82bb3d43cbab358434fef52fe76f17e7d1e3.tar.gz opie-321f82bb3d43cbab358434fef52fe76f17e7d1e3.tar.bz2 |
use alarmbell
-rw-r--r-- | noncore/tools/clock/clock.cpp | 2 |
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 | |||
@@ -80,49 +80,49 @@ static 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 | ||
88 | class MySpinBox : public QSpinBox | 88 | class MySpinBox : public QSpinBox |
89 | { | 89 | { |
90 | public: | 90 | public: |
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 | // |
99 | AlarmDlg::AlarmDlg(QWidget *parent, const char *name, bool modal, | 99 | AlarmDlg::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 | // |
115 | void | 115 | void |
116 | AlarmDlg::setText(const QString &txt) | 116 | AlarmDlg::setText(const QString &txt) |
117 | { | 117 | { |
118 | alarmDlgLabel->setText(txt); | 118 | alarmDlgLabel->setText(txt); |
119 | } | 119 | } |
120 | 120 | ||
121 | // | 121 | // |
122 | // | 122 | // |
123 | // | 123 | // |
124 | void | 124 | void |
125 | AlarmDlg::checkSnooze(void) | 125 | AlarmDlg::checkSnooze(void) |
126 | { | 126 | { |
127 | // | 127 | // |
128 | // Ensure we have only one snooze alarm. | 128 | // Ensure we have only one snooze alarm. |