qmlfrontend/preview_acceptor.h
author Wuzzy <Wuzzy2@mail.ru>
Sat, 29 Jun 2019 23:12:21 +0200
changeset 15226 8705ee93f8b3
parent 14392 90bd2c331703
child 16116 8da5a118120b
permissions -rw-r--r--
Display special icon when moving bee cursor over gray wrap area This is done as a reminder to remind the player the bee will attempt to fly through the edge first when placing the target in one of the two gray areas.

#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