qmlfrontend/preview_acceptor.h
author alfadur
Sun, 09 Dec 2018 04:09:38 +0300
changeset 14392 e335b3120f59
parent 14371 90bd2c331703
permissions -rw-r--r--
pull file io out of server handler

#ifndef PREVIEW_ACCEPTOR_H
#define PREVIEW_ACCEPTOR_H

#include <QObject>

class QQmlEngine;
class PreviewImageProvider;

class PreviewAcceptor : public QObject {
  Q_OBJECT
 public:
  explicit PreviewAcceptor(QQmlEngine *engine, QObject *parent = nullptr);

 public slots:
  void setImage(const QImage &preview);

 private:
  PreviewImageProvider *m_previewProvider;
};

#endif  // PREVIEW_ACCEPTOR_H