##// END OF EJS Templates
added new tests for new PythonQt features...
added new tests for new PythonQt features git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@73 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r28:cf202027b50b
r37:5bd99c632a3f
Show More
PythonQtWrapper_QSqlField.cpp
151 lines | 3.8 KiB | text/x-c | CppLexer
#include "PythonQtWrapper_QSqlField.h"
#include <PythonQtSignalReceiver.h>
#include <PythonQtMethodInfo.h>
#include <PythonQtConversion.h>
#include <QVariant>
#include <qsqlfield.h>
QSqlField* PythonQtWrapper_QSqlField::new_QSqlField(const QSqlField& other)
{
return new QSqlField(other); }
QSqlField* PythonQtWrapper_QSqlField::new_QSqlField(const QString& fieldName, QVariant::Type type)
{
return new QSqlField(fieldName, type); }
void PythonQtWrapper_QSqlField::clear(QSqlField* theWrappedObject)
{
theWrappedObject->clear();
}
void PythonQtWrapper_QSqlField::setType(QSqlField* theWrappedObject, QVariant::Type type)
{
theWrappedObject->setType(type);
}
QVariant PythonQtWrapper_QSqlField::value(QSqlField* theWrappedObject) const
{
return theWrappedObject->value();
}
bool PythonQtWrapper_QSqlField::isNull(QSqlField* theWrappedObject) const
{
return theWrappedObject->isNull();
}
QVariant::Type PythonQtWrapper_QSqlField::type(QSqlField* theWrappedObject) const
{
return theWrappedObject->type();
}
QSqlField::RequiredStatus PythonQtWrapper_QSqlField::requiredStatus(QSqlField* theWrappedObject) const
{
return theWrappedObject->requiredStatus();
}
void PythonQtWrapper_QSqlField::setRequired(QSqlField* theWrappedObject, bool required)
{
theWrappedObject->setRequired(required);
}
int PythonQtWrapper_QSqlField::typeID(QSqlField* theWrappedObject) const
{
return theWrappedObject->typeID();
}
void PythonQtWrapper_QSqlField::setReadOnly(QSqlField* theWrappedObject, bool readOnly)
{
theWrappedObject->setReadOnly(readOnly);
}
bool PythonQtWrapper_QSqlField::isGenerated(QSqlField* theWrappedObject) const
{
return theWrappedObject->isGenerated();
}
void PythonQtWrapper_QSqlField::setName(QSqlField* theWrappedObject, const QString& name)
{
theWrappedObject->setName(name);
}
void PythonQtWrapper_QSqlField::setRequiredStatus(QSqlField* theWrappedObject, QSqlField::RequiredStatus status)
{
theWrappedObject->setRequiredStatus(status);
}
bool PythonQtWrapper_QSqlField::isAutoValue(QSqlField* theWrappedObject) const
{
return theWrappedObject->isAutoValue();
}
void PythonQtWrapper_QSqlField::setPrecision(QSqlField* theWrappedObject, int precision)
{
theWrappedObject->setPrecision(precision);
}
void PythonQtWrapper_QSqlField::setValue(QSqlField* theWrappedObject, const QVariant& value)
{
theWrappedObject->setValue(value);
}
QVariant PythonQtWrapper_QSqlField::defaultValue(QSqlField* theWrappedObject) const
{
return theWrappedObject->defaultValue();
}
void PythonQtWrapper_QSqlField::setAutoValue(QSqlField* theWrappedObject, bool autoVal)
{
theWrappedObject->setAutoValue(autoVal);
}
bool PythonQtWrapper_QSqlField::isReadOnly(QSqlField* theWrappedObject) const
{
return theWrappedObject->isReadOnly();
}
void PythonQtWrapper_QSqlField::setDefaultValue(QSqlField* theWrappedObject, const QVariant& value)
{
theWrappedObject->setDefaultValue(value);
}
void PythonQtWrapper_QSqlField::setSqlType(QSqlField* theWrappedObject, int type)
{
theWrappedObject->setSqlType(type);
}
bool PythonQtWrapper_QSqlField::isValid(QSqlField* theWrappedObject) const
{
return theWrappedObject->isValid();
}
void PythonQtWrapper_QSqlField::setGenerated(QSqlField* theWrappedObject, bool gen)
{
theWrappedObject->setGenerated(gen);
}
void PythonQtWrapper_QSqlField::setLength(QSqlField* theWrappedObject, int fieldLength)
{
theWrappedObject->setLength(fieldLength);
}
int PythonQtWrapper_QSqlField::length(QSqlField* theWrappedObject) const
{
return theWrappedObject->length();
}
bool PythonQtWrapper_QSqlField::operator_equal(QSqlField* theWrappedObject, const QSqlField& other) const
{
return (*theWrappedObject)== other;
}
QString PythonQtWrapper_QSqlField::name(QSqlField* theWrappedObject) const
{
return theWrappedObject->name();
}
int PythonQtWrapper_QSqlField::precision(QSqlField* theWrappedObject) const
{
return theWrappedObject->precision();
}