diff options
author | Joseph W. Joshua <joejoshw@gmail.com> | 2014-06-07 21:56:44 +0300 |
---|---|---|
committer | Thiago Macieira <thiago@macieira.org> | 2014-08-09 12:01:56 -0300 |
commit | 2432350064c6a9109501b3df21f56a9fe41aa686 (patch) | |
tree | b7560ecfee5b98ca084dadad121af2fac71dcc9f /qt-ui/configuredivecomputerdialog.cpp | |
parent | a7a74ae9a630dba8ba29afb3fece6c9f5bf3639d (diff) | |
download | subsurface-2432350064c6a9109501b3df21f56a9fe41aa686.tar.gz |
Add brightness setting
Adds a setting to control the device's brightness. Currently I
have only the OSTC 3. Will add more afterwards.
Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com>
Signed-off-by: Thiago Macieira <thiago@macieira.org>
Diffstat (limited to 'qt-ui/configuredivecomputerdialog.cpp')
-rw-r--r-- | qt-ui/configuredivecomputerdialog.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-ui/configuredivecomputerdialog.cpp b/qt-ui/configuredivecomputerdialog.cpp index b88715fc9..1d5b1d7f8 100644 --- a/qt-ui/configuredivecomputerdialog.cpp +++ b/qt-ui/configuredivecomputerdialog.cpp @@ -210,3 +210,9 @@ void ConfigureDiveComputerDialog::on_setDateAndTime_clicked() getDeviceData(); config->setDeviceDateAndTime(&device_data, QDateTime::currentDateTime()); } + +void ConfigureDiveComputerDialog::on_setBrightnessButton_clicked() +{ + getDeviceData(); + config->setDeviceBrightness(&device_data, ui->brightnessComboBox->currentIndex()); +} |