com_trolltech_qt_webkit_init.cpp
20 lines
| 1.5 KiB
| text/x-c
|
CppLexer
florianlink
|
r13 | #include <PythonQt.h> | ||
#include "PythonQtWrapper_QWebHitTestResult.h" | ||||
#include "PythonQtWrapper_QWebSettings.h" | ||||
#include "PythonQtWrapper_QWebHistoryInterface.h" | ||||
florianlink
|
r28 | #include "PythonQtWrapper_QWebFrame.h" | ||
florianlink
|
r13 | #include "PythonQtWrapper_QWebPage.h" | ||
florianlink
|
r28 | #include "PythonQtWrapper_QWebPluginFactory.h" | ||
florianlink
|
r13 | #include "PythonQtWrapper_QWebView.h" | ||
florianlink
|
r28 | |||
florianlink
|
r13 | void PythonQt_init_QtWebKit() { | ||
PythonQt::self()->registerCPPClass("QWebHitTestResult", "", "QtWebKit", PythonQtCreateObject<PythonQtWrapper_QWebHitTestResult>); | ||||
PythonQt::self()->registerCPPClass("QWebSettings", "", "QtWebKit", PythonQtCreateObject<PythonQtWrapper_QWebSettings>); | ||||
florianlink
|
r24 | PythonQt::self()->registerClass(&QWebHistoryInterface::staticMetaObject, "QtWebKit", PythonQtCreateObject<PythonQtWrapper_QWebHistoryInterface>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QWebHistoryInterface>); | ||
florianlink
|
r28 | PythonQt::self()->registerClass(&QWebFrame::staticMetaObject, "QtWebKit", PythonQtCreateObject<PythonQtWrapper_QWebFrame>); | ||
florianlink
|
r24 | PythonQt::self()->registerClass(&QWebPage::staticMetaObject, "QtWebKit", PythonQtCreateObject<PythonQtWrapper_QWebPage>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QWebPage>); | ||
florianlink
|
r28 | PythonQt::self()->registerClass(&QWebPluginFactory::staticMetaObject, "QtWebKit", PythonQtCreateObject<PythonQtWrapper_QWebPluginFactory>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QWebPluginFactory>); | ||
florianlink
|
r24 | PythonQt::self()->registerClass(&QWebView::staticMetaObject, "QtWebKit", PythonQtCreateObject<PythonQtWrapper_QWebView>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QWebView>); | ||
florianlink
|
r13 | |||
} | ||||