Diffstat (limited to 'noncore/tools/clock/setAlarm.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/tools/clock/setAlarm.cpp | 8 |
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 @@ -201,13 +201,19 @@ void Set_Alarm::cleanUp() } void Set_Alarm::slotChangemp3CkeckBox(bool b) { Config config( "qpe" ); config.setGroup("Time"); if(b) { - QString str = OFileDialog::getOpenFileName( 2,"/");//,"", "*", this ); + QMap<QString, QStringList> map; + map.insert(tr("All"), QStringList() ); + QStringList text; + text << "audio/*"; + map.insert(tr("Audio"), text ); + QString str = OFileDialog::getOpenFileName( 2,"/", QString::null, map);//,"", "*", this ); +// QString str = OFileDialog::getOpenFileName( 2,"/");//,"", "*", this ); if(!str.isEmpty() ) { qDebug(str); config.writeEntry("mp3Alarm",1); config.writeEntry("mp3File",str); } } else { |