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