qmlfrontend/preview_acceptor.h
author unc0rr
Thu, 13 Dec 2018 23:44:46 +0100
changeset 14435 a1613788130d
parent 14371 90bd2c331703
child 16087 8da5a118120b
permissions -rw-r--r--
Adopt physfs-rs lib and adapt it to recent std library, remove global mutex

#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