qmlfrontend/previewimageprovider.h
author alfadur
Wed, 07 Nov 2018 03:35:56 +0300
changeset 14151 3c8a33ba06ba
parent 14143 745c73e0e644
permissions -rw-r--r--
start loading theme textures

#ifndef PREVIEWIMAGEPROVIDER_H
#define PREVIEWIMAGEPROVIDER_H

#include <QPixmap>
#include <QQuickImageProvider>
#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