qmlfrontend/preview_acceptor.h
author sheepluva
Wed, 26 May 2021 16:32:43 -0400
changeset 15806 823cf18be1fc
parent 14392 90bd2c331703
permissions -rw-r--r--
Hedgewars lobby to IRC proxy

#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