qmlfrontend/preview_acceptor.h
author unC0Rr
Thu, 30 Jan 2025 13:59:31 +0100
changeset 16075 2c2b094e6bbe
parent 14371 90bd2c331703
child 16087 8da5a118120b
permissions -rw-r--r--
Square tile weights for better control over probabilities

#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