author | llornkcor <llornkcor> | 2002-06-27 19:40:24 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-06-27 19:40:24 (UTC) |
commit | 9cd1aef30015628e06e8f24b9b7e91acb631b52b (patch) (unidiff) | |
tree | 7e742209394929dea46333c13e577ccbf4e3004b /noncore | |
parent | c2d32ceea75df8ad2e81c676acd8234597a89635 (diff) | |
download | opie-9cd1aef30015628e06e8f24b9b7e91acb631b52b.zip opie-9cd1aef30015628e06e8f24b9b7e91acb631b52b.tar.gz opie-9cd1aef30015628e06e8f24b9b7e91acb631b52b.tar.bz2 |
new ofileselector
-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() | |||
201 | } | 201 | } |
202 | 202 | ||
203 | void Set_Alarm::slotChangemp3CkeckBox(bool b) { | 203 | void 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 { |