qmlFrontend/previewimageprovider.h
author unc0rr
Mon, 07 Dec 2015 00:05:41 +0300
branchqmlfrontend
changeset 11454 2bf0491d5e88
parent 10424 4be6cd55f1cf
permissions -rw-r--r--
Client flags handling implementation start

#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