qmlfrontend/preview_acceptor.h
author alfadur
Wed, 22 Mar 2023 18:53:00 +0300
changeset 15960 ab57c0d81748
parent 14392 90bd2c331703
permissions -rw-r--r--
add a client moderator flag just to commit something

#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