qmlfrontend/previewimageprovider.h
author sheepluva
Sat, 06 Jan 2018 03:17:12 +0100
branchqmlfrontend
changeset 12882 bf58f2403953
parent 12861 488782d9aba9
permissions -rw-r--r--
whoops, I ruined the path of the unC0Rr

#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