summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/tools/clock/setAlarm.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/noncore/tools/clock/setAlarm.cpp b/noncore/tools/clock/setAlarm.cpp
index 38de396..7c9ded2 100644
--- a/noncore/tools/clock/setAlarm.cpp
+++ b/noncore/tools/clock/setAlarm.cpp
@@ -183,35 +183,41 @@ void Set_Alarm::slotChangeSnooze(int minute)
183{ 183{
184 Snooze_LCDNumber->display(minute); 184 Snooze_LCDNumber->display(minute);
185} 185}
186 186
187void Set_Alarm::amButtonToggled(bool b) 187void Set_Alarm::amButtonToggled(bool b)
188{ 188{
189 if ( b) 189 if ( b)
190 Pm_RadioButton->setChecked(FALSE); 190 Pm_RadioButton->setChecked(FALSE);
191} 191}
192 192
193void Set_Alarm::pmButtonToggled(bool b) 193void Set_Alarm::pmButtonToggled(bool b)
194{ 194{
195 if (b) 195 if (b)
196 Am_RadioButton->setChecked(FALSE); 196 Am_RadioButton->setChecked(FALSE);
197} 197}
198 198
199void Set_Alarm::cleanUp() 199void Set_Alarm::cleanUp()
200{ 200{
201} 201}
202 202
203void Set_Alarm::slotChangemp3CkeckBox(bool b) { 203void Set_Alarm::slotChangemp3CkeckBox(bool b) {
204 Config config( "qpe" ); 204 Config config( "qpe" );
205 config.setGroup("Time"); 205 config.setGroup("Time");
206 if(b) { 206 if(b) {
207 QString str = OFileDialog::getOpenFileName( 2,"/");//,"", "*", this ); 207 QMap<QString, QStringList> map;
208 map.insert(tr("All"), QStringList() );
209 QStringList text;
210 text << "audio/*";
211 map.insert(tr("Audio"), text );
212 QString str = OFileDialog::getOpenFileName( 2,"/", QString::null, map);//,"", "*", this );
213// QString str = OFileDialog::getOpenFileName( 2,"/");//,"", "*", this );
208 if(!str.isEmpty() ) { 214 if(!str.isEmpty() ) {
209 qDebug(str); 215 qDebug(str);
210 config.writeEntry("mp3Alarm",1); 216 config.writeEntry("mp3Alarm",1);
211 config.writeEntry("mp3File",str); 217 config.writeEntry("mp3File",str);
212 } 218 }
213 } else { 219 } else {
214 config.writeEntry("mp3Alarm",0); 220 config.writeEntry("mp3Alarm",0);
215 config.writeEntry("mp3File",""); 221 config.writeEntry("mp3File","");
216 } 222 }
217} 223}