summary refs log blame commit diff
path: root/src/ColorImageProvider.h
blob: 254cdff935a4cb527ff392acb4c12d93ea717c5e (plain) (tree)
1
2
3
4
5
6
7
8
9
                                             

                                            
                              
                                                           
       
                                                        
     
 
                                                                                               
  
// 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;
};