PythonQtWrapper_QSqlRelation.h
28 lines
| 904 B
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QSQLRELATION_H | ||
#define PYTHONQTWRAPPER_QSQLRELATION_H | ||||
#include <qsqlrelationaltablemodel.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
class PythonQtWrapper_QSqlRelation : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QSqlRelation* new_QSqlRelation(); | ||||
QSqlRelation* new_QSqlRelation(const QString& aTableName, const QString& indexCol, const QString& displayCol); | ||||
florianlink
|
r24 | QSqlRelation* new_QSqlRelation(const QSqlRelation& other) { | ||
QSqlRelation* a = new QSqlRelation(); | ||||
*((QSqlRelation*)a) = other; | ||||
return a; } | ||||
florianlink
|
r13 | void delete_QSqlRelation(QSqlRelation* obj) { delete obj; } | ||
bool isValid(QSqlRelation* theWrappedObject) const; | ||||
QString tableName(QSqlRelation* theWrappedObject) const; | ||||
florianlink
|
r24 | QString indexColumn(QSqlRelation* theWrappedObject) const; | ||
QString displayColumn(QSqlRelation* theWrappedObject) const; | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QSQLRELATION_H | ||||