Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2094

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QItemSelectionRange" doc="/**
&lt;p&gt;The &lt;a href=&quot;QItemSelectionRange.html#QItemSelectionRange()&quot;&gt;&lt;tt&gt;QItemSelectionRange&lt;/tt&gt;&lt;/a&gt; class manages information about a range of selected items in a model.&lt;/p&gt;
&lt;p&gt;A &lt;a href=&quot;QItemSelectionRange.html#QItemSelectionRange()&quot;&gt;&lt;tt&gt;QItemSelectionRange&lt;/tt&gt;&lt;/a&gt; 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 &lt;a href=&quot;QItemSelectionRange.html#top()&quot;&gt;&lt;tt&gt;top&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QItemSelectionRange.html#left()&quot;&gt;&lt;tt&gt;left&lt;/tt&gt;&lt;/a&gt; a &lt;a href=&quot;QItemSelectionRange.html#bottom()&quot;&gt;&lt;tt&gt;bottom&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QItemSelectionRange.html#right()&quot;&gt;&lt;tt&gt;right&lt;/tt&gt;&lt;/a&gt; and a &lt;a href=&quot;QItemSelectionRange.html#parent()&quot;&gt;&lt;tt&gt;parent&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QItemSelectionRange.html#QItemSelectionRange()&quot;&gt;&lt;tt&gt;QItemSelectionRange&lt;/tt&gt;&lt;/a&gt; class is one of the &lt;a href=&quot;%2E%2E/qt4-interview.html#model-view-classes&quot;&gt;Model/View Classes&lt;/tt&gt;&lt;/a&gt; and is part of Qt's &lt;a href=&quot;%2E%2E/model-view-programming.html&quot;&gt;model/view framework&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The model items contained in the selection range can be obtained by using the items() function. Use QItemSelectionModel::selectedIndexes() to get a list of all selected items for a view.&lt;/p&gt;
&lt;p&gt;You can determine whether a given model item lies within a particular range by using the &lt;a href=&quot;QItemSelectionRange.html#contains(int, int, com.trolltech.qt.core.QModelIndex)&quot;&gt;&lt;tt&gt;contains&lt;/tt&gt;&lt;/a&gt; function. Ranges can also be compared using the overloaded operators for equality and inequality, and the &lt;a href=&quot;QItemSelectionRange.html#intersects(com.trolltech.qt.gui.QItemSelectionRange)&quot;&gt;&lt;tt&gt;intersects&lt;/tt&gt;&lt;/a&gt; function allows you to determine whether two ranges overlap.&lt;/p&gt;

@see &lt;a href=&quot;%2E%2E/model-view-programming.html&quot;&gt;Model/View Programming&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/core/QAbstractItemModel.html&quot;&gt;&lt;tt&gt;QAbstractItemModel&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QItemSelection.html&quot;&gt;&lt;tt&gt;QItemSelection&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QItemSelectionModel.html&quot;&gt;&lt;tt&gt;QItemSelectionModel&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QItemSelectionRange(com.trolltech.qt.core.QModelIndex index)" doc="/**
&lt;p&gt;Constructs a new selection range containing only the model item specified by the model index &lt;tt&gt;index&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QItemSelectionRange(com.trolltech.qt.gui.QItemSelectionRange other)" doc="/**
&lt;p&gt;Copy constructor. Constructs a new selection range with the same contents as the &lt;tt&gt;other&lt;/tt&gt; range given.&lt;/p&gt;
 */"/>
    <method name="public QItemSelectionRange(com.trolltech.qt.core.QModelIndex topLeft, com.trolltech.qt.core.QModelIndex bottomRight)" doc="/**
&lt;p&gt;Constructs a new selection range containing only the index specified by the &lt;tt&gt;topLeft&lt;/tt&gt; and the index &lt;tt&gt;bottomRight&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QItemSelectionRange()" doc="/**
&lt;p&gt;Constructs an empty selection range.&lt;/p&gt;
 */"/>
    <method name="public final int bottom()" doc="/**
&lt;p&gt;Returns the row index corresponding to the lowermost selected row in the selection range.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QModelIndex bottomRight()" doc="/**
&lt;p&gt;Returns the index for the item located at the bottom-right corner of the selection range.&lt;/p&gt;

@see &lt;a href=&quot;QItemSelectionRange.html#bottom()&quot;&gt;&lt;tt&gt;bottom&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QItemSelectionRange.html#right()&quot;&gt;&lt;tt&gt;right&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QItemSelectionRange.html#topLeft()&quot;&gt;&lt;tt&gt;topLeft&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean contains(com.trolltech.qt.core.QModelIndex index)" doc="/**
&lt;p&gt;Returns true if the model item specified by the &lt;tt&gt;index&lt;/tt&gt; lies within the range of selected items; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final boolean contains(int row, int column, com.trolltech.qt.core.QModelIndex parentIndex)" doc="/**
&lt;p&gt;Returns true if the model item specified by (&lt;tt&gt;row&lt;/tt&gt;, &lt;tt&gt;column&lt;/tt&gt;) and with &lt;tt&gt;parentIndex&lt;/tt&gt; as the parent item lies within the range of selected items; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final int height()" doc="/**
&lt;p&gt;Returns the number of selected rows in the selection range.&lt;/p&gt;
 */"/>
    <method name="public final java.util.List&lt;com.trolltech.qt.core.QModelIndex&gt; indexes()" doc="/**
&lt;p&gt;Returns the list of model index items stored in the selection.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QItemSelectionRange intersected(com.trolltech.qt.gui.QItemSelectionRange other)" doc="/**
&lt;p&gt;Returns a new selection range containing only the items that are found in both the selection range and the &lt;tt&gt;other&lt;/tt&gt; selection range.&lt;/p&gt;
 */"/>
    <method name="public final boolean intersects(com.trolltech.qt.gui.QItemSelectionRange other)" doc="/**
&lt;p&gt;Returns true if this selection range intersects (overlaps with) the &lt;tt&gt;other&lt;/tt&gt; range given; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final boolean isValid()" doc="/**
&lt;p&gt;Returns true if the selection range is valid; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final int left()" doc="/**
&lt;p&gt;Returns the column index corresponding to the leftmost selected column in the selection range.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QAbstractItemModel model()" doc="/**
&lt;p&gt;Returns the model that the items in the selection range belong to.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QModelIndex parent()" doc="/**
&lt;p&gt;Returns the parent model item index of the items in the selection range.&lt;/p&gt;
 */"/>
    <method name="public final int right()" doc="/**
&lt;p&gt;Returns the column index corresponding to the rightmost selected column in the selection range.&lt;/p&gt;
 */"/>
    <method name="public final int top()" doc="/**
&lt;p&gt;Returns the row index corresponding to the uppermost selected row in the selection range.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QModelIndex topLeft()" doc="/**
&lt;p&gt;Returns the index for the item located at the top-left corner of the selection range.&lt;/p&gt;

@see &lt;a href=&quot;QItemSelectionRange.html#top()&quot;&gt;&lt;tt&gt;top&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QItemSelectionRange.html#left()&quot;&gt;&lt;tt&gt;left&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QItemSelectionRange.html#bottomRight()&quot;&gt;&lt;tt&gt;bottomRight&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int width()" doc="/**
&lt;p&gt;Returns the number of selected columns in the selection range.&lt;/p&gt;
 */"/>
</class>