Messagelib

mailsourcewebengineviewer.h
1/*
2 SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QDialog>
10class QTabWidget;
11class QWebEnginePage;
12
13namespace MessageViewer
14{
15class FindBarSourceView;
16class MailSourceViewTextBrowserWidget;
17class MailSourceWebEngineViewer : public QDialog
18{
20public:
21 explicit MailSourceWebEngineViewer(QWidget *parent = nullptr);
22 ~MailSourceWebEngineViewer() override;
23
24 void setRawSource(const QString &source);
25 void setDisplayedSource(QWebEnginePage *page);
26 void setFixedFont();
27
28private:
29 void readConfig();
30 void writeConfig();
31 MailSourceViewTextBrowserWidget *const mRawBrowser;
32 QTabWidget *mTabWidget = nullptr;
33 MailSourceViewTextBrowserWidget *mHtmlBrowser = nullptr;
34 bool mShowHtmlSource = false;
35};
36}
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sun Feb 25 2024 18:37:31 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.