5681751ab4
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
16 lines
387 B
C++
16 lines
387 B
C++
#pragma once
|
|
#include "IconList.h"
|
|
|
|
#include <QQuickImageProvider>
|
|
|
|
class IconImageProvider : public QQuickImageProvider {
|
|
public:
|
|
IconImageProvider(std::shared_ptr<IconList> iconList, int iconSize = 48);
|
|
|
|
QPixmap requestPixmap(const QString& id, QSize* size, const QSize& requestedSize) override;
|
|
|
|
private:
|
|
std::shared_ptr<IconList> m_iconList;
|
|
int m_iconSize;
|
|
};
|