Store all snowflakes in a separate array, achieving performance increase of about 10% for the whole engine on winter maps
#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