qmlfrontend/preview_acceptor.h
author LocutusOfBorg
Thu, 10 Oct 2019 09:39:43 -0400
changeset 15453 f28016c508c0
parent 14371 90bd2c331703
permissions -rw-r--r--
travis: refresh dependencies, use physfs from my ppa instead of build…

#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