qmlfrontend/preview_acceptor.h
author unC0Rr
Mon, 27 Jan 2025 22:22:10 +0100
changeset 16100 fba762376a07
parent 14392 90bd2c331703
child 16116 8da5a118120b
permissions -rw-r--r--
- Reduce wfc templates definition file by removing excess fields with false value - Add first attempt at spikes tile set

#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