Do not load images that were already released
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user