Skip to content
Snippets Groups Projects
ColorImageProvider.h 401 B
Newer Older
  • Learn to ignore specific revisions
  • Nicolas Werner's avatar
    Nicolas Werner committed
    // 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;
    };