summary refs log tree commit diff
path: root/src/ColorImageProvider.h
blob: fd7e4822228e3a4c1c61d572e4c4a45a77225b1e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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;
};