qmlfrontend/preview_acceptor.h
author alfadur
Mon, 26 Aug 2019 17:32:43 +0300
changeset 15356 277acc9f9fcf
parent 14371 90bd2c331703
permissions -rw-r--r--
implement addition to/removal from blocks

#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