Commit 1040e170 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add webengineview class

parent f2ff3af0
......@@ -104,6 +104,7 @@ if (QTWEBENGINE_EXPERIMENTAL_OPTION)
webengine/webhittest.cpp
webengine/webenginepage.cpp
webengine/webenginescript.cpp
webengine/webengineview.cpp
)
set(libmessageviewer_web_LIB Qt5::WebEngine Qt5::WebEngineWidgets ${libmessageviewer_web_LIB})
endif()
......@@ -398,6 +399,7 @@ if (QTWEBENGINE_EXPERIMENTAL_OPTION)
HEADER_NAMES
WebHitTestResult
WebEnginePage
WebEngineView
WebHitTest
REQUIRED_HEADERS MessageViewer_webengine_misc_HEADERS
PREFIX MessageViewer
......
/*
Copyright (c) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "webengineview.h"
using namespace MessageViewer;
class MessageViewer::WebEngineViewPrivate
{
public:
WebEngineViewPrivate()
{
}
};
WebEngineView::WebEngineView(QWidget *parent)
: QWebEngineView(parent),
d(new MessageViewer::WebEngineViewPrivate)
{
}
WebEngineView::~WebEngineView()
{
delete d;
}
/*
Copyright (c) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef WEBENGINEVIEW_H
#define WEBENGINEVIEW_H
#include <QWebEngineView>
#include "messageviewer_export.h"
namespace MessageViewer
{
class WebEngineViewPrivate;
class MESSAGEVIEWER_EXPORT WebEngineView : public QWebEngineView
{
Q_OBJECT
public:
explicit WebEngineView(QWidget *parent = Q_NULLPTR);
~WebEngineView();
private:
WebEngineViewPrivate *const d;
};
}
#endif // WEBENGINEVIEW_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment