qmlFrontend/previewimageprovider.h
author sheepluva
Sat, 06 Jan 2018 03:05:14 +0100
branchqmlfrontend
changeset 12886 07a267d72fce
parent 10424 4be6cd55f1cf
permissions -rw-r--r--
fix issues and my past sins with GL2 remaining issue: tintadd (crosshair)

#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