qmlfrontend/preview_acceptor.h
author unc0rr
Tue, 01 Jan 2019 02:22:01 +0100
changeset 14511 a4d560aeda96
parent 14376 90bd2c331703
permissions -rw-r--r--
- Never consider a bot in inf attacks mode being in after attack mode, helps action in inf attack - Also start thinking if TurnTimeLeft is bigger than default value

#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