Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
ColorImageProvider.h 401 B
// 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;
};