matrixion/src/ColorImageProvider.h

17 lines
391 B
C
Raw Normal View History

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