##// END OF EJS Templates
- added hasOwner method to manage ownership more nicely...
- added hasOwner method to manage ownership more nicely - added force flag to make delete() work - added check for hasOwner git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@51 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r15:ae998290bf19
Show More
PythonQtWrapper_QItemSelection.h
64 lines | 3.9 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QITEMSELECTION_H
#define PYTHONQTWRAPPER_QITEMSELECTION_H
#include <qitemselectionmodel.h>
#include <QObject>
#include <QVariant>
#include <qabstractitemmodel.h>
#include <qitemselectionmodel.h>
#include <qlist.h>
#include <qvector.h>
class PythonQtWrapper_QItemSelection : public QObject
{ Q_OBJECT
public:
public slots:
QItemSelection* new_QItemSelection();
QItemSelection* new_QItemSelection(const QModelIndex& topLeft, const QModelIndex& bottomRight);
void delete_QItemSelection(QItemSelection* obj) { delete obj; }
void append(QItemSelection* theWrappedObject, const QItemSelectionRange& t);
const QItemSelectionRange& at(QItemSelection* theWrappedObject, int i) const;
const QItemSelectionRange& back(QItemSelection* theWrappedObject) const;
void clear(QItemSelection* theWrappedObject);
bool contains(QItemSelection* theWrappedObject, const QModelIndex& index) const;
int count(QItemSelection* theWrappedObject) const;
int count(QItemSelection* theWrappedObject, const QItemSelectionRange& t) const;
bool empty(QItemSelection* theWrappedObject) const;
const QItemSelectionRange& first(QItemSelection* theWrappedObject) const;
QList<QItemSelectionRange > static_QItemSelection_fromVector(const QVector<QItemSelectionRange >& vector);
const QItemSelectionRange& front(QItemSelection* theWrappedObject) const;
int indexOf(QItemSelection* theWrappedObject, const QItemSelectionRange& t, int from) const;
QList<QModelIndex > indexes(QItemSelection* theWrappedObject) const;
bool isEmpty(QItemSelection* theWrappedObject) const;
const QItemSelectionRange& last(QItemSelection* theWrappedObject) const;
int lastIndexOf(QItemSelection* theWrappedObject, const QItemSelectionRange& t, int from) const;
void merge(QItemSelection* theWrappedObject, const QItemSelection& other, QItemSelectionModel::SelectionFlags command);
QList<QItemSelectionRange > mid(QItemSelection* theWrappedObject, int pos, int length) const;
void move(QItemSelection* theWrappedObject, int from, int to);
bool operator_equal(QItemSelection* theWrappedObject, const QList<QItemSelectionRange >& l) const;
void pop_back(QItemSelection* theWrappedObject);
void pop_front(QItemSelection* theWrappedObject);
void prepend(QItemSelection* theWrappedObject, const QItemSelectionRange& t);
void push_back(QItemSelection* theWrappedObject, const QItemSelectionRange& t);
void push_front(QItemSelection* theWrappedObject, const QItemSelectionRange& t);
int removeAll(QItemSelection* theWrappedObject, const QItemSelectionRange& t);
void removeAt(QItemSelection* theWrappedObject, int i);
void removeFirst(QItemSelection* theWrappedObject);
void removeLast(QItemSelection* theWrappedObject);
bool removeOne(QItemSelection* theWrappedObject, const QItemSelectionRange& t);
void replace(QItemSelection* theWrappedObject, int i, const QItemSelectionRange& t);
void select(QItemSelection* theWrappedObject, const QModelIndex& topLeft, const QModelIndex& bottomRight);
void setSharable(QItemSelection* theWrappedObject, bool sharable);
int size(QItemSelection* theWrappedObject) const;
void static_QItemSelection_split(const QItemSelectionRange& range, const QItemSelectionRange& other, QItemSelection* result);
void swap(QItemSelection* theWrappedObject, int i, int j);
QItemSelectionRange takeAt(QItemSelection* theWrappedObject, int i);
QItemSelectionRange takeFirst(QItemSelection* theWrappedObject);
QItemSelectionRange takeLast(QItemSelection* theWrappedObject);
QVector<QItemSelectionRange > toVector(QItemSelection* theWrappedObject) const;
QItemSelectionRange value(QItemSelection* theWrappedObject, int i) const;
QItemSelectionRange value(QItemSelection* theWrappedObject, int i, const QItemSelectionRange& defaultValue) const;
};
#endif // PYTHONQTWRAPPER_QITEMSELECTION_H