changeset 14392 | 90bd2c331703 |
14391:ef2fc0210362 | 14392:90bd2c331703 |
---|---|
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 |