Gui: [skip ci] add sub-classes of the MDIView to the type system

This commit is contained in:
wmayer
2021-11-19 12:51:13 +01:00
parent 740d71b638
commit 3bd3f20e32
9 changed files with 23 additions and 1 deletions

View File

@@ -170,6 +170,7 @@ PyMOD_INIT_FUNC(WebGui)
// instantiating the commands
CreateWebCommands();
WebGui::BrowserView::init();
WebGui::Workbench::init();
// add resources and reloads the translators

View File

@@ -359,6 +359,8 @@ void WebView::triggerContextMenuAction(int id)
/* TRANSLATOR Gui::BrowserView */
TYPESYSTEM_SOURCE_ABSTRACT(WebGui::BrowserView, Gui::MDIView)
/**
* Constructs a BrowserView which is a child of 'parent', with the
* name 'name'.

View File

@@ -33,7 +33,7 @@
#include <QWebEngineView>
namespace WebGui {
class WebEngineUrlRequestInterceptor;
};
}
#elif defined(QTWEBKIT)
#include <QWebView>
#endif
@@ -79,6 +79,8 @@ class WebGuiExport BrowserView : public Gui::MDIView,
{
Q_OBJECT
TYPESYSTEM_HEADER();
public:
BrowserView(QWidget* parent);
~BrowserView();