qmlFrontend/themeiconprovider.h
author unc0rr
Fri, 05 Jan 2018 21:43:33 +0100
branchqmlfrontend
changeset 12877 c9418f57fcbc
parent 10436 084e046f6bd5
permissions -rw-r--r--
Comment out functions that don't need to be called for engine in frontend window

#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