aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/panel-plugins/systemdashboard/SysMenuQuick.h
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2015-04-17 08:15:57 -0400
committerKen Moore <ken@pcbsd.org>2015-04-17 08:15:57 -0400
commit77775ca3ff616e7dc798a5ffe5546be2b894330c (patch)
treee5145835fe1fb092a8ee69c91668f2e54a01a726 /lumina-desktop/panel-plugins/systemdashboard/SysMenuQuick.h
parentFix the session chimes (and possible stability issue) by removing the special... (diff)
downloadlumina-77775ca3ff616e7dc798a5ffe5546be2b894330c.tar.gz
lumina-77775ca3ff616e7dc798a5ffe5546be2b894330c.tar.bz2
lumina-77775ca3ff616e7dc798a5ffe5546be2b894330c.zip
Update the system dashboard behavior a bit:
1) Add a signal collector/combiner for screen brightness changes (1/10 second delay) - since hardware brightness changes cannot usually be spammed too quickly. 2) Update the battery icon notifications on the panel button. If less than 5% left, leave the low battery icon there all the time, if less than 15% cause the low battery icon to flash intermittently, if greater than that don't show any battery icon.
Diffstat (limited to 'lumina-desktop/panel-plugins/systemdashboard/SysMenuQuick.h')
-rw-r--r--lumina-desktop/panel-plugins/systemdashboard/SysMenuQuick.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lumina-desktop/panel-plugins/systemdashboard/SysMenuQuick.h b/lumina-desktop/panel-plugins/systemdashboard/SysMenuQuick.h
index 7b3c2d09..816eb009 100644
--- a/lumina-desktop/panel-plugins/systemdashboard/SysMenuQuick.h
+++ b/lumina-desktop/panel-plugins/systemdashboard/SysMenuQuick.h
@@ -32,12 +32,14 @@ public:
private:
Ui::LSysMenuQuick *ui;
QSettings *settings;
-
+ QTimer *brighttimer;
+
QString getRemainingTime(); //battery time left
private slots:
void volSliderChanged();
- void brightSliderChanged();
+ void brightSliderChanged(); //start the delay/collection timer
+ void setCurrentBrightness(); //perform the change
void startMixer();
void nextWorkspace();
void prevWorkspace();
bgstack15