author | sheepluva |
Sat, 06 Jan 2018 03:05:14 +0100 | |
branch | qmlfrontend |
changeset 12886 | 07a267d72fce |
parent 12866 | 488782d9aba9 |
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