qmlfrontend/preview_acceptor.h
author Wuzzy <Wuzzy2@mail.ru>
Mon, 08 Jun 2020 19:45:11 +0200
changeset 15608 308930fe5f4a
parent 14371 90bd2c331703
permissions -rw-r--r--
AI: Remove own gear from explosion/shove checks in kami/piano test

#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