qmlFrontend/previewimageprovider.h
author unc0rr
Sun, 17 May 2015 00:14:30 +0300
branchqmlfrontend
changeset 10933 f1da4126a61c
parent 10424 4be6cd55f1cf
permissions -rw-r--r--
Some more work on flib network

#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