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

The QItemSelectionRange class manages information about a range of selected items in a model. More...

Inheritance diagram for QtGui.QItemSelectionRange:
Collaboration diagram for QtGui.QItemSelectionRange:

Public Member Functions

override bool Equals (object o)
 
override int GetHashCode ()
 
 QItemSelectionRange ()
 
 
 QItemSelectionRange (QItemSelectionRange other)
 
 
 QItemSelectionRange (QModelIndex index)
 
 
 QItemSelectionRange (QModelIndex topLeft, QModelIndex bottomRight)
 
 
virtual void CreateProxy ()
 
new int Bottom ()
 
 
new QModelIndex BottomRight ()
 
 
new bool Contains (QModelIndex index)
 
 
new bool Contains (int row, int column, QModelIndex parentIndex)
 
 
new int Height ()
 
 
new
System.Collections.Generic.List
< QModelIndex
Indexes ()
 
 
new QItemSelectionRange Intersect (QItemSelectionRange other)
 
 
new QItemSelectionRange Intersected (QItemSelectionRange other)
 
 
new bool Intersects (QItemSelectionRange other)
 
 
new bool IsEmpty ()
 
 
new bool IsValid ()
 
 
new int Left ()
 
 
new QAbstractItemModel Model ()
 
 
new QModelIndex Parent ()
 
 
new int Right ()
 
 
new int Top ()
 
 
new QModelIndex TopLeft ()
 
 
new int Width ()
 
 
new void Dispose ()
 

Static Public Member Functions

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

Protected Member Functions

 QItemSelectionRange (System.Type dummy)
 

Protected Attributes

SmokeInvocation interceptor
 

Properties

virtual System.IntPtr SmokeObject [get, set]
 

Detailed Description

The QItemSelectionRange class manages information about a range of selected items in a model.

A QItemSelectionRange contains information about a range of selected items in a model. A range of items is a contiguous array of model items, extending to cover a number of adjacent rows and columns with a common parent item; this can be visualized as a two-dimensional block of cells in a table. A selection range has a top(), left() a bottom(), right() and a parent().

The QItemSelectionRange class is one of the Model/View Classes and is part of Qt's model/view framework.

The model items contained in the selection range can be obtained using the indexes() function. Use QItemSelectionModel::selectedIndexes() to get a list of all selected items for a view.

You can determine whether a given model item lies within a particular range by using the contains() function. Ranges can also be compared using the overloaded operators for equality and inequality, and the intersects() function allows you to determine whether two ranges overlap.

See also Model/View Programming, QAbstractItemModel, QItemSelection, and QItemSelectionModel.

Constructor & Destructor Documentation

QtGui.QItemSelectionRange.QItemSelectionRange ( System.Type  dummy)
protected
QtGui.QItemSelectionRange.QItemSelectionRange ( )

Constructs an empty selection range.

QtGui.QItemSelectionRange.QItemSelectionRange ( QItemSelectionRange  other)

Copy constructor. Constructs a new selection range with the same contents as the other range given.

QtGui.QItemSelectionRange.QItemSelectionRange ( QModelIndex  index)

Constructs a new selection range containing only the model item specified by the model index index.

QtGui.QItemSelectionRange.QItemSelectionRange ( QModelIndex  topLeft,
QModelIndex  bottomRight 
)

Constructs a new selection range containing only the index specified by the topLeft and the index bottomRight.

Member Function Documentation

new int QtGui.QItemSelectionRange.Bottom ( )

Returns the row index corresponding to the lowermost selected row in the selection range.

new QModelIndex QtGui.QItemSelectionRange.BottomRight ( )

Returns the index for the item located at the bottom-right corner of the selection range.

See also bottom(), right(), and topLeft().

new bool QtGui.QItemSelectionRange.Contains ( QModelIndex  index)

Returns true if the model item specified by the index lies within the range of selected items; otherwise returns false.

new bool QtGui.QItemSelectionRange.Contains ( int  row,
int  column,
QModelIndex  parentIndex 
)

This is an overloaded function.

Returns true if the model item specified by (row, column) and with parentIndex as the parent item lies within the range of selected items; otherwise returns false.

virtual void QtGui.QItemSelectionRange.CreateProxy ( )
virtual
new void QtGui.QItemSelectionRange.Dispose ( )
override bool QtGui.QItemSelectionRange.Equals ( object  o)
override int QtGui.QItemSelectionRange.GetHashCode ( )
new int QtGui.QItemSelectionRange.Height ( )

Returns the number of selected rows in the selection range.

new System.Collections.Generic.List<QModelIndex> QtGui.QItemSelectionRange.Indexes ( )

Returns the list of model index items stored in the selection.

new QItemSelectionRange QtGui.QItemSelectionRange.Intersect ( QItemSelectionRange  other)

Use intersected(other) instead.

new QItemSelectionRange QtGui.QItemSelectionRange.Intersected ( QItemSelectionRange  other)

Returns a new selection range containing only the items that are found in both the selection range and the other selection range.

This function was introduced in Qt 4.2.

new bool QtGui.QItemSelectionRange.Intersects ( QItemSelectionRange  other)

Returns true if this selection range intersects (overlaps with) the other range given; otherwise returns false.

new bool QtGui.QItemSelectionRange.IsEmpty ( )

Returns true if the selection range contains no selectable item

This function was introduced in Qt 4.7.

new bool QtGui.QItemSelectionRange.IsValid ( )

Returns true if the selection range is valid; otherwise returns false.

new int QtGui.QItemSelectionRange.Left ( )

Returns the column index corresponding to the leftmost selected column in the selection range.

new QAbstractItemModel QtGui.QItemSelectionRange.Model ( )

Returns the model that the items in the selection range belong to.

static bool QtGui.QItemSelectionRange.operator!= ( QItemSelectionRange  arg1,
QItemSelectionRange  arg2 
)
static

Returns true if the selection range differs from the other range given; otherwise returns false.

static bool QtGui.QItemSelectionRange.operator< ( QItemSelectionRange  arg1,
QItemSelectionRange  arg2 
)
static

bool QItemSelectionRange::operator== ( const QItemSelectionRange & other ) const

Returns true if the selection range is exactly the same as the other range given; otherwise returns false.

static bool QtGui.QItemSelectionRange.operator== ( QItemSelectionRange  arg1,
QItemSelectionRange  arg2 
)
static

Returns true if the selection range is exactly the same as the other range given; otherwise returns false.

static bool QtGui.QItemSelectionRange.operator> ( QItemSelectionRange  arg1,
QItemSelectionRange  arg2 
)
static
new QModelIndex QtGui.QItemSelectionRange.Parent ( )

Returns the parent model item index of the items in the selection range.

new int QtGui.QItemSelectionRange.Right ( )

Returns the column index corresponding to the rightmost selected column in the selection range.

new int QtGui.QItemSelectionRange.Top ( )

Returns the row index corresponding to the uppermost selected row in the selection range.

new QModelIndex QtGui.QItemSelectionRange.TopLeft ( )

Returns the index for the item located at the top-left corner of the selection range.

See also top(), left(), and bottomRight().

new int QtGui.QItemSelectionRange.Width ( )

Returns the number of selected columns in the selection range.

Member Data Documentation

SmokeInvocation QtGui.QItemSelectionRange.interceptor
protected

Property Documentation

virtual System.IntPtr QtGui.QItemSelectionRange.SmokeObject
getset