mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
96f791daf1
See also: https://daniel.haxx.se/blog/2023/01/08/copyright-without-years/ https://hynek.me/til/copyright-years/
16 lines
391 B
C++
16 lines
391 B
C++
// SPDX-FileCopyrightText: Nheko Contributors
|
|
//
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#include <QQuickImageProvider>
|
|
|
|
class ColorImageProvider final : public QQuickImageProvider
|
|
{
|
|
public:
|
|
ColorImageProvider()
|
|
: QQuickImageProvider(QQuickImageProvider::Pixmap)
|
|
{
|
|
}
|
|
|
|
QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize) override;
|
|
};
|