Qyoto  4.0.7
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator 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)
  More...
 
 QPersistentModelIndex (QPersistentModelIndex other)
  More...
 
virtual void CreateProxy ()
 
new QModelIndex Child (int row, int column)
  More...
 
new object Data (int role=(int) Qt.ItemDataRole.DisplayRole)
  More...
 
new QModelIndex Sibling (int row, int column)
  More...
 
new void Dispose ()
 

Static Public Member Functions

static operator QModelIndex (QPersistentModelIndex value)
 
static bool operator!= (QPersistentModelIndex one, QPersistentModelIndex other)
  More...
 
static bool operator!= (QPersistentModelIndex one, QModelIndex other)
  More...
 
static bool operator< (QPersistentModelIndex one, QPersistentModelIndex other)
  More...
 
static bool operator== (QPersistentModelIndex one, QPersistentModelIndex other)
  More...
 
static bool operator== (QPersistentModelIndex one, QModelIndex other)
  More...
 
static bool operator> (QPersistentModelIndex one, QPersistentModelIndex other)
 

Protected Member Functions

 QPersistentModelIndex (System.Type dummy)
 

Protected Attributes

SmokeInvocation interceptor
 

Properties

int Column [get]
  More...
 
Qt.ItemFlag Flags [get]
  More...
 
long InternalId [get]
 
bool IsValid [get]
  More...
 
QAbstractItemModel Model [get]
  More...
 
QModelIndex Parent [get]
  More...
 
int Row [get]
  More...
 
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 ( )

Here is the call graph for this function:

Here is the caller graph for this function:

QtCore.QPersistentModelIndex.QPersistentModelIndex ( QModelIndex  index)

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

Here is the call graph for this function:

QtCore.QPersistentModelIndex.QPersistentModelIndex ( QPersistentModelIndex  other)

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

Here is the call graph for this function:

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().

virtual void QtCore.QPersistentModelIndex.CreateProxy ( )
virtual

Here is the caller graph for this function:

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)

Here is the call graph for this function:

override int QtCore.QPersistentModelIndex.GetHashCode ( )
static QtCore.QPersistentModelIndex.operator QModelIndex ( QPersistentModelIndex  value)
explicitstatic
static bool QtCore.QPersistentModelIndex.operator!= ( QPersistentModelIndex  one,
QPersistentModelIndex  other 
)
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  one,
QModelIndex  other 
)
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  one,
QPersistentModelIndex  other 
)
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  one,
QPersistentModelIndex  other 
)
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  one,
QModelIndex  other 
)
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  one,
QPersistentModelIndex  other 
)
static
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

int QtCore.QPersistentModelIndex.Column
get

Returns the column this persistent model index refers to.

Qt.ItemFlag QtCore.QPersistentModelIndex.Flags
get

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

This function was introduced in Qt 4.2.

long QtCore.QPersistentModelIndex.InternalId
get
bool QtCore.QPersistentModelIndex.IsValid
get

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().

QAbstractItemModel QtCore.QPersistentModelIndex.Model
get

Returns the model that the index belongs to.

QModelIndex QtCore.QPersistentModelIndex.Parent
get

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

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

int QtCore.QPersistentModelIndex.Row
get

Returns the row this persistent model index refers to.

virtual System.IntPtr QtCore.QPersistentModelIndex.SmokeObject
getset