aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/LIconCache.h
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/core/libLumina/LIconCache.h')
-rw-r--r--src-qt5/core/libLumina/LIconCache.h8
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:
bgstack15