PythonQtWrapper_QSqlIndex.cpp
58 lines
| 1.6 KiB
| text/x-c
|
CppLexer
florianlink
|
r13 | #include "PythonQtWrapper_QSqlIndex.h" | ||
florianlink
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
florianlink
|
r13 | #include <QVariant> | ||
#include <qsqlfield.h> | ||||
#include <qsqlindex.h> | ||||
#include <qsqlrecord.h> | ||||
QSqlIndex* PythonQtWrapper_QSqlIndex::new_QSqlIndex(const QSqlIndex& other) | ||||
{ | ||||
return new QSqlIndex(other); } | ||||
QSqlIndex* PythonQtWrapper_QSqlIndex::new_QSqlIndex(const QString& cursorName, const QString& name) | ||||
{ | ||||
return new QSqlIndex(cursorName, name); } | ||||
florianlink
|
r73 | bool PythonQtWrapper_QSqlIndex::isDescending(QSqlIndex* theWrappedObject, int i) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isDescending(i)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QSqlIndex::name(QSqlIndex* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->name()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QSqlIndex::append(QSqlIndex* theWrappedObject, const QSqlField& field, bool desc) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->append(field, desc)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QSqlIndex::setDescending(QSqlIndex* theWrappedObject, int i, bool desc) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setDescending(i, desc)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QSqlIndex::setName(QSqlIndex* theWrappedObject, const QString& name) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setName(name)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QSqlIndex::cursorName(QSqlIndex* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->cursorName()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QSqlIndex::setCursorName(QSqlIndex* theWrappedObject, const QString& cursorName) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setCursorName(cursorName)); | ||
} | ||||
void PythonQtWrapper_QSqlIndex::append(QSqlIndex* theWrappedObject, const QSqlField& field) | ||||
{ | ||||
( theWrappedObject->append(field)); | ||||
florianlink
|
r13 | } | ||