PrismLauncher/launcher/icons/IconImageProvider.h
Sefa Eyeoglu ac33b150fa
initial qml stuff
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-12-16 19:30:53 +01:00

17 lines
381 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;
};