qmlfrontend/preview_acceptor.h
author unC0Rr
Fri, 09 Dec 2022 08:18:50 +0100
changeset 15898 046182f1080b
parent 14371 90bd2c331703
permissions -rw-r--r--
Optimize doStepSnowflake a bit, losing backwards compatibility

#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