Gui: [skip ci] add sub-classes of the MDIView to the type system
This commit is contained in:
@@ -170,6 +170,7 @@ PyMOD_INIT_FUNC(WebGui)
|
||||
|
||||
// instantiating the commands
|
||||
CreateWebCommands();
|
||||
WebGui::BrowserView::init();
|
||||
WebGui::Workbench::init();
|
||||
|
||||
// add resources and reloads the translators
|
||||
|
||||
@@ -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'.
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user