mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
a7a74ae9a6
commit
2432350064
5 changed files with 58 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue