qmlFrontend/themeiconprovider.h
author sheepluva
Sun, 01 May 2016 15:58:19 +0200
branchqmlfrontend
changeset 11786 0aa4b3d02cba
parent 10436 084e046f6bd5
permissions -rw-r--r--
qmlfrontend: tweak map preview a little in an attempt to buy back unC0Rr's <3

#ifndef THEMEICONPROVIDER_H
#define THEMEICONPROVIDER_H

#include <QQuickImageProvider>
#include <QImage>

#include "flib.h"

class ThemeIconProvider : public QQuickImageProvider
{
public:
    ThemeIconProvider();

    void setFileContentsFunction(getThemeIcon_t *f);

    QImage requestImage(const QString &id, QSize *size, const QSize &requestedSize);
private:
    getThemeIcon_t *getThemeIcon;
};

#endif // THEMEICONPROVIDER_H