Do not load images that were already released

This commit is contained in:
2019-08-21 16:32:14 +02:00
parent 50dcd4b902
commit f0e4923a68
5 changed files with 75 additions and 44 deletions
+2
View File
@@ -12,6 +12,7 @@ class Image : public QObject
Q_OBJECT
bool m_loading;
bool m_released;
bool m_current;
QPixmap m_pixmap;
QString m_name;
public:
@@ -20,6 +21,7 @@ public:
void release();
QString name() const;
QPixmap pixmap() const;
bool isCurrent() const;
signals:
void pixmapLoaded(Image *ptr);
protected slots: