#include #include "PythonQtWrapper_QSqlRelation.h" #include "PythonQtWrapper_QSqlDatabase.h" #include "PythonQtWrapper_QSqlDriverCreatorBase.h" #include "PythonQtWrapper_QSqlQuery.h" #include "PythonQtWrapper_QSqlRecord.h" #include "PythonQtWrapper_QSqlResult.h" #include "PythonQtWrapper_QSqlError.h" #include "PythonQtWrapper_QSqlField.h" #include "PythonQtWrapper_QSql.h" #include "PythonQtWrapper_QSqlIndex.h" #include "PythonQtWrapper_QSqlDriver.h" #include "PythonQtWrapper_QSqlQueryModel.h" #include "PythonQtWrapper_QSqlTableModel.h" #include "PythonQtWrapper_QSqlRelationalTableModel.h" void PythonQt_init_QtSql() { PythonQt::self()->registerCPPClass("QSqlRelation", "", "QtSql", PythonQtCreateObject); PythonQt::self()->registerCPPClass("QSqlDatabase", "", "QtSql", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell); PythonQt::self()->registerCPPClass("QSqlDriverCreatorBase", "", "QtSql", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell); PythonQt::self()->registerCPPClass("QSqlQuery", "", "QtSql", PythonQtCreateObject); PythonQt::self()->registerCPPClass("QSqlRecord", "", "QtSql", PythonQtCreateObject); PythonQt::self()->registerCPPClass("QSqlResult", "", "QtSql", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell); PythonQt::self()->registerCPPClass("QSqlError", "", "QtSql", PythonQtCreateObject); PythonQt::self()->registerCPPClass("QSqlField", "", "QtSql", PythonQtCreateObject); PythonQt::self()->registerCPPClass("QSql", "", "QtSql", PythonQtCreateObject); PythonQt::self()->registerCPPClass("QSqlIndex", "QSqlRecord", "QtSql", PythonQtCreateObject); PythonQt::self()->registerClass(&QSqlDriver::staticMetaObject, "QtSql", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell); PythonQt::self()->registerClass(&QSqlQueryModel::staticMetaObject, "QtSql", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell); PythonQt::self()->registerClass(&QSqlTableModel::staticMetaObject, "QtSql", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell); PythonQt::self()->registerClass(&QSqlRelationalTableModel::staticMetaObject, "QtSql", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell); }