qmlfrontend/preview_acceptor.h
author Wuzzy <Wuzzy2@mail.ru>
Mon, 06 Jul 2020 13:51:41 +0200
changeset 15688 31ca6451056a
parent 14371 90bd2c331703
child 16087 8da5a118120b
permissions -rw-r--r--
AI: 0.01% chance to use kamikaze with "wishes" ;-)

#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