author | unc0rr |
Sat, 27 Sep 2014 12:49:08 +0400 | |
branch | qmlfrontend |
changeset 10424 | 4be6cd55f1cf |
parent 10420 | 02c573d19224 |
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