Libksieve

sieveeditorwebengineview.h
1 /*
2  Copyright (C) 2016-2020 Laurent Montel <[email protected]>
3 
4  This program is free software; you can redistribute it and/or modify it
5  under the terms of the GNU General Public License, version 2, as
6  published by the Free Software Foundation.
7 
8  This program is distributed in the hope that it will be useful, but
9  WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License along
14  with this program; if not, write to the Free Software Foundation, Inc.,
15  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 
18 #ifndef SIEVEEDITORWEBENGINEVIEW_H
19 #define SIEVEEDITORWEBENGINEVIEW_H
20 
21 #include <QWebEngineView>
22 class QWebEngineDownloadItem;
23 namespace KSieveUi {
24 class SieveEditorWebEngineView : public QWebEngineView
25 {
26  Q_OBJECT
27 public:
28  explicit SieveEditorWebEngineView(QWidget *parent = nullptr);
29  ~SieveEditorWebEngineView() override;
30 
31 protected:
32  void contextMenuEvent(QContextMenuEvent *ev) override;
33  QWebEngineView *createWindow(QWebEnginePage::WebWindowType type) override;
34 private:
35  void downloadRequested(QWebEngineDownloadItem *);
36 };
37 }
38 
39 #endif // SIEVEEDITORWEBENGINEVIEW_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Aug 4 2020 23:07:29 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.