qmlFrontend/previewimageprovider.h
author unc0rr
Fri, 05 Jan 2018 21:43:33 +0100
branchqmlfrontend
changeset 12882 c9418f57fcbc
parent 10424 4be6cd55f1cf
permissions -rw-r--r--
Comment out functions that don't need to be called for engine in frontend window

#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