[companion][general settings]Just cosmetcs (re-indent and spaces).

This commit is contained in:
Grieb
2015-04-24 12:13:51 -03:00
parent 62239aac0e
commit ce2e8ac1ca
4 changed files with 47 additions and 47 deletions
+22 -22
View File
@@ -3,8 +3,8 @@
#include <QMessageBox> #include <QMessageBox>
GeneralSetupPanel::GeneralSetupPanel(QWidget * parent, GeneralSettings & generalSettings, Firmware * firmware): GeneralSetupPanel::GeneralSetupPanel(QWidget * parent, GeneralSettings & generalSettings, Firmware * firmware):
GeneralPanel(parent, generalSettings, firmware), GeneralPanel(parent, generalSettings, firmware),
ui(new Ui::GeneralSetup) ui(new Ui::GeneralSetup)
{ {
ui->setupUi(this); ui->setupUi(this);
@@ -358,8 +358,8 @@ void GeneralSetupPanel::on_faimode_CB_stateChanged(int)
{ {
if (ui->faimode_CB->isChecked()) { if (ui->faimode_CB->isChecked()) {
int ret = QMessageBox::question(this, "Companion", int ret = QMessageBox::question(this, "Companion",
tr("If you enable FAI, you loose the vario, the play functions, the telemetry screen.\nThis function cannot be disabled by the radio.\nAre you sure ?") , tr("If you enable FAI, you loose the vario, the play functions, the telemetry screen.\nThis function cannot be disabled by the radio.\nAre you sure ?") ,
QMessageBox::Yes | QMessageBox::No); QMessageBox::Yes | QMessageBox::No);
if (ret==QMessageBox::Yes) { if (ret==QMessageBox::Yes) {
generalSettings.fai = true; generalSettings.fai = true;
} }
@@ -375,58 +375,58 @@ void GeneralSetupPanel::on_faimode_CB_stateChanged(int)
void GeneralSetupPanel::on_speakerPitchSB_editingFinished() void GeneralSetupPanel::on_speakerPitchSB_editingFinished()
{ {
generalSettings.speakerPitch = ui->speakerPitchSB->value(); generalSettings.speakerPitch = ui->speakerPitchSB->value();
emit modified(); emit modified();
} }
void GeneralSetupPanel::on_hapticStrength_valueChanged() void GeneralSetupPanel::on_hapticStrength_valueChanged()
{ {
generalSettings.hapticStrength = ui->hapticStrength->value(); generalSettings.hapticStrength = ui->hapticStrength->value();
emit modified(); emit modified();
} }
void GeneralSetupPanel::on_soundModeCB_currentIndexChanged(int index) void GeneralSetupPanel::on_soundModeCB_currentIndexChanged(int index)
{ {
generalSettings.speakerMode = index; generalSettings.speakerMode = index;
emit modified(); emit modified();
} }
void GeneralSetupPanel::on_splashScreenChkB_stateChanged(int ) void GeneralSetupPanel::on_splashScreenChkB_stateChanged(int )
{ {
generalSettings.splashMode = ui->splashScreenChkB->isChecked() ? 0 : 1; generalSettings.splashMode = ui->splashScreenChkB->isChecked() ? 0 : 1;
emit modified(); emit modified();
} }
void GeneralSetupPanel::on_splashScreenDuration_currentIndexChanged(int index) void GeneralSetupPanel::on_splashScreenDuration_currentIndexChanged(int index)
{ {
generalSettings.splashDuration = 3-index; generalSettings.splashDuration = 3-index;
emit modified(); emit modified();
} }
void GeneralSetupPanel::on_beepVolume_SL_valueChanged() void GeneralSetupPanel::on_beepVolume_SL_valueChanged()
{ {
generalSettings.beepVolume=ui->beepVolume_SL->value(); generalSettings.beepVolume=ui->beepVolume_SL->value();
emit modified(); emit modified();
} }
void GeneralSetupPanel::on_wavVolume_SL_valueChanged() void GeneralSetupPanel::on_wavVolume_SL_valueChanged()
{ {
generalSettings.wavVolume=ui->wavVolume_SL->value(); generalSettings.wavVolume=ui->wavVolume_SL->value();
emit modified(); emit modified();
} }
void GeneralSetupPanel::on_varioVolume_SL_valueChanged() void GeneralSetupPanel::on_varioVolume_SL_valueChanged()
{ {
generalSettings.varioVolume=ui->varioVolume_SL->value(); generalSettings.varioVolume=ui->varioVolume_SL->value();
emit modified(); emit modified();
} }
void GeneralSetupPanel::on_bgVolume_SL_valueChanged() void GeneralSetupPanel::on_bgVolume_SL_valueChanged()
{ {
generalSettings.backgroundVolume=ui->bgVolume_SL->value(); generalSettings.backgroundVolume=ui->bgVolume_SL->value();
emit modified(); emit modified();
} }
void GeneralSetupPanel::on_varioP0_SB_editingFinished() void GeneralSetupPanel::on_varioP0_SB_editingFinished()