<class name="QTreeModel"> <signal name="protected final void dataChanged(com.trolltech.qt.core.QModelIndex topLeft, com.trolltech.qt.core.QModelIndex bottomRight)" doc="/** <p>This signal is emitted whenever the data in an existing item changes. The affected items are those between <tt>topLeft</tt> and <tt>bottomRight</tt> inclusive (of the same parent).</p> <p>Note that this signal must be emitted explicitly when reimplementing the <a href="%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#setData(com.trolltech.qt.core.QModelIndex, java.lang.Object, int)"><tt>setData</tt></a> function.</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(com.trolltech.qt.core.QModelIndex topLeft, com.trolltech.qt.core.QModelIndex bottomRight)</tt></dd> <dd><tt>void mySlot(com.trolltech.qt.core.QModelIndex topLeft)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QTreeModel.html#headerDataChanged(com.trolltech.qt.core.Qt.Orientation, int, int)"><tt>headerDataChanged</tt></a>, <a href="%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#setData(com.trolltech.qt.core.QModelIndex, java.lang.Object, int)"><tt>setData</tt></a>, <a href="QTreeModel.html#layoutChanged()"><tt>layoutChanged</tt></a></dd> </dl> */"/> <signal name="protected final void headerDataChanged(com.trolltech.qt.core.Qt.Orientation orientation, int first, int last)" doc="/** <p>This signal is emitted whenever a header is changed. The <tt>orientation</tt> indicates whether the horizontal or vertical header has changed. The sections in the header from the <tt>first</tt> to the <tt>last</tt> need to be updated.</p> <p>Note that this signal must be emitted explicitly when reimplementing the <a href="%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#setHeaderData(int, com.trolltech.qt.core.Qt.Orientation, java.lang.Object, int)"><tt>setHeaderData</tt></a> function.</p> <p>If you are changing the number of columns or rows you don't need to emit this signal, but use the begin/end functions.</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(com.trolltech.qt.core.Qt.Orientation orientation, int first, int last)</tt></dd> <dd><tt>void mySlot(com.trolltech.qt.core.Qt.Orientation orientation, int first)</tt></dd> <dd><tt>void mySlot(com.trolltech.qt.core.Qt.Orientation orientation)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#headerData(int, com.trolltech.qt.core.Qt.Orientation, int)"><tt>headerData</tt></a>, <a href="%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#setHeaderData(int, com.trolltech.qt.core.Qt.Orientation, java.lang.Object, int)"><tt>setHeaderData</tt></a>, <a href="QTreeModel.html#dataChanged(com.trolltech.qt.core.QModelIndex, com.trolltech.qt.core.QModelIndex)"><tt>dataChanged</tt></a></dd> </dl> */"/> <signal name="protected final void layoutAboutToBeChanged()" doc="/** <p>This signal is emitted just before the layout of a model is changed. Components connected to this signal use it to adapt to changes in the model's layout.</p> <p>Subclasses should update any persistent model indexes after emitting <a href="QTreeModel.html#layoutAboutToBeChanged()"><tt>layoutAboutToBeChanged</tt></a>.</p> <dl> <dt><b>Compatible Slot Signature:</b></dt> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QTreeModel.html#layoutChanged()"><tt>layoutChanged</tt></a>, <a href="%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#changePersistentIndex(com.trolltech.qt.core.QModelIndex, com.trolltech.qt.core.QModelIndex)"><tt>changePersistentIndex</tt></a></dd> </dl> */"/> <signal name="protected final void layoutChanged()" doc="/** <p>This signal is emitted whenever the layout of items exposed by the model has changed; for example, when the model has been sorted. When this signal is received by a view, it should update the layout of items to reflect this change.</p> <p>When subclassing <a href="%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#QAbstractItemModel(com.trolltech.qt.core.QObject)"><tt>QAbstractItemModel</tt></a> or <a href="QAbstractProxyModel.html"><tt>QAbstractProxyModel</tt></a>, ensure that you emit <a href="QTreeModel.html#layoutAboutToBeChanged()"><tt>layoutAboutToBeChanged</tt></a> before changing the order of items or altering the structure of the data you expose to views, and emit <a href="QTreeModel.html#layoutChanged()"><tt>layoutChanged</tt></a> after changing the layout.</p> <p>Subclasses should update any persistent model indexes before emitting <a href="QTreeModel.html#layoutChanged()"><tt>layoutChanged</tt></a>.</p> <dl> <dt><b>Compatible Slot Signature:</b></dt> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QTreeModel.html#layoutAboutToBeChanged()"><tt>layoutAboutToBeChanged</tt></a>, <a href="QTreeModel.html#dataChanged(com.trolltech.qt.core.QModelIndex, com.trolltech.qt.core.QModelIndex)"><tt>dataChanged</tt></a>, <a href="QTreeModel.html#headerDataChanged(com.trolltech.qt.core.Qt.Orientation, int, int)"><tt>headerDataChanged</tt></a>, <a href="%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#reset()"><tt>reset</tt></a>, <a href="%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#changePersistentIndex(com.trolltech.qt.core.QModelIndex, com.trolltech.qt.core.QModelIndex)"><tt>changePersistentIndex</tt></a></dd> </dl> */"/> <method name="public QTreeModel(com.trolltech.qt.core.QObject parent)"/> <method name="public QTreeModel()"/> <method name="public final void childrenInserted(com.trolltech.qt.core.QModelIndex parent, int first, int last)"/> <method name="public final void childrenRemoved(com.trolltech.qt.core.QModelIndex parent, int first, int last)"/> <method name="public final java.lang.Object indexToValue(com.trolltech.qt.core.QModelIndex index)"/> <method name="public final void releaseChildren(com.trolltech.qt.core.QModelIndex index)"/> <method name="public final com.trolltech.qt.core.QModelIndex valueToIndex(java.lang.Object object)"/> <method name="public abstract java.lang.Object child(java.lang.Object parent, int index)"/> <method name="public abstract int childCount(java.lang.Object parent)"/> <method name="public int columnCount(com.trolltech.qt.core.QModelIndex arg__1)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="public java.lang.Object data(com.trolltech.qt.core.QModelIndex index, int role)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="public java.lang.Object data(java.lang.Object value, int role)" doc="/** <p>Returns the data stored under the given <tt>role</tt> for the item referred to by the <tt>value</tt>.</p> @see <tt>Qt::ItemDataRole</tt> @see <a href="%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#setData(com.trolltech.qt.core.QModelIndex, java.lang.Object, int)"><tt>setData</tt></a> @see <a href="%2E%2E/core/%2E%2E/core/QAbstractItemModel.html#headerData(int, com.trolltech.qt.core.Qt.Orientation, int)"><tt>headerData</tt></a> */"/> <method name="public com.trolltech.qt.gui.QIcon icon(java.lang.Object value)"/> <method name="public com.trolltech.qt.core.QModelIndex index(int row, int arg__2, com.trolltech.qt.core.QModelIndex parent)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="public com.trolltech.qt.core.QModelIndex parent(com.trolltech.qt.core.QModelIndex index)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="public int rowCount(com.trolltech.qt.core.QModelIndex parent)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="public abstract java.lang.String text(java.lang.Object value)"/> </class>