##// 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_QItemSelectionModel.h
39 lines | 2.3 KiB | text/x-c | CLexer
/ generated_cpp / com_trolltech_qt_gui / PythonQtWrapper_QItemSelectionModel.h
#ifndef PYTHONQTWRAPPER_QITEMSELECTIONMODEL_H
#define PYTHONQTWRAPPER_QITEMSELECTIONMODEL_H
#include <qitemselectionmodel.h>
#include <QObject>
#include <QVariant>
#include <qabstractitemmodel.h>
#include <qbytearray.h>
#include <qcoreevent.h>
#include <qitemselectionmodel.h>
#include <qlist.h>
#include <qobject.h>
class PythonQtWrapper_QItemSelectionModel : public QObject
{ Q_OBJECT
public:
Q_ENUMS(SelectionFlag )
enum SelectionFlag{
NoUpdate = QItemSelectionModel::NoUpdate, Clear = QItemSelectionModel::Clear, Select = QItemSelectionModel::Select, Deselect = QItemSelectionModel::Deselect, Toggle = QItemSelectionModel::Toggle, Current = QItemSelectionModel::Current, Rows = QItemSelectionModel::Rows, Columns = QItemSelectionModel::Columns, SelectCurrent = QItemSelectionModel::SelectCurrent, ToggleCurrent = QItemSelectionModel::ToggleCurrent, ClearAndSelect = QItemSelectionModel::ClearAndSelect};
public slots:
QItemSelectionModel* new_QItemSelectionModel(QAbstractItemModel* model);
QItemSelectionModel* new_QItemSelectionModel(QAbstractItemModel* model, QObject* parent);
void delete_QItemSelectionModel(QItemSelectionModel* obj) { delete obj; }
bool columnIntersectsSelection(QItemSelectionModel* theWrappedObject, int column, const QModelIndex& parent) const;
QModelIndex currentIndex(QItemSelectionModel* theWrappedObject) const;
bool hasSelection(QItemSelectionModel* theWrappedObject) const;
bool isColumnSelected(QItemSelectionModel* theWrappedObject, int column, const QModelIndex& parent) const;
bool isRowSelected(QItemSelectionModel* theWrappedObject, int row, const QModelIndex& parent) const;
bool isSelected(QItemSelectionModel* theWrappedObject, const QModelIndex& index) const;
const QAbstractItemModel* model(QItemSelectionModel* theWrappedObject) const;
bool rowIntersectsSelection(QItemSelectionModel* theWrappedObject, int row, const QModelIndex& parent) const;
QList<QModelIndex > selectedColumns(QItemSelectionModel* theWrappedObject, int row = 0) const;
QList<QModelIndex > selectedIndexes(QItemSelectionModel* theWrappedObject) const;
QList<QModelIndex > selectedRows(QItemSelectionModel* theWrappedObject, int column = 0) const;
const QItemSelection selection(QItemSelectionModel* theWrappedObject) const;
};
#endif // PYTHONQTWRAPPER_QITEMSELECTIONMODEL_H