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