qmlFrontend/themeiconprovider.h
author unc0rr
Sun, 22 Nov 2015 18:06:32 +0300
branchqmlfrontend
changeset 11425 2947f06e8533
parent 10436 084e046f6bd5
permissions -rw-r--r--
Another approach to parsing two-lines protocol commands

#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