File indexing completed on 2025-01-19 03:55:40
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2018-7-30 0007 * Description : Widget for displaying HTML in the backends 0008 * 0009 * SPDX-FileCopyrightText: 2018 by Tarek Talaat <tarektalaat93 at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #ifndef DIGIKAM_WEB_WIDGET_QWEBENGINE_H 0016 #define DIGIKAM_WEB_WIDGET_QWEBENGINE_H 0017 0018 // Qt includes 0019 0020 #include <QWebEngineView> 0021 #include <QWebEnginePage> 0022 #include <QWebEngineProfile> 0023 #include <QWebEngineSettings> 0024 #include <QWebEngineCookieStore> 0025 0026 // Local includes 0027 0028 #include "digikam_export.h" 0029 0030 namespace Digikam 0031 { 0032 0033 class DIGIKAM_EXPORT WebWidget : public QWebEngineView 0034 { 0035 Q_OBJECT 0036 0037 public: 0038 0039 explicit WebWidget(QWidget* const parent = nullptr); 0040 ~WebWidget(); 0041 0042 protected: 0043 0044 void closeEvent(QCloseEvent *event) override; 0045 0046 Q_SIGNALS: 0047 0048 void closeView(bool val); 0049 0050 private: 0051 0052 class Private; 0053 Private* const d; 0054 }; 0055 0056 } // namespace Digikam 0057 0058 #endif // DIGIKAM_WEB_WIDGET_QWEBENGINE_H