com_trolltech_qt_sql_init.cpp
34 lines
| 2.7 KiB
| text/x-c
|
CppLexer
florianlink
|
r13 | #include <PythonQt.h> | ||
#include "PythonQtWrapper_QSqlField.h" | ||||
#include "PythonQtWrapper_QSqlResult.h" | ||||
florianlink
|
r28 | #include "PythonQtWrapper_QSqlRelation.h" | ||
florianlink
|
r13 | #include "PythonQtWrapper_QSqlDriverCreatorBase.h" | ||
florianlink
|
r28 | #include "PythonQtWrapper_QSqlQuery.h" | ||
#include "PythonQtWrapper_QSqlError.h" | ||||
florianlink
|
r13 | #include "PythonQtWrapper_QSqlRecord.h" | ||
florianlink
|
r28 | #include "PythonQtWrapper_QSqlDatabase.h" | ||
#include "PythonQtWrapper_QSql.h" | ||||
florianlink
|
r13 | #include "PythonQtWrapper_QSqlDriver.h" | ||
#include "PythonQtWrapper_QSqlIndex.h" | ||||
#include "PythonQtWrapper_QSqlQueryModel.h" | ||||
#include "PythonQtWrapper_QSqlTableModel.h" | ||||
#include "PythonQtWrapper_QSqlRelationalTableModel.h" | ||||
florianlink
|
r28 | |||
florianlink
|
r13 | void PythonQt_init_QtSql() { | ||
PythonQt::self()->registerCPPClass("QSqlField", "", "QtSql", PythonQtCreateObject<PythonQtWrapper_QSqlField>); | ||||
florianlink
|
r24 | PythonQt::self()->registerCPPClass("QSqlResult", "", "QtSql", PythonQtCreateObject<PythonQtWrapper_QSqlResult>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QSqlResult>); | ||
florianlink
|
r28 | PythonQt::self()->registerCPPClass("QSqlRelation", "", "QtSql", PythonQtCreateObject<PythonQtWrapper_QSqlRelation>); | ||
florianlink
|
r24 | PythonQt::self()->registerCPPClass("QSqlDriverCreatorBase", "", "QtSql", PythonQtCreateObject<PythonQtWrapper_QSqlDriverCreatorBase>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QSqlDriverCreatorBase>); | ||
florianlink
|
r28 | PythonQt::self()->registerCPPClass("QSqlQuery", "", "QtSql", PythonQtCreateObject<PythonQtWrapper_QSqlQuery>); | ||
PythonQt::self()->registerCPPClass("QSqlError", "", "QtSql", PythonQtCreateObject<PythonQtWrapper_QSqlError>); | ||||
florianlink
|
r13 | PythonQt::self()->registerCPPClass("QSqlRecord", "", "QtSql", PythonQtCreateObject<PythonQtWrapper_QSqlRecord>); | ||
florianlink
|
r28 | PythonQt::self()->registerCPPClass("QSqlDatabase", "", "QtSql", PythonQtCreateObject<PythonQtWrapper_QSqlDatabase>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QSqlDatabase>); | ||
PythonQt::self()->registerCPPClass("QSql", "", "QtSql", PythonQtCreateObject<PythonQtWrapper_QSql>); | ||||
florianlink
|
r24 | PythonQt::self()->registerClass(&QSqlDriver::staticMetaObject, "QtSql", PythonQtCreateObject<PythonQtWrapper_QSqlDriver>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QSqlDriver>); | ||
florianlink
|
r13 | PythonQt::self()->registerCPPClass("QSqlIndex", "QSqlRecord", "QtSql", PythonQtCreateObject<PythonQtWrapper_QSqlIndex>); | ||
florianlink
|
r24 | PythonQt::self()->registerClass(&QSqlQueryModel::staticMetaObject, "QtSql", PythonQtCreateObject<PythonQtWrapper_QSqlQueryModel>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QSqlQueryModel>); | ||
PythonQt::self()->registerClass(&QSqlTableModel::staticMetaObject, "QtSql", PythonQtCreateObject<PythonQtWrapper_QSqlTableModel>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QSqlTableModel>); | ||||
PythonQt::self()->registerClass(&QSqlRelationalTableModel::staticMetaObject, "QtSql", PythonQtCreateObject<PythonQtWrapper_QSqlRelationalTableModel>, PythonQtSetInstanceWrapperOnShell<PythonQtShell_QSqlRelationalTableModel>); | ||||
florianlink
|
r13 | |||
} | ||||