summaryrefslogtreecommitdiffstats
path: root/src/configuredialog.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-08-30 13:53:23 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-09-04 09:54:26 +0900
commitfa1f792e610a6a26b2cbd3aa98866eefc200d0dd (patch)
treeb88bdd9fe88c3883c2ac9da97e8a8bde603e0e85 /src/configuredialog.cpp
parente7c760c9c04c55e1ebfae695accf2aebcf9ad155 (diff)
downloadtdepowersave-fa1f792e610a6a26b2cbd3aa98866eefc200d0dd.tar.gz
tdepowersave-fa1f792e610a6a26b2cbd3aa98866eefc200d0dd.zip
Separate logic to set brightness by absolute level or percentage
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/configuredialog.cpp')
-rw-r--r--src/configuredialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/configuredialog.cpp b/src/configuredialog.cpp
index a7294f1..1669d24 100644
--- a/src/configuredialog.cpp
+++ b/src/configuredialog.cpp
@@ -1652,7 +1652,7 @@ void ConfigureDialog::brightnessSlider_sliderMoved( int new_value ) {
if (cB_Brightness->isEnabled() && cB_Brightness->isChecked()) {
scheme_valueChanged();
tL_valueBrightness->setText(TQString::number(new_value) + " %");
- hwinfo->setBrightness(-1, new_value);
+ hwinfo->setBrightnessPercentage(new_value);
pB_resetBrightness->setEnabled(true);
brightness_changed = true;
}
@@ -1664,7 +1664,7 @@ void ConfigureDialog::brightnessSlider_sliderMoved( int new_value ) {
void ConfigureDialog::pB_resetBrightness_clicked( ) {
kdDebugFuncIn(trace);
- hwinfo->setBrightness(brightness_last, -1);
+ hwinfo->setBrightnessLevel(brightness_last);
brightnessSlider->setValue(brightness_last);
pB_resetBrightness->setEnabled(false);
brightness_changed = false;