// SPDX-FileCopyrightText: 2023 Tobias Fella // SPDX-License-Identifier: GPL-2.0-or-later #pragma once #include #include #include class ContentHelper : public QObject { Q_OBJECT QML_ELEMENT public: explicit ContentHelper(QObject *parent = nullptr); Q_INVOKABLE void openLink(const QString &link); Q_INVOKABLE QString adjustedContent(int width, int fontSize, const QString &content); };