You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
360 B

#pragma once
#include <QQuickImageProvider>
class GameIconProvider : public QQuickImageProvider
{
public:
GameIconProvider();
QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize) override;
void addPixmap(const QString &key, const QPixmap pixmap);
void clear();
private:
QMap<QString, QPixmap> m_pixmaps;
};