From 77775ca3ff616e7dc798a5ffe5546be2b894330c Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Fri, 17 Apr 2015 08:15:57 -0400 Subject: 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. --- lumina-desktop/panel-plugins/systemdashboard/SysMenuQuick.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lumina-desktop/panel-plugins/systemdashboard/SysMenuQuick.h') 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(); -- cgit