diff options
author | Ken Moore <ken@pcbsd.org> | 2015-04-27 15:05:03 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-04-27 15:05:03 -0400 |
commit | ddf397d485ddb2cc391f8e0e7fe74642891d62e9 (patch) | |
tree | 727677845f062d26288e82ef2997d1b813efcee8 /lumina-desktop/panel-plugins/userbutton/UserWidget.h | |
parent | Add support for system-defined default non-mime applications in the luminaDes... (diff) | |
download | lumina-ddf397d485ddb2cc391f8e0e7fe74642891d62e9.tar.gz lumina-ddf397d485ddb2cc391f8e0e7fe74642891d62e9.tar.bz2 lumina-ddf397d485ddb2cc391f8e0e7fe74642891d62e9.zip |
Setup the lumina-desktop to use the new favorites system:
1) Convert any old system to the new one on login (0.8.4-devel users will need to wait until 0.8.4-release or 0.8.5-devel - the next change to the session version).
2) Update the User Buton plugin to use the new system and streamline when it actually probes the filesystem for changes (makes it even faster)
3) Update the Desktop Bar plugin to use the new system as well.
Diffstat (limited to 'lumina-desktop/panel-plugins/userbutton/UserWidget.h')
-rw-r--r-- | lumina-desktop/panel-plugins/userbutton/UserWidget.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lumina-desktop/panel-plugins/userbutton/UserWidget.h b/lumina-desktop/panel-plugins/userbutton/UserWidget.h index c7af2a4d..8f5ba852 100644 --- a/lumina-desktop/panel-plugins/userbutton/UserWidget.h +++ b/lumina-desktop/panel-plugins/userbutton/UserWidget.h @@ -42,7 +42,9 @@ public slots: private: Ui::UserWidget *ui; QHash<QString, QList<XDGDesktop> > *sysapps; - QDateTime lastUpdate; + QDateTime lastUpdate, lastHomeUpdate; + QStringList favs; + QFileInfoList homefiles; int cfav; //current favorite category void ClearScrollArea(QScrollArea *area); QIcon rotateIcon(QIcon); @@ -52,7 +54,7 @@ private slots: //Favorites Tab void FavChanged(); //for ensuring radio-button-like behaviour - void updateFavItems(); + void updateFavItems(bool newfilter = true); //if false, will only update if filesystem changes //Apps Tab void updateAppCategories(); |