summaryrefslogtreecommitdiff
path: root/noncore
authorllornkcor <llornkcor>2002-06-27 19:40:24 (UTC)
committer llornkcor <llornkcor>2002-06-27 19:40:24 (UTC)
commit9cd1aef30015628e06e8f24b9b7e91acb631b52b (patch) (side-by-side diff)
tree7e742209394929dea46333c13e577ccbf4e3004b /noncore
parentc2d32ceea75df8ad2e81c676acd8234597a89635 (diff)
downloadopie-9cd1aef30015628e06e8f24b9b7e91acb631b52b.zip
opie-9cd1aef30015628e06e8f24b9b7e91acb631b52b.tar.gz
opie-9cd1aef30015628e06e8f24b9b7e91acb631b52b.tar.bz2
new ofileselector
Diffstat (limited to 'noncore') (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
@@ -191,27 +191,33 @@ void Set_Alarm::amButtonToggled(bool b)
}
void Set_Alarm::pmButtonToggled(bool b)
{
if (b)
Am_RadioButton->setChecked(FALSE);
}
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 {
config.writeEntry("mp3Alarm",0);
config.writeEntry("mp3File","");
}
}