mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-23 15:45:53 +00:00
21 lines
423 B
C
21 lines
423 B
C
|
/*
|
||
|
SPDX-FileCopyrightText: 2018 Julian Wolff <wolff@julianwolff.de>
|
||
|
|
||
|
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;
|
||
|
};
|