author | Wuzzy <Wuzzy2@mail.ru> |
Thu, 10 Jan 2019 19:47:18 +0100 | |
changeset 14545 | adf3e7d94db0 |
parent 14154 | 8354b390f1a2 |
permissions | -rw-r--r-- |
14143 | 1 |
#ifndef PREVIEWIMAGEPROVIDER_H |
2 |
#define PREVIEWIMAGEPROVIDER_H |
|
3 |
||
4 |
#include <QPixmap> |
|
5 |
#include <QQuickImageProvider> |
|
6 |
#include <QSize> |
|
7 |
||
8 |
class PreviewImageProvider : public QQuickImageProvider { |
|
9 |
public: |
|
10 |
PreviewImageProvider(); |
|
11 |
||
12 |
QPixmap requestPixmap(const QString &id, QSize *size, |
|
13 |
const QSize &requestedSize); |
|
14 |
||
14154
8354b390f1a2
Some refactoring of qmlfrontend. It now shows land preview generated by hedgewars-engine
unC0Rr
parents:
14143
diff
changeset
|
15 |
void setImage(const QImage &preview); |
14143 | 16 |
|
17 |
private: |
|
18 |
QPixmap m_px; |
|
19 |
}; |
|
20 |
||
21 |
#endif // PREVIEWIMAGEPROVIDER_H |