author | nemo |
Tue, 06 Nov 2018 12:44:38 -0500 | |
changeset 14168 | 89acfded7722 |
parent 14164 | 745c73e0e644 |
permissions | -rw-r--r-- |
#ifndef PREVIEWIMAGEPROVIDER_H #define PREVIEWIMAGEPROVIDER_H #include <QPixmap> #include <QQuickImageProvider> #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