<class name="QStandardItem" doc="/** <p>The <a href="QStandardItem.html#QStandardItem(com.trolltech.qt.gui.QStandardItem)"><tt>QStandardItem</tt></a> class provides an item for use with the <a href="QStandardItemModel.html"><tt>QStandardItemModel</tt></a> class.</p> <p>Items usually contain text, icons, or checkboxes.</p> <p>Each item can have its own background brush which is set with the <a href="QStandardItem.html#setBackground(com.trolltech.qt.gui.QBrush)"><tt>setBackground</tt></a> function. The current background brush can be found with <a href="QStandardItem.html#background()"><tt>background</tt></a>. The text label for each item can be rendered with its own font and brush. These are specified with the <a href="QStandardItem.html#setFont(com.trolltech.qt.gui.QFont)"><tt>setFont</tt></a> and <a href="QStandardItem.html#setForeground(com.trolltech.qt.gui.QBrush)"><tt>setForeground</tt></a> functions, and read with <a href="QStandardItem.html#font()"><tt>font</tt></a> and <a href="QStandardItem.html#foreground()"><tt>foreground</tt></a>.</p> <p>By default, items are enabled, editable, selectable, checkable, and can be used both as the source of a drag and drop operation and as a drop target. Each item's flags can be changed by calling <a href="QStandardItem.html#setFlags(com.trolltech.qt.core.Qt.ItemFlags)"><tt>setFlags</tt></a>. Checkable items can be checked and unchecked with the <a href="QStandardItem.html#setCheckState(com.trolltech.qt.core.Qt.CheckState)"><tt>setCheckState</tt></a> function. The corresponding <a href="QStandardItem.html#checkState()"><tt>checkState</tt></a> function indicates whether the item is currently checked.</p> <p>You can store application-specific data in an item by calling <a href="QStandardItem.html#setData(java.lang.Object, int)"><tt>setData</tt></a>.</p> <p>Each item can have a two-dimensional table of child items. This makes it possible to build hierarchies of items. The typical hierarchy is the tree, in which case the child table is a table with a single column (a list).</p> <p>The dimensions of the child table can be set with <a href="QStandardItem.html#setRowCount(int)"><tt>setRowCount</tt></a> and <a href="QStandardItem.html#setColumnCount(int)"><tt>setColumnCount</tt></a>. Items can be positioned in the child table with <a href="QStandardItem.html#setChild(int, com.trolltech.qt.gui.QStandardItem)"><tt>setChild</tt></a>. Get a pointer to a child item with <a href="QStandardItem.html#child(int, int)"><tt>child</tt></a>. New rows and columns of children can also be inserted with <a href="QStandardItem.html#insertRow(int, java.util.List<com.trolltech.qt.gui.QStandardItem>)"><tt>insertRow</tt></a> and <a href="QStandardItem.html#insertColumn(int, java.util.List<com.trolltech.qt.gui.QStandardItem>)"><tt>insertColumn</tt></a>, or appended with <a href="QStandardItem.html#appendRow(java.util.List<com.trolltech.qt.gui.QStandardItem>)"><tt>appendRow</tt></a> and <a href="QStandardItem.html#appendColumn(java.util.List<com.trolltech.qt.gui.QStandardItem>)"><tt>appendColumn</tt></a>. When using the append and insert functions, the dimensions of the child table will grow as needed.</p> <p>An existing row of children can be removed with <a href="QStandardItem.html#removeRow(int)"><tt>removeRow</tt></a> or <a href="QStandardItem.html#takeRow(int)"><tt>takeRow</tt></a>; correspondingly, a column can be removed with <a href="QStandardItem.html#removeColumn(int)"><tt>removeColumn</tt></a> or <a href="QStandardItem.html#takeColumn(int)"><tt>takeColumn</tt></a>.</p> <p>An item's children can be sorted by calling <a href="QStandardItem.html#sortChildren(int, com.trolltech.qt.core.Qt.SortOrder)"><tt>sortChildren</tt></a>.</p> <a name="subclassing"></a> <h3>Subclassing</h3> <p>When subclassing <a href="QStandardItem.html#QStandardItem(com.trolltech.qt.gui.QStandardItem)"><tt>QStandardItem</tt></a> to provide custom items, it is possible to define new types for them so that they can be distinguished from the base class. The <a href="QStandardItem.html#type()"><tt>type</tt></a> function should be reimplemented to return a new type value equal to or greater than <a href="QStandardItem.html#ItemType-enum"><tt>UserType</tt></a>.</p> <p>Reimplement <a href="QStandardItem.html#data(int)"><tt>data</tt></a> and <a href="QStandardItem.html#setData(java.lang.Object, int)"><tt>setData</tt></a> if you want to perform custom handling of data queries and/or control how an item's data is represented.</p> <p>Reimplement <a href="QStandardItem.html#clone()"><tt>clone</tt></a> if you want <a href="QStandardItemModel.html"><tt>QStandardItemModel</tt></a> to be able to create instances of your custom item class on demand (see QStandardItemModel::setItemPrototype()).</p> <p>Reimplement <a href="QStandardItem.html#read(com.trolltech.qt.core.QDataStream)"><tt>read</tt></a> and <a href="QStandardItem.html#write(com.trolltech.qt.core.QDataStream)"><tt>write</tt></a> if you want to control how items are represented in their serialized form.</p> <p>Reimplement <tt>operator&lt;</tt> if you want to control the semantics of item comparison. <tt>operator&lt;</tt> determines the sorted order when sorting items with <a href="QStandardItem.html#sortChildren(int, com.trolltech.qt.core.Qt.SortOrder)"><tt>sortChildren</tt></a> or with QStandardItemModel::sort().</p> @see <a href="QStandardItemModel.html"><tt>QStandardItemModel</tt></a> @see <a href="%2E%2E/model-view-convenience.html">Item View Convenience Classes</tt></a> @see <a href="%2E%2E/model-view-programming.html">Model/View Programming</tt></a> */"> <method name="public QStandardItem(java.lang.String text)" doc="/** <p>Constructs an item with the given <tt>text</tt>.</p> */"/> <method name="public QStandardItem(int rows, int columns)" doc="/** <p>Constructs an item with <tt>rows</tt> rows and <tt>columns</tt> columns of child items.</p> */"/> <method name="public QStandardItem(int rows)" doc="/** <p>Equivalent to <a href="QStandardItem.html#QStandardItem(com.trolltech.qt.gui.QStandardItem)"><tt>QStandardItem</tt></a>(<tt>rows</tt>, 1). */"/> <method name="public QStandardItem(com.trolltech.qt.gui.QIcon icon, java.lang.String text)" doc="/** <p>Constructs an item with the given <tt>icon</tt> and <tt>text</tt>.</p> */"/> <method name="public QStandardItem()" doc="/** <p>Constructs an item.</p> */"/> <method name="protected QStandardItem(com.trolltech.qt.gui.QStandardItem other)" doc="/** <p>Constructs a copy of <tt>other</tt>. Note that <a href="QStandardItem.html#model()"><tt>model</tt></a> is not copied.</p> <p>This function is useful when reimplementing <a href="QStandardItem.html#clone()"><tt>clone</tt></a>.</p> */"/> <method name="public final java.lang.String accessibleDescription()" doc="/** <p>Returns the item's accessible description.</p> <p>The accessible description is used by assistive technologies (i.e&#x2e; for users who cannot use conventional means of interaction).</p> @see <a href="QStandardItem.html#setAccessibleDescription(java.lang.String)"><tt>setAccessibleDescription</tt></a> @see <a href="QStandardItem.html#accessibleText()"><tt>accessibleText</tt></a> */"/> <method name="public final java.lang.String accessibleText()" doc="/** <p>Returns the item's accessible text.</p> <p>The accessible text is used by assistive technologies (i.e&#x2e; for users who cannot use conventional means of interaction).</p> @see <a href="QStandardItem.html#setAccessibleText(java.lang.String)"><tt>setAccessibleText</tt></a> @see <a href="QStandardItem.html#accessibleDescription()"><tt>accessibleDescription</tt></a> */"/> <method name="public final void appendColumn(java.util.List<com.trolltech.qt.gui.QStandardItem> items)" doc="/** <p>Appends a column containing <tt>items</tt>. If necessary, the row count is increased to the size of <tt>items</tt>.</p> @see <a href="QStandardItem.html#insertColumn(int, java.util.List<com.trolltech.qt.gui.QStandardItem>)"><tt>insertColumn</tt></a> */"/> <method name="public final void appendRow(com.trolltech.qt.gui.QStandardItem item)" doc="/** <p>Appends a row containing <tt>item</tt>.</p> <p>When building a list or a tree that has only one column, this function provides a convenient way to append a single new item.</p> */"/> <method name="public final void appendRow(java.util.List<com.trolltech.qt.gui.QStandardItem> items)" doc="/** <p>Appends a row containing <tt>items</tt>. If necessary, the column count is increased to the size of <tt>items</tt>.</p> @see <a href="QStandardItem.html#insertRow(int, java.util.List<com.trolltech.qt.gui.QStandardItem>)"><tt>insertRow</tt></a> */"/> <method name="public final void appendRows(java.util.List<com.trolltech.qt.gui.QStandardItem> items)" doc="/** <p>Appends rows containing <tt>items</tt>. The column count will not change.</p> @see <a href="QStandardItem.html#insertRow(int, java.util.List<com.trolltech.qt.gui.QStandardItem>)"><tt>insertRow</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QBrush background()" doc="/** <p>Returns the brush used to render the item's background.</p> @see <a href="QStandardItem.html#foreground()"><tt>foreground</tt></a> @see <a href="QStandardItem.html#setBackground(com.trolltech.qt.gui.QBrush)"><tt>setBackground</tt></a> */"/> <method name="public final com.trolltech.qt.core.Qt.CheckState checkState()" doc="/** <p>Returns the checked state of the item.</p> @see <a href="QStandardItem.html#setCheckState(com.trolltech.qt.core.Qt.CheckState)"><tt>setCheckState</tt></a> @see <a href="QStandardItem.html#isCheckable()"><tt>isCheckable</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QStandardItem child(int row, int column)" doc="/** <p>Returns the child item at (<tt>row</tt>, <tt>column</tt>) if one has been set; otherwise returns 0.</p> @see <a href="QStandardItem.html#setChild(int, com.trolltech.qt.gui.QStandardItem)"><tt>setChild</tt></a> @see <a href="QStandardItem.html#takeChild(int, int)"><tt>takeChild</tt></a> @see <a href="QStandardItem.html#parent()"><tt>parent</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QStandardItem child(int row)" doc="/** <p>Equivalent to <a href="QStandardItem.html#child(int, int)">child</tt></a>(<tt>row</tt>, 0). */"/> <method name="public final int column()" doc="/** <p>Returns the column where the item is located in its parent's child table, or -1 if the item has no parent.</p> @see <a href="QStandardItem.html#row()"><tt>row</tt></a> @see <a href="QStandardItem.html#parent()"><tt>parent</tt></a> */"/> <method name="public final int columnCount()" doc="/** <p>Returns the number of child item columns that the item has.</p> @see <a href="QStandardItem.html#setColumnCount(int)"><tt>setColumnCount</tt></a> @see <a href="QStandardItem.html#rowCount()"><tt>rowCount</tt></a> */"/> <method name="public final com.trolltech.qt.core.Qt.ItemFlags flags()" doc="/** <p>Returns the item flags for the item.</p> <p>The item flags determine how the user can interact with the item.</p> <p>By default, items are enabled, editable, selectable, checkable, and can be used both as the source of a drag and drop operation and as a drop target.</p> @see <a href="QStandardItem.html#setFlags(com.trolltech.qt.core.Qt.ItemFlags)"><tt>setFlags</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QFont font()" doc="/** <p>Returns the font used to render the item's text.</p> @see <a href="QStandardItem.html#setFont(com.trolltech.qt.gui.QFont)"><tt>setFont</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QBrush foreground()" doc="/** <p>Returns the brush used to render the item's foreground (e.g&#x2e; text).</p> @see <a href="QStandardItem.html#setForeground(com.trolltech.qt.gui.QBrush)"><tt>setForeground</tt></a> @see <a href="QStandardItem.html#background()"><tt>background</tt></a> */"/> <method name="public final boolean hasChildren()" doc="/** <p>Returns true if this item has any children; otherwise returns false.</p> @see <a href="QStandardItem.html#rowCount()"><tt>rowCount</tt></a> @see <a href="QStandardItem.html#columnCount()"><tt>columnCount</tt></a> @see <a href="QStandardItem.html#child(int, int)"><tt>child</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QIcon icon()" doc="/** <p>Returns the item's icon.</p> @see <a href="QStandardItem.html#setIcon(com.trolltech.qt.gui.QIcon)"><tt>setIcon</tt></a> @see <tt>iconSize</tt> */"/> <method name="public final com.trolltech.qt.core.QModelIndex index()" doc="/** <p>Returns the QModelIndex associated with this item.</p> <p>When you need to invoke item functionality in a QModelIndex-based API (e.g&#x2e; <a href="QAbstractItemView.html"><tt>QAbstractItemView</tt></a>), you can call this function to obtain an index that corresponds to the item's location in the model.</p> <p>If the item is not associated with a model, an invalid QModelIndex is returned.</p> @see <a href="QStandardItem.html#model()"><tt>model</tt></a> @see <tt>QStandardItemModel::itemFromIndex</tt> */"/> <method name="public final void insertColumn(int column, java.util.List<com.trolltech.qt.gui.QStandardItem> items)" doc="/** <p>Inserts a column at <tt>column</tt> containing <tt>items</tt>. If necessary, the row count is increased to the size of <tt>items</tt>.</p> @see <a href="QStandardItem.html#insertColumns(int, int)"><tt>insertColumns</tt></a> @see <a href="QStandardItem.html#insertRow(int, java.util.List<com.trolltech.qt.gui.QStandardItem>)"><tt>insertRow</tt></a> */"/> <method name="public final void insertColumns(int column, int count)" doc="/** <p>Inserts <tt>count</tt> columns of child items at column <tt>column</tt>.</p> @see <a href="QStandardItem.html#insertColumn(int, java.util.List<com.trolltech.qt.gui.QStandardItem>)"><tt>insertColumn</tt></a> @see <a href="QStandardItem.html#insertRows(int, int)"><tt>insertRows</tt></a> */"/> <method name="public final void insertRow(int row, com.trolltech.qt.gui.QStandardItem item)" doc="/** <p>Inserts a row at <tt>row</tt> containing <tt>item</tt>.</p> <p>When building a list or a tree that has only one column, this function provides a convenient way to insert a single new item.</p> */"/> <method name="public final void insertRow(int row, java.util.List<com.trolltech.qt.gui.QStandardItem> items)" doc="/** <p>Inserts a row at <tt>row</tt> containing <tt>items</tt>. If necessary, the column count is increased to the size of <tt>items</tt>.</p> @see <a href="QStandardItem.html#insertRows(int, int)"><tt>insertRows</tt></a> @see <a href="QStandardItem.html#insertColumn(int, java.util.List<com.trolltech.qt.gui.QStandardItem>)"><tt>insertColumn</tt></a> */"/> <method name="public final void insertRows(int row, java.util.List<com.trolltech.qt.gui.QStandardItem> items)" doc="/** <p>Inserts <tt>items</tt> at <tt>row</tt>. The column count wont be changed.</p> @see <a href="QStandardItem.html#insertRow(int, java.util.List<com.trolltech.qt.gui.QStandardItem>)"><tt>insertRow</tt></a> @see <a href="QStandardItem.html#insertColumn(int, java.util.List<com.trolltech.qt.gui.QStandardItem>)"><tt>insertColumn</tt></a> */"/> <method name="public final void insertRows(int row, int count)" doc="/** <p>Inserts <tt>count</tt> rows of child items at row <tt>row</tt>.</p> @see <a href="QStandardItem.html#insertRow(int, java.util.List<com.trolltech.qt.gui.QStandardItem>)"><tt>insertRow</tt></a> @see <a href="QStandardItem.html#insertColumns(int, int)"><tt>insertColumns</tt></a> */"/> <method name="public final boolean isCheckable()" doc="/** <p>Returns whether the item is user-checkable.</p> <p>The default value is false.</p> @see <a href="QStandardItem.html#setCheckable(boolean)"><tt>setCheckable</tt></a> @see <a href="QStandardItem.html#checkState()"><tt>checkState</tt></a> @see <a href="QStandardItem.html#isTristate()"><tt>isTristate</tt></a> */"/> <method name="public final boolean isDragEnabled()" doc="/** <p>Returns whether the item is drag enabled. An item that is drag enabled can be dragged by the user.</p> <p>The default value is true.</p> <p>Note that item dragging must be enabled in the view for dragging to work; see QAbstractItemView::dragEnabled.</p> @see <a href="QStandardItem.html#setDragEnabled(boolean)"><tt>setDragEnabled</tt></a> @see <a href="QStandardItem.html#isDropEnabled()"><tt>isDropEnabled</tt></a> @see <a href="QStandardItem.html#flags()"><tt>flags</tt></a> */"/> <method name="public final boolean isDropEnabled()" doc="/** <p>Returns whether the item is drop enabled. When an item is drop enabled, it can be used as a drop target.</p> <p>The default value is true.</p> @see <a href="QStandardItem.html#setDropEnabled(boolean)"><tt>setDropEnabled</tt></a> @see <a href="QStandardItem.html#isDragEnabled()"><tt>isDragEnabled</tt></a> @see <a href="QStandardItem.html#flags()"><tt>flags</tt></a> */"/> <method name="public final boolean isEditable()" doc="/** <p>Returns whether the item can be edited by the user.</p> <p>When an item is editable (and enabled), the user can edit the item by invoking one of the view's edit triggers; see QAbstractItemView::editTriggers.</p> <p>The default value is true.</p> @see <a href="QStandardItem.html#setEditable(boolean)"><tt>setEditable</tt></a> @see <a href="QStandardItem.html#flags()"><tt>flags</tt></a> */"/> <method name="public final boolean isEnabled()" doc="/** <p>Returns whether the item is enabled.</p> <p>When an item is enabled, the user can interact with it. The possible types of interaction are specified by the other item flags, such as <a href="QStandardItem.html#isEditable()"><tt>isEditable</tt></a> and <a href="QStandardItem.html#isSelectable()"><tt>isSelectable</tt></a>.</p> <p>The default value is true.</p> @see <a href="QStandardItem.html#setEnabled(boolean)"><tt>setEnabled</tt></a> @see <a href="QStandardItem.html#flags()"><tt>flags</tt></a> */"/> <method name="public final boolean isSelectable()" doc="/** <p>Returns whether the item is selectable by the user.</p> <p>The default value is true.</p> @see <a href="QStandardItem.html#setSelectable(boolean)"><tt>setSelectable</tt></a> @see <a href="QStandardItem.html#flags()"><tt>flags</tt></a> */"/> <method name="public final boolean isTristate()" doc="/** <p>Returns whether the item is tristate; that is, if it's checkable with tree separate states.</p> <p>The default value is false.</p> @see <a href="QStandardItem.html#setTristate(boolean)"><tt>setTristate</tt></a> @see <a href="QStandardItem.html#isCheckable()"><tt>isCheckable</tt></a> @see <a href="QStandardItem.html#checkState()"><tt>checkState</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QStandardItemModel model()" doc="/** <p>Returns the <a href="QStandardItemModel.html"><tt>QStandardItemModel</tt></a> that this item belongs to.</p> <p>If the item is not a child of another item that belongs to the model, this function returns 0.</p> @see <a href="QStandardItem.html#index()"><tt>index</tt></a> */"/> <method name="public final void writeTo(com.trolltech.qt.core.QDataStream out)"/> <method name="public final void readFrom(com.trolltech.qt.core.QDataStream in)"/> <method name="public final com.trolltech.qt.gui.QStandardItem parent()" doc="/** <p>Returns the item's parent item, or 0 if the item has no parent.</p> @see <a href="QStandardItem.html#child(int, int)"><tt>child</tt></a> */"/> <method name="public final void removeColumn(int column)" doc="/** <p>Removes the given <tt>column</tt>. The items that were in the column are deleted.</p> @see <a href="QStandardItem.html#takeColumn(int)"><tt>takeColumn</tt></a> @see <a href="QStandardItem.html#removeColumns(int, int)"><tt>removeColumns</tt></a> @see <a href="QStandardItem.html#removeRow(int)"><tt>removeRow</tt></a> */"/> <method name="public final void removeColumns(int column, int count)" doc="/** <p>Removes <tt>count</tt> columns at column <tt>column</tt>. The items that were in those columns are deleted.</p> @see <a href="QStandardItem.html#removeColumn(int)"><tt>removeColumn</tt></a> @see <a href="QStandardItem.html#removeRows(int, int)"><tt>removeRows</tt></a> */"/> <method name="public final void removeRow(int row)" doc="/** <p>Removes the given <tt>row</tt>. The items that were in the row are deleted.</p> @see <a href="QStandardItem.html#takeRow(int)"><tt>takeRow</tt></a> @see <a href="QStandardItem.html#removeRows(int, int)"><tt>removeRows</tt></a> @see <a href="QStandardItem.html#removeColumn(int)"><tt>removeColumn</tt></a> */"/> <method name="public final void removeRows(int row, int count)" doc="/** <p>Removes <tt>count</tt> rows at row <tt>row</tt>. The items that were in those rows are deleted.</p> @see <a href="QStandardItem.html#removeRow(int)"><tt>removeRow</tt></a> @see <a href="QStandardItem.html#removeColumn(int)"><tt>removeColumn</tt></a> */"/> <method name="public final int row()" doc="/** <p>Returns the row where the item is located in its parent's child table, or -1 if the item has no parent.</p> @see <a href="QStandardItem.html#column()"><tt>column</tt></a> @see <a href="QStandardItem.html#parent()"><tt>parent</tt></a> */"/> <method name="public final int rowCount()" doc="/** <p>Returns the number of child item rows that the item has.</p> @see <a href="QStandardItem.html#setRowCount(int)"><tt>setRowCount</tt></a> @see <a href="QStandardItem.html#columnCount()"><tt>columnCount</tt></a> */"/> <method name="public final void setAccessibleDescription(java.lang.String accessibleDescription)" doc="/** <p>Sets the item's accessible description to the string specified by <tt>accessibleDescription</tt>.</p> <p>The accessible description is used by assistive technologies (i.e&#x2e; for users who cannot use conventional means of interaction).</p> @see <a href="QStandardItem.html#accessibleDescription()"><tt>accessibleDescription</tt></a> @see <a href="QStandardItem.html#setAccessibleText(java.lang.String)"><tt>setAccessibleText</tt></a> */"/> <method name="public final void setAccessibleText(java.lang.String accessibleText)" doc="/** <p>Sets the item's accessible text to the string specified by <tt>accessibleText</tt>.</p> <p>The accessible text is used by assistive technologies (i.e&#x2e; for users who cannot use conventional means of interaction).</p> @see <a href="QStandardItem.html#accessibleText()"><tt>accessibleText</tt></a> @see <a href="QStandardItem.html#setAccessibleDescription(java.lang.String)"><tt>setAccessibleDescription</tt></a> */"/> <method name="public final void setBackground(com.trolltech.qt.gui.QBrush brush)" doc="/** <p>Sets the item's background brush to the specified <tt>brush</tt>.</p> @see <a href="QStandardItem.html#background()"><tt>background</tt></a> @see <a href="QStandardItem.html#setForeground(com.trolltech.qt.gui.QBrush)"><tt>setForeground</tt></a> */"/> <method name="public final void setCheckState(com.trolltech.qt.core.Qt.CheckState checkState)" doc="/** <p>Sets the check state of the item to be <tt>checkState</tt>.</p> @see <a href="QStandardItem.html#checkState()"><tt>checkState</tt></a> @see <a href="QStandardItem.html#setCheckable(boolean)"><tt>setCheckable</tt></a> */"/> <method name="public final void setCheckable(boolean checkable)" doc="/** <p>Sets whether the item is user-checkable. If <tt>checkable</tt> is true, the item can be checked by the user; otherwise, the user cannot check the item.</p> <p>The item delegate will render a checkable item with a check box next to the item's text.</p> @see <a href="QStandardItem.html#isCheckable()"><tt>isCheckable</tt></a> @see <a href="QStandardItem.html#setCheckState(com.trolltech.qt.core.Qt.CheckState)"><tt>setCheckState</tt></a> @see <a href="QStandardItem.html#setTristate(boolean)"><tt>setTristate</tt></a> */"/> <method name="public final void setChild(int row, int column, com.trolltech.qt.gui.QStandardItem item)" doc="/** <p>Sets the child item at (<tt>row</tt>, <tt>column</tt>) to <tt>item</tt>. This item (the parent item) takes ownership of <tt>item</tt>. If necessary, the row count and column count are increased to fit the item.</p> @see <a href="QStandardItem.html#child(int, int)"><tt>child</tt></a> */"/> <method name="public final void setChild(int row, com.trolltech.qt.gui.QStandardItem item)" doc="/** <p>Sets the child at <tt>row</tt> to <tt>item</tt>.</p> @see <a href="QStandardItem.html#child(int, int)"><tt>child</tt></a> */"/> <method name="public final void setColumnCount(int columns)" doc="/** <p>Sets the number of child item columns to <tt>columns</tt>. If this is less than <a href="QStandardItem.html#columnCount()"><tt>columnCount</tt></a>, the data in the unwanted columns is discarded.</p> @see <a href="QStandardItem.html#columnCount()"><tt>columnCount</tt></a> @see <a href="QStandardItem.html#setRowCount(int)"><tt>setRowCount</tt></a> */"/> <method name="public final void setDragEnabled(boolean dragEnabled)" doc="/** <p>Sets whether the item is drag enabled. If <tt>dragEnabled</tt> is true, the item can be dragged by the user; otherwise, the user cannot drag the item.</p> <p>Note that you also need to ensure that item dragging is enabled in the view; see QAbstractItemView::dragEnabled.</p> @see <a href="QStandardItem.html#isDragEnabled()"><tt>isDragEnabled</tt></a> @see <a href="QStandardItem.html#setDropEnabled(boolean)"><tt>setDropEnabled</tt></a> @see <a href="QStandardItem.html#setFlags(com.trolltech.qt.core.Qt.ItemFlags)"><tt>setFlags</tt></a> */"/> <method name="public final void setDropEnabled(boolean dropEnabled)" doc="/** <p>Sets whether the item is drop enabled. If <tt>dropEnabled</tt> is true, the item can be used as a drop target; otherwise, it cannot.</p> <p>Note that you also need to ensure that drops are enabled in the view; see QWidget::acceptDrops(); and that the model supports the desired drop actions; see QAbstractItemModel::supportedDropActions().</p> @see <a href="QStandardItem.html#isDropEnabled()"><tt>isDropEnabled</tt></a> @see <a href="QStandardItem.html#setDragEnabled(boolean)"><tt>setDragEnabled</tt></a> @see <a href="QStandardItem.html#setFlags(com.trolltech.qt.core.Qt.ItemFlags)"><tt>setFlags</tt></a> */"/> <method name="public final void setEditable(boolean editable)" doc="/** <p>Sets whether the item is editable. If <tt>editable</tt> is true, the item can be edited by the user; otherwise, the user cannot edit the item.</p> <p>How the user can edit items in a view is determined by the view's edit triggers; see QAbstractItemView::editTriggers.</p> @see <a href="QStandardItem.html#isEditable()"><tt>isEditable</tt></a> @see <a href="QStandardItem.html#setFlags(com.trolltech.qt.core.Qt.ItemFlags)"><tt>setFlags</tt></a> */"/> <method name="public final void setEnabled(boolean enabled)" doc="/** <p>Sets whether the item is enabled. If <tt>enabled</tt> is true, the item is enabled, meaning that the user can interact with the item; if <tt>enabled</tt> is false, the user cannot interact with the item.</p> <p>This flag takes presedence over the other item flags; e.g&#x2e; if an item is not enabled, it cannot be selected by the user, even if the Qt::ItemIsSelectable flag has been set.</p> @see <a href="QStandardItem.html#isEnabled()"><tt>isEnabled</tt></a> @see <tt>Qt::ItemIsEnabled</tt> @see <a href="QStandardItem.html#setFlags(com.trolltech.qt.core.Qt.ItemFlags)"><tt>setFlags</tt></a> */"/> <method name="public final void setFlags(com.trolltech.qt.core.Qt.ItemFlags flags)" doc="/** <p>Sets the item flags for the item to <tt>flags</tt>.</p> <p>The item flags determine how the user can interact with the item. This is often used to disable an item.</p> @see <a href="QStandardItem.html#flags()"><tt>flags</tt></a> @see <a href="QStandardItem.html#setData(java.lang.Object, int)"><tt>setData</tt></a> */"/> <method name="public final void setFont(com.trolltech.qt.gui.QFont font)" doc="/** <p>Sets the font used to display the item's text to the given <tt>font</tt>.</p> @see <a href="QStandardItem.html#font()"><tt>font</tt></a> @see <a href="QStandardItem.html#setText(java.lang.String)"><tt>setText</tt></a> @see <a href="QStandardItem.html#setForeground(com.trolltech.qt.gui.QBrush)"><tt>setForeground</tt></a> */"/> <method name="public final void setForeground(com.trolltech.qt.gui.QBrush brush)" doc="/** <p>Sets the brush used to display the item's foreground (e.g&#x2e; text) to the given <tt>brush</tt>.</p> @see <a href="QStandardItem.html#foreground()"><tt>foreground</tt></a> @see <a href="QStandardItem.html#setBackground(com.trolltech.qt.gui.QBrush)"><tt>setBackground</tt></a> @see <a href="QStandardItem.html#setFont(com.trolltech.qt.gui.QFont)"><tt>setFont</tt></a> */"/> <method name="public final void setIcon(com.trolltech.qt.gui.QIcon icon)" doc="/** <p>Sets the item's icon to the <tt>icon</tt> specified.</p> @see <a href="QStandardItem.html#icon()"><tt>icon</tt></a> */"/> <method name="public final void setRowCount(int rows)" doc="/** <p>Sets the number of child item rows to <tt>rows</tt>. If this is less than <a href="QStandardItem.html#rowCount()"><tt>rowCount</tt></a>, the data in the unwanted rows is discarded.</p> @see <a href="QStandardItem.html#rowCount()"><tt>rowCount</tt></a> @see <a href="QStandardItem.html#setColumnCount(int)"><tt>setColumnCount</tt></a> */"/> <method name="public final void setSelectable(boolean selectable)" doc="/** <p>Sets whether the item is selectable. If <tt>selectable</tt> is true, the item can be selected by the user; otherwise, the user cannot select the item.</p> <p>You can control the selection behavior and mode by manipulating their view properties; see QAbstractItemView::selectionMode and QAbstractItemView::selectionBehavior.</p> @see <a href="QStandardItem.html#isSelectable()"><tt>isSelectable</tt></a> @see <a href="QStandardItem.html#setFlags(com.trolltech.qt.core.Qt.ItemFlags)"><tt>setFlags</tt></a> */"/> <method name="public final void setSizeHint(com.trolltech.qt.core.QSize sizeHint)" doc="/** <p>Sets the size hint for the item to be <tt>sizeHint</tt>. If no size hint is set, the item delegate will compute the size hint based on the item data.</p> @see <a href="QStandardItem.html#sizeHint()"><tt>sizeHint</tt></a> */"/> <method name="public final void setStatusTip(java.lang.String statusTip)" doc="/** <p>Sets the item's status tip to the string specified by <tt>statusTip</tt>.</p> @see <a href="QStandardItem.html#statusTip()"><tt>statusTip</tt></a> @see <a href="QStandardItem.html#setToolTip(java.lang.String)"><tt>setToolTip</tt></a> @see <a href="QStandardItem.html#setWhatsThis(java.lang.String)"><tt>setWhatsThis</tt></a> */"/> <method name="public final void setText(java.lang.String text)" doc="/** <p>Sets the item's text to the <tt>text</tt> specified.</p> @see <a href="QStandardItem.html#text()"><tt>text</tt></a> @see <a href="QStandardItem.html#setFont(com.trolltech.qt.gui.QFont)"><tt>setFont</tt></a> @see <a href="QStandardItem.html#setForeground(com.trolltech.qt.gui.QBrush)"><tt>setForeground</tt></a> */"/> <method name="public final void setTextAlignment(com.trolltech.qt.core.Qt.Alignment textAlignment)" doc="/** <p>Sets the text alignment for the item's text to the <tt>textAlignment</tt> specified.</p> @see <a href="QStandardItem.html#textAlignment()"><tt>textAlignment</tt></a> */"/> <method name="public final void setToolTip(java.lang.String toolTip)" doc="/** <p>Sets the item's tooltip to the string specified by <tt>toolTip</tt>.</p> @see <a href="QStandardItem.html#toolTip()"><tt>toolTip</tt></a> @see <a href="QStandardItem.html#setStatusTip(java.lang.String)"><tt>setStatusTip</tt></a> @see <a href="QStandardItem.html#setWhatsThis(java.lang.String)"><tt>setWhatsThis</tt></a> */"/> <method name="public final void setTristate(boolean tristate)" doc="/** <p>Sets whether the item is tristate. If <tt>tristate</tt> is true, the item is checkable with three separate states; otherwise, the item is checkable with two states. (Note that this also requires that the item is checkable; see <a href="QStandardItem.html#isCheckable()"><tt>isCheckable</tt></a>.)</p> @see <a href="QStandardItem.html#isTristate()"><tt>isTristate</tt></a> @see <a href="QStandardItem.html#setCheckable(boolean)"><tt>setCheckable</tt></a> @see <a href="QStandardItem.html#setCheckState(com.trolltech.qt.core.Qt.CheckState)"><tt>setCheckState</tt></a> */"/> <method name="public final void setWhatsThis(java.lang.String whatsThis)" doc="/** <p>Sets the item's &quot;What's This?&quot; help to the string specified by <tt>whatsThis</tt>.</p> @see <a href="QStandardItem.html#whatsThis()"><tt>whatsThis</tt></a> @see <a href="QStandardItem.html#setStatusTip(java.lang.String)"><tt>setStatusTip</tt></a> @see <a href="QStandardItem.html#setToolTip(java.lang.String)"><tt>setToolTip</tt></a> */"/> <method name="public final com.trolltech.qt.core.QSize sizeHint()" doc="/** <p>Returns the size hint set for the item, or an invalid <a href="%2E%2E/core/QSize.html"><tt>QSize</tt></a> if no size hint has been set.</p> <p>If no size hint has been set, the item delegate will compute the size hint based on the item data.</p> @see <a href="QStandardItem.html#setSizeHint(com.trolltech.qt.core.QSize)"><tt>setSizeHint</tt></a> */"/> <method name="public final void sortChildren(int column, com.trolltech.qt.core.Qt.SortOrder order)" doc="/** <p>Sorts the children of the item using the given <tt>order</tt>, by the values in the given <tt>column</tt>.</p> @see <tt>operator&lt;</tt> */"/> <method name="public final void sortChildren(int column)" doc="/** <p>Equivalent to <a href="QStandardItem.html#sortChildren(int, com.trolltech.qt.core.Qt.SortOrder)"><tt>sortChildren</tt></a>(<tt>column</tt>, Qt::AscendingOrder). */"/> <method name="public final java.lang.String statusTip()" doc="/** <p>Returns the item's status tip.</p> @see <a href="QStandardItem.html#setStatusTip(java.lang.String)"><tt>setStatusTip</tt></a> @see <a href="QStandardItem.html#toolTip()"><tt>toolTip</tt></a> @see <a href="QStandardItem.html#whatsThis()"><tt>whatsThis</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QStandardItem takeChild(int row, int column)" doc="/** <p>Removes the child item at (<tt>row</tt>, <tt>column</tt>) without deleting it, and returns a pointer to the item. If there was no child at the given location, then this function returns 0.</p> <p>Note that this function, unlike <a href="QStandardItem.html#takeRow(int)"><tt>takeRow</tt></a> and <a href="QStandardItem.html#takeColumn(int)"><tt>takeColumn</tt></a>, does not affect the dimensions of the child table.</p> @see <a href="QStandardItem.html#child(int, int)"><tt>child</tt></a> @see <a href="QStandardItem.html#takeRow(int)"><tt>takeRow</tt></a> @see <a href="QStandardItem.html#takeColumn(int)"><tt>takeColumn</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QStandardItem takeChild(int row)" doc="/** <p>Equivalent to <a href="QStandardItem.html#takeChild(int, int)"><tt>takeChild</tt></a>(<tt>row</tt>, 0). */"/> <method name="public final java.util.List<com.trolltech.qt.gui.QStandardItem> takeColumn(int column)" doc="/** <p>Removes <tt>column</tt> without deleting the column items, and returns a list of pointers to the removed items. For items in the column that have not been set, the corresponding pointers in the list will be 0.</p> @see <a href="QStandardItem.html#removeColumn(int)"><tt>removeColumn</tt></a> @see <a href="QStandardItem.html#insertColumn(int, java.util.List<com.trolltech.qt.gui.QStandardItem>)"><tt>insertColumn</tt></a> @see <a href="QStandardItem.html#takeRow(int)"><tt>takeRow</tt></a> */"/> <method name="public final java.util.List<com.trolltech.qt.gui.QStandardItem> takeRow(int row)" doc="/** <p>Removes <tt>row</tt> without deleting the row items, and returns a list of pointers to the removed items. For items in the row that have not been set, the corresponding pointers in the list will be 0.</p> @see <a href="QStandardItem.html#removeRow(int)"><tt>removeRow</tt></a> @see <a href="QStandardItem.html#insertRow(int, java.util.List<com.trolltech.qt.gui.QStandardItem>)"><tt>insertRow</tt></a> @see <a href="QStandardItem.html#takeColumn(int)"><tt>takeColumn</tt></a> */"/> <method name="public final java.lang.String text()" doc="/** <p>Returns the item's text. This is the text that's presented to the user in a view.</p> @see <a href="QStandardItem.html#setText(java.lang.String)"><tt>setText</tt></a> */"/> <method name="public final com.trolltech.qt.core.Qt.Alignment textAlignment()" doc="/** <p>Returns the text alignment for the item's text.</p> @see <a href="QStandardItem.html#setTextAlignment(com.trolltech.qt.core.Qt.Alignment)"><tt>setTextAlignment</tt></a> */"/> <method name="public final java.lang.String toolTip()" doc="/** <p>Returns the item's tooltip.</p> @see <a href="QStandardItem.html#setToolTip(java.lang.String)"><tt>setToolTip</tt></a> @see <a href="QStandardItem.html#statusTip()"><tt>statusTip</tt></a> @see <a href="QStandardItem.html#whatsThis()"><tt>whatsThis</tt></a> */"/> <method name="public final java.lang.String whatsThis()" doc="/** <p>Returns the item's &quot;What's This?&quot; help.</p> @see <a href="QStandardItem.html#setWhatsThis(java.lang.String)"><tt>setWhatsThis</tt></a> @see <a href="QStandardItem.html#toolTip()"><tt>toolTip</tt></a> @see <a href="QStandardItem.html#statusTip()"><tt>statusTip</tt></a> */"/> <method name="public com.trolltech.qt.gui.QStandardItem clone()" doc="/** <p>Returns a copy of this item. The item's children are not copied.</p> <p>When subclassing <a href="QStandardItem.html#QStandardItem(com.trolltech.qt.gui.QStandardItem)"><tt>QStandardItem</tt></a>, you can reimplement this function to provide <a href="QStandardItemModel.html"><tt>QStandardItemModel</tt></a> with a factory that it can use to create new items on demand.</p> @see <tt>QStandardItemModel::setItemPrototype</tt> @see <tt>operator=</tt> */"/> <method name="public java.lang.Object data(int role)" doc="/** <p>Returns the item's data for the given <tt>role</tt>, or an invalid <a href="%2E%2E/porting4.html#qvariant"><tt>QVariant</tt></a> if there is no data for the role.</p> @see <a href="QStandardItem.html#setData(java.lang.Object, int)"><tt>setData</tt></a> */"/> <method name="public final java.lang.Object data()" doc="/** <p>Equivalent to <a href="QStandardItem.html#data(int)">data</tt></a>(Qt::UserRole + 1). */"/> <method name="public void read(com.trolltech.qt.core.QDataStream in)" doc="/** <p>Reads the item from stream <tt>in</tt>. Only the data and flags of the item are read, not the child items.</p> @see <a href="QStandardItem.html#write(com.trolltech.qt.core.QDataStream)"><tt>write</tt></a> */"/> <method name="public void setData(java.lang.Object value, int role)" doc="/** <p>Sets the item's data for the given <tt>role</tt> to the specified <tt>value</tt>.</p> @see <tt>Qt::ItemDataRole</tt> @see <a href="QStandardItem.html#data(int)"><tt>data</tt></a> @see <a href="QStandardItem.html#setFlags(com.trolltech.qt.core.Qt.ItemFlags)"><tt>setFlags</tt></a> */"/> <method name="public final void setData(java.lang.Object value)" doc="/** <p>Equivalent to <a href="QStandardItem.html#setData(java.lang.Object, int)"><tt>setData</tt></a>(<tt>value</tt>, Qt::UserRole + 1). */"/> <method name="public int type()" doc="/** <p>Returns the type of this item. The type is used to distinguish custom items from the base class. When subclassing <a href="QStandardItem.html#QStandardItem(com.trolltech.qt.gui.QStandardItem)"><tt>QStandardItem</tt></a>, you should reimplement this function and return a new value greater than or equal to <a href="QStandardItem.html#ItemType-enum"><tt>UserType</tt></a>.</p> @see <tt>QStandardItem::Type</tt> */"/> <method name="public void write(com.trolltech.qt.core.QDataStream out)" doc="/** <p>Writes the item to stream <tt>out</tt>. Only the data and flags of the item are written, not the child items.</p> @see <a href="QStandardItem.html#read(com.trolltech.qt.core.QDataStream)"><tt>read</tt></a> */"/> <enum name="ItemType" doc="/** <p>This enum describes the types that are used to describe standard items.</p> <p>You can define new user types in <a href="QStandardItem.html#QStandardItem(com.trolltech.qt.gui.QStandardItem)"><tt>QStandardItem</tt></a> subclasses to ensure that custom items are treated specially; for example, when items are sorted.</p> @see <a href="QStandardItem.html#type()"><tt>type</tt></a> */"> <enum-value name="Type" doc="/** <p>The default type for standard items.</p> */"/> <enum-value name="UserType" doc="/** <p>The minimum value for custom types. Values below <a href="QStandardItem.html#ItemType-enum"><tt>UserType</tt></a> are reserved by Qt.</p> */"/> </enum> </class>