Qyoto  4.0.5
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtCore.QPersistentModelIndex Class Reference

The QPersistentModelIndex class is used to locate data in a data model. More...

Inheritance diagram for QtCore.QPersistentModelIndex:
Collaboration diagram for QtCore.QPersistentModelIndex:

Public Member Functions

override bool Equals (object o)
 
override int GetHashCode ()
 
 QPersistentModelIndex ()
 
 
 QPersistentModelIndex (QModelIndex index)
 
 
 QPersistentModelIndex (QPersistentModelIndex other)
 
 
virtual void CreateProxy ()
 
new QModelIndex Child (int row, int column)
 
 
new int Column ()
 
 
new object Data (int role=(int) Qt.ItemDataRole.DisplayRole)
 
 
new Qt.ItemFlag Flags ()
 
 
new long InternalId ()
 
new bool IsValid ()
 
 
new QAbstractItemModel Model ()
 
 
new QModelIndex Parent ()
 
 
new int Row ()
 
 
new QModelIndex Sibling (int row, int column)
 
 
new void Dispose ()
 

Static Public Member Functions

static operator QModelIndex (QPersistentModelIndex arg1)
 
static bool operator!= (QPersistentModelIndex arg1, QPersistentModelIndex arg2)
 
 
static bool operator!= (QPersistentModelIndex arg1, QModelIndex arg2)
 
 
static bool operator< (QPersistentModelIndex arg1, QPersistentModelIndex arg2)
 
 
static bool operator== (QPersistentModelIndex arg1, QPersistentModelIndex arg2)
 
 
static bool operator== (QPersistentModelIndex arg1, QModelIndex arg2)
 
 
static bool operator> (QPersistentModelIndex arg1, QPersistentModelIndex arg2)
 

Protected Member Functions

 QPersistentModelIndex (System.Type dummy)
 

Protected Attributes

SmokeInvocation interceptor
 

Properties

virtual System.IntPtr SmokeObject [get, set]
 

Detailed Description

The QPersistentModelIndex class is used to locate data in a data model.

A QPersistentModelIndex is a model index that can be stored by an application, and later used to access information in a model. Unlike the QModelIndex class, it is safe to store a QPersistentModelIndex since the model will ensure that references to items will continue to be valid as long as they can be accessed by the model.

It is good practice to check that persistent model indexes are valid before using them.

See also Model/View Programming, QModelIndex, and QAbstractItemModel.

Constructor & Destructor Documentation

QtCore.QPersistentModelIndex.QPersistentModelIndex ( System.Type  dummy)
protected
QtCore.QPersistentModelIndex.QPersistentModelIndex ( )

Creates a new QPersistentModelIndex that is a copy of the model index.

QtCore.QPersistentModelIndex.QPersistentModelIndex ( QModelIndex  index)

Creates a new QPersistentModelIndex that is a copy of the model index.

QtCore.QPersistentModelIndex.QPersistentModelIndex ( QPersistentModelIndex  other)

Creates a new QPersistentModelIndex that is a copy of the other persistent model index.

Member Function Documentation

new QModelIndex QtCore.QPersistentModelIndex.Child ( int  row,
int  column 
)

Returns the child of the model index that is stored in the given row and column.

See also parent() and sibling().

new int QtCore.QPersistentModelIndex.Column ( )

Returns the column this persistent model index refers to.

virtual void QtCore.QPersistentModelIndex.CreateProxy ( )
virtual
new object QtCore.QPersistentModelIndex.Data ( int  role = (int) Qt.ItemDataRole.DisplayRole)

Returns the data for the given role for the item referred to by the index.

See also Qt::ItemDataRole and QAbstractItemModel::setData().

new void QtCore.QPersistentModelIndex.Dispose ( )
override bool QtCore.QPersistentModelIndex.Equals ( object  o)
new Qt.ItemFlag QtCore.QPersistentModelIndex.Flags ( )

Returns the flags for the item referred to by the index.

This function was introduced in Qt 4.2.

override int QtCore.QPersistentModelIndex.GetHashCode ( )
new long QtCore.QPersistentModelIndex.InternalId ( )
new bool QtCore.QPersistentModelIndex.IsValid ( )

Returns true if this persistent model index is valid; otherwise returns false.

A valid index belongs to a model, and has non-negative row and column numbers.

See also model(), row(), and column().

new QAbstractItemModel QtCore.QPersistentModelIndex.Model ( )

Returns the model that the index belongs to.

static QtCore.QPersistentModelIndex.operator QModelIndex ( QPersistentModelIndex  arg1)
explicitstatic
static bool QtCore.QPersistentModelIndex.operator!= ( QPersistentModelIndex  arg1,
QPersistentModelIndex  arg2 
)
static

Returns true if this persistent model index is not equal to the other persistent model index; otherwise returns false.

This function was introduced in Qt 4.2.

static bool QtCore.QPersistentModelIndex.operator!= ( QPersistentModelIndex  arg1,
QModelIndex  arg2 
)
static

Returns true if this persistent model index does not refer to the same location as the other model index; otherwise returns false.

static bool QtCore.QPersistentModelIndex.operator< ( QPersistentModelIndex  arg1,
QPersistentModelIndex  arg2 
)
static

Returns true if this persistent model index is smaller than the other persistent model index; otherwise returns false.

All values in the persistent model index are used when comparing with another persistent model index.

This function was introduced in Qt 4.1.

static bool QtCore.QPersistentModelIndex.operator== ( QPersistentModelIndex  arg1,
QPersistentModelIndex  arg2 
)
static

Returns true if this persistent model index is equal to the other persistent model index; otherwise returns false.

All values in the persistent model index are used when comparing with another persistent model index.

static bool QtCore.QPersistentModelIndex.operator== ( QPersistentModelIndex  arg1,
QModelIndex  arg2 
)
static

Returns true if this persistent model index refers to the same location as the other model index; otherwise returns false.

All values in the persistent model index are used when comparing with another model index.

static bool QtCore.QPersistentModelIndex.operator> ( QPersistentModelIndex  arg1,
QPersistentModelIndex  arg2 
)
static
new QModelIndex QtCore.QPersistentModelIndex.Parent ( )

Returns the parent QModelIndex for this persistent index, or an invalid QModelIndex if it has no parent.

See also child(), sibling(), and model().

new int QtCore.QPersistentModelIndex.Row ( )

Returns the row this persistent model index refers to.

new QModelIndex QtCore.QPersistentModelIndex.Sibling ( int  row,
int  column 
)

Returns the sibling at row and column or an invalid QModelIndex if there is no sibling at this position.

See also parent() and child().

Member Data Documentation

SmokeInvocation QtCore.QPersistentModelIndex.interceptor
protected

Property Documentation

virtual System.IntPtr QtCore.QPersistentModelIndex.SmokeObject
getset