QortalOS Brooklyn for Raspberry Pi 4
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
423 B

/*
SPDX-FileCopyrightText: 2018 Julian Wolff <[email protected]>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#pragma once
#include <QFont>
#include <QQuickImageProvider>
class PreviewImageProvider : public QQuickImageProvider
{
public:
PreviewImageProvider(const QFont &font);
QImage requestImage(const QString &id, QSize *size, const QSize &requestedSize) override;
private:
QFont m_font;
};