author | unc0rr |
Fri, 22 Dec 2017 23:59:03 +0100 | |
branch | qmlfrontend |
changeset 12862 | 90f927b4b9e1 |
parent 10436 | 084e046f6bd5 |
permissions | -rw-r--r-- |
10436 | 1 |
#ifndef THEMEICONPROVIDER_H |
2 |
#define THEMEICONPROVIDER_H |
|
3 |
||
4 |
#include <QQuickImageProvider> |
|
5 |
#include <QImage> |
|
6 |
||
7 |
#include "flib.h" |
|
8 |
||
9 |
class ThemeIconProvider : public QQuickImageProvider |
|
10 |
{ |
|
11 |
public: |
|
12 |
ThemeIconProvider(); |
|
13 |
||
14 |
void setFileContentsFunction(getThemeIcon_t *f); |
|
15 |
||
16 |
QImage requestImage(const QString &id, QSize *size, const QSize &requestedSize); |
|
17 |
private: |
|
18 |
getThemeIcon_t *getThemeIcon; |
|
19 |
}; |
|
20 |
||
21 |
#endif // THEMEICONPROVIDER_H |