|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.trolltech.qt.core.QModelIndex
public class QModelIndex
| Method Summary | |
|---|---|
QModelIndex |
child(int arow,
int acolumn)
Queries the model for a child index of this index. |
int |
column()
Returns the column this model index refers to. |
java.lang.Object |
data()
Queries the model for the default data for this index. |
java.lang.Object |
data(int role)
Queries the model for data for this index. |
boolean |
equals(java.lang.Object other)
Compares this model index to another |
int |
hashCode()
|
long |
internalId()
Returns an int used by the model to associate the index with the internal data structure. |
QAbstractItemModel |
model()
|
QModelIndex |
parent()
Queries the model for the parent of this item. |
int |
row()
Returns the row this model index refers to. |
QModelIndex |
sibling(int arow,
int acolumn)
Queries the model for a sibling of this model index. |
java.lang.String |
toString()
Returns a string representation of this QModelIndex. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public int row()
public int column()
public long internalId()
public QModelIndex parent()
item.model().parent(item);
public QModelIndex sibling(int arow,
int acolumn)
arow - The row for the sibling.acolumn - The column for the sibling.
public QModelIndex child(int arow,
int acolumn)
arow - the row of the child.acolumn - the column of the child.
public java.lang.Object data()
Qt.ItemDataRole.DisplayRole.
public java.lang.Object data(int role)
role - The data role to query for. The different data roles are available in
com.trolltech.qt.core.Qt.ItemDataRole
public QAbstractItemModel model()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - The object to compare to
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||