digiKam
webwidget_qwebengine.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2018-7-30
7  * Description : Widget for displaying HTML in the backends
8  *
9  * Copyright (C) 2018 by Tarek Talaat <tarektalaat93 at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_WEB_WIDGET_QWEBENGINE_H
25 #define DIGIKAM_WEB_WIDGET_QWEBENGINE_H
26 
27 // Qt includes
28 
29 #include <QWebEngineView>
30 #include <QWebEnginePage>
31 #include <QWebEngineProfile>
32 #include <QWebEngineSettings>
33 #include <QWebEngineCookieStore>
34 
35 // Local includes
36 
37 #include "digikam_export.h"
38 
39 namespace Digikam
40 {
41 
42 class DIGIKAM_EXPORT WebWidget : public QWebEngineView
43 {
44  Q_OBJECT
45 
46 public:
47 
48  explicit WebWidget(QWidget* const parent = nullptr);
50 
51 protected:
52 
53  void closeEvent(QCloseEvent *event) override;
54 
55 Q_SIGNALS:
56 
57  void closeView(bool val);
58 
59 private:
60 
61  class Private;
62  Private* const d;
63 };
64 
65 } // namespace Digikam
66 
67 #endif // DIGIKAM_WEB_WIDGET_QWEBENGINE_H
WebWidget(QWidget *const parent=nullptr)
void closeEvent(QCloseEvent *event) override
void closeView(bool val)
Definition: datefolderview.cpp:43