From 7bfb8a6bb32d8a2a786cc07037e15c97e4ee9c0b Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Sun, 7 Aug 2011 21:57:25 +1000 Subject: [PATCH] QFileDialog Tweak --- SleepLib/loader_plugins/resmed_loader.cpp | 2 +- mainwindow.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/SleepLib/loader_plugins/resmed_loader.cpp b/SleepLib/loader_plugins/resmed_loader.cpp index acdbca71..f6cf3129 100644 --- a/SleepLib/loader_plugins/resmed_loader.cpp +++ b/SleepLib/loader_plugins/resmed_loader.cpp @@ -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); diff --git a/mainwindow.cpp b/mainwindow.cpp index 50245b01..ee04c740 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -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);