dispmap/svimageprovider.h

23 lines
467 B
C
Raw Normal View History

2014-07-11 20:35:48 +04:00
#ifndef SVIMAGEPROVIDER_H
#define SVIMAGEPROVIDER_H
#include <QtQuick/QQuickImageProvider>
#include <QHash>
#include "svimage.h"
2014-07-14 10:55:56 +04:00
#include <QDebug>
2014-07-11 20:35:48 +04:00
class SvImageProvider : public QQuickImageProvider
{
protected:
QHash<QString, SvImage*> m_images;
public:
SvImageProvider();
virtual QImage requestImage(const QString &id, QSize *size, const QSize& requestedSize);
void addImage(const QString &name, SvImage* image);
};
#endif // SVIMAGEPROVIDER_H