mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
15 lines
401 B
C++
15 lines
401 B
C++
// SPDX-FileCopyrightText: 2021 Nheko Contributors
|
|
//
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#include <QQuickImageProvider>
|
|
|
|
class ColorImageProvider : public QQuickImageProvider
|
|
{
|
|
public:
|
|
ColorImageProvider()
|
|
: QQuickImageProvider(QQuickImageProvider::Pixmap)
|
|
{}
|
|
|
|
QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize) override;
|
|
};
|