<class name="QPersistentModelIndex" doc="/** <p>The <a href="QPersistentModelIndex.html#QPersistentModelIndex()"><tt>QPersistentModelIndex</tt></a> class is used to locate data in a data model.</p> <p>A <a href="QPersistentModelIndex.html#QPersistentModelIndex()"><tt>QPersistentModelIndex</tt></a> 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 <a href="QPersistentModelIndex.html#QPersistentModelIndex()"><tt>QPersistentModelIndex</tt></a> since the model will ensure that references to items will continue to be valid as long as they can be accessed by the model.</p> <p>It is good practice to check that persistent model indexes are valid before using them.</p> @see <a href="%2E%2E/model-view-programming.html">Model/View Programming</tt></a> @see <tt>QModelIndex</tt> @see <a href="QAbstractItemModel.html"><tt>QAbstractItemModel</tt></a> */"> <method name="public QPersistentModelIndex(com.trolltech.qt.core.QModelIndex index)" doc="/** <p>Creates a new <a href="QPersistentModelIndex.html#QPersistentModelIndex()"><tt>QPersistentModelIndex</tt></a> that is a copy of the model <tt>index</tt>.</p> */"/> <method name="public QPersistentModelIndex(com.trolltech.qt.core.QPersistentModelIndex other)" doc="/** <p>Creates a new <a href="QPersistentModelIndex.html#QPersistentModelIndex()"><tt>QPersistentModelIndex</tt></a> that is a copy of the <tt>other</tt> persistent model index.</p> */"/> <method name="public QPersistentModelIndex()" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> */"/> <method name="public final com.trolltech.qt.core.QModelIndex child(int row, int column)" doc="/** <p>Returns the child of the model index that is stored in the given <tt>row</tt> and <tt>column</tt>.</p> @see <a href="QPersistentModelIndex.html#parent()"><tt>parent</tt></a> @see <a href="QPersistentModelIndex.html#sibling(int, int)"><tt>sibling</tt></a> */"/> <method name="public final int column()" doc="/** <p>Returns the column this persistent model index refers to.</p> */"/> <method name="public final java.lang.Object data(int role)" doc="/** <p>Returns the data for the given <tt>role</tt> for the item referred to by the index.</p> */"/> <method name="public final java.lang.Object data()" doc="/** <p>Equivalent to <a href="QPersistentModelIndex.html#data(int)">data</tt></a>(Qt::DisplayRole). */"/> <method name="public final com.trolltech.qt.core.Qt.ItemFlags flags()" doc="/** <p>Returns the flags for the item referred to by the index.</p> */"/> <method name="public final long internalId()" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> */"/> <method name="public final boolean isValid()" doc="/** <p>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.</p> @see <a href="QPersistentModelIndex.html#model()"><tt>model</tt></a> @see <a href="QPersistentModelIndex.html#row()"><tt>row</tt></a> @see <a href="QPersistentModelIndex.html#column()"><tt>column</tt></a> */"/> <method name="public final com.trolltech.qt.core.QAbstractItemModel model()" doc="/** <p>Returns the model that the index belongs to.</p> */"/> <method name="public final com.trolltech.qt.core.QModelIndex parent()" doc="/** <p>Returns the parent QModelIndex for this persistent index, or QModelIndex() if it has no parent.</p> @see <a href="QPersistentModelIndex.html#child(int, int)"><tt>child</tt></a> @see <a href="QPersistentModelIndex.html#sibling(int, int)"><tt>sibling</tt></a> @see <a href="QPersistentModelIndex.html#model()"><tt>model</tt></a> */"/> <method name="public final int row()" doc="/** <p>Returns the row this persistent model index refers to.</p> */"/> <method name="public final com.trolltech.qt.core.QModelIndex sibling(int row, int column)" doc="/** <p>Returns the sibling at <tt>row</tt> and <tt>column</tt> or an invalid QModelIndex if there is no sibling at this position.</p> @see <a href="QPersistentModelIndex.html#parent()"><tt>parent</tt></a> @see <a href="QPersistentModelIndex.html#child(int, int)"><tt>child</tt></a> */"/> </class>