PythonQtWrapper_QPersistentModelIndex.cpp
90 lines
| 2.9 KiB
| text/x-c
|
CppLexer
florianlink
|
r13 | #include "PythonQtWrapper_QPersistentModelIndex.h" | ||
florianlink
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
florianlink
|
r13 | #include <QVariant> | ||
#include <qabstractitemmodel.h> | ||||
QPersistentModelIndex* PythonQtWrapper_QPersistentModelIndex::new_QPersistentModelIndex() | ||||
{ | ||||
return new QPersistentModelIndex(); } | ||||
QPersistentModelIndex* PythonQtWrapper_QPersistentModelIndex::new_QPersistentModelIndex(const QModelIndex& index) | ||||
{ | ||||
return new QPersistentModelIndex(index); } | ||||
QPersistentModelIndex* PythonQtWrapper_QPersistentModelIndex::new_QPersistentModelIndex(const QPersistentModelIndex& other) | ||||
{ | ||||
return new QPersistentModelIndex(other); } | ||||
florianlink
|
r28 | const QAbstractItemModel* PythonQtWrapper_QPersistentModelIndex::model(QPersistentModelIndex* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->model(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | bool PythonQtWrapper_QPersistentModelIndex::isValid(QPersistentModelIndex* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->isValid(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QModelIndex PythonQtWrapper_QPersistentModelIndex::parent(QPersistentModelIndex* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->parent(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | qint64 PythonQtWrapper_QPersistentModelIndex::internalId(QPersistentModelIndex* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->internalId(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QVariant PythonQtWrapper_QPersistentModelIndex::data(QPersistentModelIndex* theWrappedObject, int role) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->data(role); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QModelIndex PythonQtWrapper_QPersistentModelIndex::operator_cast_QModelIndex(QPersistentModelIndex* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->operator const QModelIndex&(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QModelIndex PythonQtWrapper_QPersistentModelIndex::sibling(QPersistentModelIndex* theWrappedObject, int row, int column) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->sibling(row, column); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | Qt::ItemFlags PythonQtWrapper_QPersistentModelIndex::flags(QPersistentModelIndex* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->flags(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | bool PythonQtWrapper_QPersistentModelIndex::operator_equal(QPersistentModelIndex* theWrappedObject, const QModelIndex& other) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return (*theWrappedObject)== other; | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QModelIndex PythonQtWrapper_QPersistentModelIndex::child(QPersistentModelIndex* theWrappedObject, int row, int column) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->child(row, column); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | int PythonQtWrapper_QPersistentModelIndex::row(QPersistentModelIndex* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->row(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | bool PythonQtWrapper_QPersistentModelIndex::operator_less(QPersistentModelIndex* theWrappedObject, const QPersistentModelIndex& other) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return (*theWrappedObject)< other; | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | bool PythonQtWrapper_QPersistentModelIndex::operator_equal(QPersistentModelIndex* theWrappedObject, const QPersistentModelIndex& other) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return (*theWrappedObject)== other; | ||
florianlink
|
r13 | } | ||
florianlink
|
r24 | int PythonQtWrapper_QPersistentModelIndex::column(QPersistentModelIndex* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->column(); | ||
florianlink
|
r13 | } | ||