QFileDialog Tweak

This commit is contained in:
Mark Watkins 2011-08-07 21:57:25 +10:00
parent f045b49df5
commit 7bfb8a6bb3
2 changed files with 4 additions and 2 deletions

View File

@ -692,7 +692,7 @@ bool ResmedLoader::LoadPLD(Session *sess,EDFParser &edf)
a=ToTimeDelta(sess,edf,es, code,recs,duration,0,0);
//a->setMax(1);
//a->setMin(0);
} else if (es.label=="Therapy Pres") {
} else if ((es.label=="Therapy Pres") || (es.label=="Insp Pres")) {
code=CPAP_IPAP; //TherapyPressure;
//EventList *a=new EventList(code,EVL_Waveform,es.gain,es.offset,es.physical_minimum,es.physical_maximum,rate);
//sess->eventlist[code].push_back(a);

View File

@ -175,8 +175,10 @@ void MainWindow::Startup()
void MainWindow::on_action_Import_Data_triggered()
{
QStringList dirNames;
QFileDialog qfd(this);
qfd.setFileMode(QFileDialog::DirectoryOnly);
qfd.setFileMode(QFileDialog::Directory);
qfd.setOption(QFileDialog::ShowDirsOnly,true);
if (qfd.exec()) {
qprogress->setValue(0);