qmlfrontend/preview_acceptor.h
author Wuzzy <Wuzzy2@mail.ru>
Fri, 25 Jan 2019 06:46:13 +0100
changeset 14670 56831f466d1d
parent 14371 90bd2c331703
permissions -rw-r--r--
Add settings.ini setting and hwengine param to disable holiday silliness (hat changes, etc.) settings.ini: In section [misc], add "holidaySilliness=false" hwengine: Add --no-holiday-silliness to command-line

#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