aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/panel-plugins/userbutton/UserWidget.h
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2014-09-15 12:31:25 -0400
committerKen Moore <ken@pcbsd.org>2014-09-15 12:31:25 -0400
commit13c418eadd33bbbeb91146c0d3e3008fc1bcfe59 (patch)
tree9ac7d683e3557342c35feaf648e8bb4b3793ca57 /lumina-desktop/panel-plugins/userbutton/UserWidget.h
parentHave lumina-fm save/remember the last-used size and open itself with that siz... (diff)
downloadlumina-13c418eadd33bbbeb91146c0d3e3008fc1bcfe59.tar.gz
lumina-13c418eadd33bbbeb91146c0d3e3008fc1bcfe59.tar.bz2
lumina-13c418eadd33bbbeb91146c0d3e3008fc1bcfe59.zip
Update the Lumina user button a bit:
1) Add a new "All" category that is shown by default for listing applications. 2) Speed up the time to open the user menu by only reloading if more than 30 seconds have passed since the previous time it was opened.
Diffstat (limited to 'lumina-desktop/panel-plugins/userbutton/UserWidget.h')
-rw-r--r--lumina-desktop/panel-plugins/userbutton/UserWidget.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lumina-desktop/panel-plugins/userbutton/UserWidget.h b/lumina-desktop/panel-plugins/userbutton/UserWidget.h
index b9eaffbe..0b42bff8 100644
--- a/lumina-desktop/panel-plugins/userbutton/UserWidget.h
+++ b/lumina-desktop/panel-plugins/userbutton/UserWidget.h
@@ -15,6 +15,7 @@
#include <QHash>
#include <QVBoxLayout>
#include <QScrollArea>
+#include <QDateTime>
#include <LuminaXDG.h>
#include <LuminaOS.h>
@@ -40,6 +41,7 @@ public:
private:
Ui::UserWidget *ui;
QHash<QString, QList<XDGDesktop> > *sysapps;
+ QDateTime lastUpdate;
int cfav; //current favorite category
void ClearScrollArea(QScrollArea *area);
bgstack15