File indexing completed on 2025-03-09 04:32:01
0001 // SPDX-FileCopyrightText: 2023 Tobias Fella <tobias.fella@kde.org> 0002 // SPDX-License-Identifier: GPL-2.0-or-later 0003 0004 #pragma once 0005 0006 #include <QObject> 0007 #include <QQmlEngine> 0008 #include <QUrl> 0009 0010 class ContentHelper : public QObject 0011 { 0012 Q_OBJECT 0013 QML_ELEMENT 0014 0015 public: 0016 explicit ContentHelper(QObject *parent = nullptr); 0017 0018 Q_INVOKABLE void openLink(const QString &link); 0019 Q_INVOKABLE QString adjustedContent(int width, int fontSize, const QString &content); 0020 };