qmlfrontend/preview_acceptor.h
author nemo
Fri, 11 Jan 2019 08:08:28 -0500
changeset 14575 397b2f4502c1
parent 14392 90bd2c331703
permissions -rw-r--r--
couple more use after frees for gear deletion. also rearranged lines a bit and added a redundant exit to try to proof things a bit. more evidence we need rust.

#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