diff options
author | Ken Moore <ken@ixsystems.com> | 2017-05-26 15:41:55 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-05-26 15:41:55 -0400 |
commit | 85a9a67f94e967e7fce92df777b9b803ba676a73 (patch) | |
tree | df8e32ad88742962e1073744d77c02a2ae02c407 /src-qt5/core/libLumina/LIconCache.h | |
parent | Get the new Icon Cache system implemented and turned on for the desktop "appl... (diff) | |
download | lumina-85a9a67f94e967e7fce92df777b9b803ba676a73.tar.gz lumina-85a9a67f94e967e7fce92df777b9b803ba676a73.tar.bz2 lumina-85a9a67f94e967e7fce92df777b9b803ba676a73.zip |
Get the icon cache system all setup for the bulk of the desktop icons (application menus, etc). Now we are starting to see the better performance from this system... :-)
Diffstat (limited to 'src-qt5/core/libLumina/LIconCache.h')
-rw-r--r-- | src-qt5/core/libLumina/LIconCache.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src-qt5/core/libLumina/LIconCache.h b/src-qt5/core/libLumina/LIconCache.h index 4a8f3442..cf585675 100644 --- a/src-qt5/core/libLumina/LIconCache.h +++ b/src-qt5/core/libLumina/LIconCache.h @@ -17,14 +17,15 @@ #include <QAbstractButton> #include <QLabel> #include <QAction> +#include <QPointer> //Data structure for saving the icon/information internally struct icon_data{ QString fullpath; QDateTime lastread; - QList<QLabel*> pendingLabels; - QList<QAbstractButton*> pendingButtons; - QList<QAction*> pendingActions; + QList<QPointer<QLabel> > pendingLabels; + QList<QPointer<QAbstractButton> > pendingButtons; + QList<QPointer<QAction> > pendingActions; QIcon icon; QIcon thumbnail; }; @@ -57,6 +58,7 @@ private: QStringList getChildIconDirs(QString path); //recursive function to find directories with icons in them QStringList getIconThemeDepChain(QString theme, QStringList paths); + void startReadFile(QString id, QString path); void ReadFile(LIconCache *obj, QString id, QString path); private slots: |