PythonQtWrapper_QItemSelectionRange.cpp
118 lines
| 3.7 KiB
| text/x-c
|
CppLexer
florianlink
|
r13 | #include "PythonQtWrapper_QItemSelectionRange.h" | ||
florianlink
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
florianlink
|
r13 | #include <QVariant> | ||
#include <qabstractitemmodel.h> | ||||
#include <qitemselectionmodel.h> | ||||
#include <qlist.h> | ||||
QItemSelectionRange* PythonQtWrapper_QItemSelectionRange::new_QItemSelectionRange() | ||||
{ | ||||
return new QItemSelectionRange(); } | ||||
QItemSelectionRange* PythonQtWrapper_QItemSelectionRange::new_QItemSelectionRange(const QItemSelectionRange& other) | ||||
{ | ||||
return new QItemSelectionRange(other); } | ||||
QItemSelectionRange* PythonQtWrapper_QItemSelectionRange::new_QItemSelectionRange(const QModelIndex& index) | ||||
{ | ||||
return new QItemSelectionRange(index); } | ||||
QItemSelectionRange* PythonQtWrapper_QItemSelectionRange::new_QItemSelectionRange(const QModelIndex& topLeft, const QModelIndex& bottomRight) | ||||
{ | ||||
return new QItemSelectionRange(topLeft, bottomRight); } | ||||
florianlink
|
r73 | QItemSelectionRange PythonQtWrapper_QItemSelectionRange::intersected(QItemSelectionRange* theWrappedObject, const QItemSelectionRange& other) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->intersected(other)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QItemSelectionRange::top(QItemSelectionRange* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->top()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QItemSelectionRange::contains(QItemSelectionRange* theWrappedObject, int row, int column, const QModelIndex& parentIndex) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->contains(row, column, parentIndex)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QItemSelectionRange::height(QItemSelectionRange* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->height()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QItemSelectionRange::right(QItemSelectionRange* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->right()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QModelIndex PythonQtWrapper_QItemSelectionRange::topLeft(QItemSelectionRange* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->topLeft()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QModelIndex PythonQtWrapper_QItemSelectionRange::bottomRight(QItemSelectionRange* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->bottomRight()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QItemSelectionRange::intersects(QItemSelectionRange* theWrappedObject, const QItemSelectionRange& other) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->intersects(other)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QItemSelectionRange::contains(QItemSelectionRange* theWrappedObject, const QModelIndex& index) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->contains(index)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QItemSelectionRange::left(QItemSelectionRange* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->left()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QItemSelectionRange::bottom(QItemSelectionRange* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->bottom()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QItemSelectionRange::operator_equal(QItemSelectionRange* theWrappedObject, const QItemSelectionRange& other) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( (*theWrappedObject)== other); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QModelIndex PythonQtWrapper_QItemSelectionRange::parent(QItemSelectionRange* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->parent()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QItemSelectionRange::width(QItemSelectionRange* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->width()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QItemSelectionRange::isValid(QItemSelectionRange* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isValid()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QList<QModelIndex > PythonQtWrapper_QItemSelectionRange::indexes(QItemSelectionRange* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->indexes()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | const QAbstractItemModel* PythonQtWrapper_QItemSelectionRange::model(QItemSelectionRange* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->model()); | ||
} | ||||
QString PythonQtWrapper_QItemSelectionRange::toString(QItemSelectionRange* obj) { | ||||
QString result; | ||||
QDebug d(&result); | ||||
d << *obj; | ||||
return result; | ||||
florianlink
|
r13 | } | ||