qmlfrontend/preview_acceptor.h
author sheepluva
Sat, 04 Jul 2020 15:31:51 +0200
changeset 15666 10bcec19045c
parent 14371 90bd2c331703
permissions -rw-r--r--
Fix pas2c breakage caused by superfluous "+"s added by 250c778463f3, d9c62f196fe0 and 92ce801d0681

#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