File indexing completed on 2025-01-05 04:47:40

0001 /*
0002   SPDX-FileCopyrightText: 2010 Klarälvdalens Datakonsult AB, a KDAB Group company
0003   SPDX-FileContributor: Tobias Koenig <tokoe@kde.org>
0004 
0005   SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #pragma once
0009 
0010 #include <QTextBrowser>
0011 
0012 namespace CalendarSupport
0013 {
0014 class TextBrowser : public QTextBrowser
0015 {
0016     Q_OBJECT
0017 
0018 public:
0019     explicit TextBrowser(QWidget *parent = nullptr);
0020 
0021     void doSetSource(const QUrl &name, QTextDocument::ResourceType type = QTextDocument::UnknownResource) override;
0022 
0023 Q_SIGNALS:
0024     void attachmentUrlClicked(const QString &uri);
0025 };
0026 }