author | unC0Rr |
Wed, 28 Aug 2024 15:31:51 +0200 | |
branch | transitional_engine |
changeset 16021 | 6a3dc15b78b9 |
parent 14371 | 90bd2c331703 |
permissions | -rw-r--r-- |
14371
90bd2c331703
Add possibility to instantiate HWEngine objects from QML, reorganize work with preview
unC0Rr
parents:
diff
changeset
|
1 |
#ifndef PREVIEW_ACCEPTOR_H |
90bd2c331703
Add possibility to instantiate HWEngine objects from QML, reorganize work with preview
unC0Rr
parents:
diff
changeset
|
2 |
#define PREVIEW_ACCEPTOR_H |
90bd2c331703
Add possibility to instantiate HWEngine objects from QML, reorganize work with preview
unC0Rr
parents:
diff
changeset
|
3 |
|
90bd2c331703
Add possibility to instantiate HWEngine objects from QML, reorganize work with preview
unC0Rr
parents:
diff
changeset
|
4 |
#include <QObject> |
90bd2c331703
Add possibility to instantiate HWEngine objects from QML, reorganize work with preview
unC0Rr
parents:
diff
changeset
|
5 |
|
90bd2c331703
Add possibility to instantiate HWEngine objects from QML, reorganize work with preview
unC0Rr
parents:
diff
changeset
|
6 |
class QQmlEngine; |
90bd2c331703
Add possibility to instantiate HWEngine objects from QML, reorganize work with preview
unC0Rr
parents:
diff
changeset
|
7 |
class PreviewImageProvider; |
90bd2c331703
Add possibility to instantiate HWEngine objects from QML, reorganize work with preview
unC0Rr
parents:
diff
changeset
|
8 |
|
90bd2c331703
Add possibility to instantiate HWEngine objects from QML, reorganize work with preview
unC0Rr
parents:
diff
changeset
|
9 |
class PreviewAcceptor : public QObject { |
90bd2c331703
Add possibility to instantiate HWEngine objects from QML, reorganize work with preview
unC0Rr
parents:
diff
changeset
|
10 |
Q_OBJECT |
90bd2c331703
Add possibility to instantiate HWEngine objects from QML, reorganize work with preview
unC0Rr
parents:
diff
changeset
|
11 |
public: |
90bd2c331703
Add possibility to instantiate HWEngine objects from QML, reorganize work with preview
unC0Rr
parents:
diff
changeset
|
12 |
explicit PreviewAcceptor(QQmlEngine *engine, QObject *parent = nullptr); |
90bd2c331703
Add possibility to instantiate HWEngine objects from QML, reorganize work with preview
unC0Rr
parents:
diff
changeset
|
13 |
|
90bd2c331703
Add possibility to instantiate HWEngine objects from QML, reorganize work with preview
unC0Rr
parents:
diff
changeset
|
14 |
public slots: |
90bd2c331703
Add possibility to instantiate HWEngine objects from QML, reorganize work with preview
unC0Rr
parents:
diff
changeset
|
15 |
void setImage(const QImage &preview); |
90bd2c331703
Add possibility to instantiate HWEngine objects from QML, reorganize work with preview
unC0Rr
parents:
diff
changeset
|
16 |
|
90bd2c331703
Add possibility to instantiate HWEngine objects from QML, reorganize work with preview
unC0Rr
parents:
diff
changeset
|
17 |
private: |
90bd2c331703
Add possibility to instantiate HWEngine objects from QML, reorganize work with preview
unC0Rr
parents:
diff
changeset
|
18 |
PreviewImageProvider *m_previewProvider; |
90bd2c331703
Add possibility to instantiate HWEngine objects from QML, reorganize work with preview
unC0Rr
parents:
diff
changeset
|
19 |
}; |
90bd2c331703
Add possibility to instantiate HWEngine objects from QML, reorganize work with preview
unC0Rr
parents:
diff
changeset
|
20 |
|
90bd2c331703
Add possibility to instantiate HWEngine objects from QML, reorganize work with preview
unC0Rr
parents:
diff
changeset
|
21 |
#endif // PREVIEW_ACCEPTOR_H |