File indexing completed on 2024-05-12 05:06:12
0001 /* 0002 SPDX-FileCopyrightText: 2021 Dawid Wróbel <me@dawidwrobel.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef KMMTEXTBROWSER_H 0008 #define KMMTEXTBROWSER_H 0009 0010 // ---------------------------------------------------------------------------- 0011 // QT Includes 0012 0013 #include <QTextBrowser> 0014 class QString; 0015 0016 class KMMTextBrowser : public QTextBrowser 0017 { 0018 public: 0019 explicit KMMTextBrowser(QWidget* parent = nullptr); 0020 void print(QPagedPaintDevice* printer); 0021 void setHtml(const QString& text); 0022 0023 private: 0024 QString m_html; 0025 QString m_css; 0026 }; 0027 0028 #endif // KMMTEXTBROWSER_H