author | unc0rr |
Tue, 24 Nov 2015 20:19:00 +0300 | |
branch | qmlfrontend |
changeset 11429 | d96a37de1076 |
parent 10424 | 4be6cd55f1cf |
permissions | -rw-r--r-- |
#ifndef PREVIEWIMAGEPROVIDER_H #define PREVIEWIMAGEPROVIDER_H #include <QQuickImageProvider> #include <QPixmap> #include <QSize> class PreviewImageProvider : public QQuickImageProvider { public: PreviewImageProvider(); QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize); void setPixmap(const QByteArray & px); private: QPixmap m_px; }; #endif // PREVIEWIMAGEPROVIDER_H