qmlfrontend/preview_acceptor.h
author unc0rr
Wed, 04 Sep 2019 23:23:23 +0200
changeset 15415 b7e40129dbdb
parent 14392 90bd2c331703
child 16116 8da5a118120b
permissions -rw-r--r--
Set dX to zero in hedgehog walk routine to prevent unexpected changes in X coordinate in certain conditions

#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