qmlfrontend/preview_acceptor.h
author alfadur
Mon, 07 Oct 2019 23:46:49 +0300
changeset 15443 eb1c407a9e8f
parent 14371 90bd2c331703
permissions -rw-r--r--
add protocol version

#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