qmlfrontend/preview_acceptor.h
author Wuzzy <Wuzzy2@mail.ru>
Tue, 29 Oct 2019 22:03:08 +0100
changeset 15499 55436712b5e9
parent 14376 90bd2c331703
permissions -rw-r--r--
Rope Training: Add flower effects when player returns all the way to the start

#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