digiKam
webwidget.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_H
25 #define DIGIKAM_WEB_WIDGET_H
26 
27 // Qt includes
28 
29 #include <qwebview.h>
30 
31 // Local includes
32 
33 #include "digikam_export.h"
34 
35 namespace Digikam
36 {
37 
38 class DIGIKAM_EXPORT WebWidget : public QWebView
39 {
40  Q_OBJECT
41 
42 public:
43 
44  explicit WebWidget(QWidget* const parent = nullptr);
45  ~WebWidget();
46 
47 Q_SIGNALS:
48 
49  void closeView(bool val);
50 
51 protected:
52 
53  void closeEvent(QCloseEvent* event) override;
54 
55 private:
56 
57  class Private;
58  Private* const d;
59 };
60 
61 } // namespace Digikam
62 
63 #endif // DIGIKAM_WEB_WIDGET_H
Definition: webwidget.h:39
void closeView(bool val)
Definition: datefolderview.cpp:43