branch | hedgeroid |
changeset 15510 | 7030706266df |
parent 14371 | 90bd2c331703 |
child 16087 | 8da5a118120b |
7861:bc7b6aa5d67a | 15510:7030706266df |
---|---|
1 #ifndef PREVIEW_ACCEPTOR_H |
|
2 #define PREVIEW_ACCEPTOR_H |
|
3 |
|
4 #include <QObject> |
|
5 |
|
6 class QQmlEngine; |
|
7 class PreviewImageProvider; |
|
8 |
|
9 class PreviewAcceptor : public QObject { |
|
10 Q_OBJECT |
|
11 public: |
|
12 explicit PreviewAcceptor(QQmlEngine *engine, QObject *parent = nullptr); |
|
13 |
|
14 public slots: |
|
15 void setImage(const QImage &preview); |
|
16 |
|
17 private: |
|
18 PreviewImageProvider *m_previewProvider; |
|
19 }; |
|
20 |
|
21 #endif // PREVIEW_ACCEPTOR_H |