mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
Some more house cleaning.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16192 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
43
fscomm/preferences/prefdialog.cpp
Normal file
43
fscomm/preferences/prefdialog.cpp
Normal file
@@ -0,0 +1,43 @@
|
||||
#include <QtGui>
|
||||
#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();
|
||||
}
|
Reference in New Issue
Block a user