mirror-chatterino2/lazyloadedimage.h

22 lines
316 B
C
Raw Normal View History

2017-01-04 15:12:31 +01:00
#ifndef LAZYLOADEDIMAGE_H
#define LAZYLOADEDIMAGE_H
2017-01-05 16:07:20 +01:00
#include "QString"
#include "QImage"
2017-01-04 15:12:31 +01:00
class LazyLoadedImage
{
public:
2017-01-05 16:07:20 +01:00
LazyLoadedImage(QString url);
LazyLoadedImage(QImage* image);
QImage* image() {
return m_image;
}
private:
QImage* m_image = NULL;
2017-01-04 15:12:31 +01:00
};
2017-01-05 16:07:20 +01:00
#endif // LAZYLOADEDIMAGE_H