2021-03-05 00:35:15 +01:00
|
|
|
// SPDX-FileCopyrightText: 2021 Nheko Contributors
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2019-11-08 14:39:45 +01:00
|
|
|
#include <QQuickImageProvider>
|
|
|
|
|
|
|
|
class ColorImageProvider : public QQuickImageProvider
|
|
|
|
{
|
|
|
|
public:
|
2021-09-18 00:22:33 +02:00
|
|
|
ColorImageProvider()
|
|
|
|
: QQuickImageProvider(QQuickImageProvider::Pixmap)
|
|
|
|
{}
|
2019-11-08 14:39:45 +01:00
|
|
|
|
2021-09-18 00:22:33 +02:00
|
|
|
QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize) override;
|
2019-11-08 14:39:45 +01:00
|
|
|
};
|