#include #include "prefdialog.h" #include "ui_prefdialog.h" #include "prefportaudio.h" PrefDialog::PrefDialog(QWidget *parent) : QDialog(parent), ui(new Ui::PrefDialog) { ui->setupUi(this); _settings = new QSettings(); connect(this, SIGNAL(accepted()), this, SLOT(writeConfig())); _mod_portaudio = new PrefPortaudio(ui, this); readConfig(); } PrefDialog::~PrefDialog() { delete ui; } void PrefDialog::writeConfig() { _mod_portaudio->writeConfig(); } void PrefDialog::changeEvent(QEvent *e) { QDialog::changeEvent(e); switch (e->type()) { case QEvent::LanguageChange: ui->retranslateUi(this); break; default: break; } } void PrefDialog::readConfig() { _mod_portaudio->readConfig(); }