author | unc0rr |
Tue, 11 Sep 2018 21:16:27 +0200 | |
branch | qmlfrontend |
changeset 13777 | 5c0ea888c926 |
parent 10424 | 4be6cd55f1cf |
permissions | -rw-r--r-- |
10420 | 1 |
#ifndef PREVIEWIMAGEPROVIDER_H |
2 |
#define PREVIEWIMAGEPROVIDER_H |
|
3 |
||
4 |
#include <QQuickImageProvider> |
|
5 |
#include <QPixmap> |
|
6 |
#include <QSize> |
|
7 |
||
8 |
class PreviewImageProvider : public QQuickImageProvider |
|
9 |
{ |
|
10 |
public: |
|
11 |
PreviewImageProvider(); |
|
12 |
||
13 |
QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize); |
|
14 |
||
10424
4be6cd55f1cf
- Get rid of engine's PathPrefix and UserPathPrefix
unc0rr
parents:
10420
diff
changeset
|
15 |
void setPixmap(const QByteArray & px); |
10420 | 16 |
|
17 |
private: |
|
18 |
QPixmap m_px; |
|
19 |
}; |
|
20 |
||
21 |
#endif // PREVIEWIMAGEPROVIDER_H |