<class name="QColumnView" doc="/** <p>The <a href="QColumnView.html#QColumnView(com.trolltech.qt.gui.QWidget)"><tt>QColumnView</tt></a> class provides a model/view implementation of a column view.</p> <p><a href="QColumnView.html#QColumnView(com.trolltech.qt.gui.QWidget)"><tt>QColumnView</tt></a> displays a model in a number of QListViews, one for each hierarchy in the tree. This is sometimes referred to as a cascading list.</p> <p>The <a href="QColumnView.html#QColumnView(com.trolltech.qt.gui.QWidget)"><tt>QColumnView</tt></a> class is one of the <a href="%2E%2E/qt4-interview.html#model-view-classes">Model/View Classes</tt></a> and is part of Qt's <a href="%2E%2E/model-view-programming.html">model/view framework</tt></a>.</p> <p><a href="QColumnView.html#QColumnView(com.trolltech.qt.gui.QWidget)"><tt>QColumnView</tt></a> implements the interfaces defined by the <a href="QAbstractItemView.html#QAbstractItemView(com.trolltech.qt.gui.QWidget)"><tt>QAbstractItemView</tt></a> class to allow it to display data provided by models derived from the <a href="%2E%2E/core/QAbstractItemModel.html"><tt>QAbstractItemModel</tt></a> class.</p> @see <a href="%2E%2E/model-view-programming.html">Model/View Programming</tt></a> */"> <signal name="protected final void activated(com.trolltech.qt.core.QModelIndex index)" doc="/** <p>This signal is emitted when the item specified by <tt>index</tt> is activated by the user. How to activate items depends on the platform; e.g&#x2e;, by single- or double-clicking the item, or by pressing the Return or Enter key when the item is current.</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(com.trolltech.qt.core.QModelIndex index)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QColumnView.html#clicked(com.trolltech.qt.core.QModelIndex)"><tt>clicked</tt></a>, <a href="QColumnView.html#doubleClicked(com.trolltech.qt.core.QModelIndex)"><tt>doubleClicked</tt></a>, <a href="QColumnView.html#entered(com.trolltech.qt.core.QModelIndex)"><tt>entered</tt></a>, <a href="QColumnView.html#pressed(com.trolltech.qt.core.QModelIndex)"><tt>pressed</tt></a></dd> </dl> */"/> <signal name="protected final void clicked(com.trolltech.qt.core.QModelIndex index)" doc="/** <p>This signal is emitted when a mouse button is clicked. The item the mouse was clicked on is specified by <tt>index</tt>. The signal is only emitted when the index is valid.</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(com.trolltech.qt.core.QModelIndex index)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QColumnView.html#activated(com.trolltech.qt.core.QModelIndex)"><tt>activated</tt></a>, <a href="QColumnView.html#doubleClicked(com.trolltech.qt.core.QModelIndex)"><tt>doubleClicked</tt></a>, <a href="QColumnView.html#entered(com.trolltech.qt.core.QModelIndex)"><tt>entered</tt></a>, <a href="QColumnView.html#pressed(com.trolltech.qt.core.QModelIndex)"><tt>pressed</tt></a></dd> </dl> */"/> <signal name="protected final void customContextMenuRequested(com.trolltech.qt.core.QPoint pos)" doc="/** <p>This signal is emitted when the widget's <a href="QWidget.html#contextMenuPolicy()"><tt>contextMenuPolicy</tt></a> is Qt::CustomContextMenu, and the user has requested a context menu on the widget. The position <tt>pos</tt> is the position of the context menu event that the widget receives. Normally this is in widget coordinates. The exception to this rule is <a href="QAbstractScrollArea.html#QAbstractScrollArea(com.trolltech.qt.gui.QWidget)"><tt>QAbstractScrollArea</tt></a> and its subclasses that map the context menu event to coordinates of the viewport()</tt> .</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(com.trolltech.qt.core.QPoint pos)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QWidget.html#mapToGlobal(com.trolltech.qt.core.QPoint)"><tt>mapToGlobal</tt></a>, <a href="QMenu.html"><tt>QMenu</tt></a>, <a href="QWidget.html#contextMenuPolicy()"><tt>contextMenuPolicy</tt></a></dd> </dl> */"/> <signal name="protected final void doubleClicked(com.trolltech.qt.core.QModelIndex index)" doc="/** <p>This signal is emitted when a mouse button is double-clicked. The item the mouse was double-clicked on is specified by <tt>index</tt>. The signal is only emitted when the index is valid.</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(com.trolltech.qt.core.QModelIndex index)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QColumnView.html#clicked(com.trolltech.qt.core.QModelIndex)"><tt>clicked</tt></a>, <a href="QColumnView.html#activated(com.trolltech.qt.core.QModelIndex)"><tt>activated</tt></a></dd> </dl> */"/> <signal name="protected final void entered(com.trolltech.qt.core.QModelIndex index)" doc="/** <p>This signal is emitted when the mouse cursor enters the item specified by <tt>index</tt>. Mouse tracking needs to be enabled for this feature to work.</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(com.trolltech.qt.core.QModelIndex index)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QColumnView.html#viewportEntered()"><tt>viewportEntered</tt></a>, <a href="QColumnView.html#activated(com.trolltech.qt.core.QModelIndex)"><tt>activated</tt></a>, <a href="QColumnView.html#clicked(com.trolltech.qt.core.QModelIndex)"><tt>clicked</tt></a>, <a href="QColumnView.html#doubleClicked(com.trolltech.qt.core.QModelIndex)"><tt>doubleClicked</tt></a>, <a href="QColumnView.html#pressed(com.trolltech.qt.core.QModelIndex)"><tt>pressed</tt></a></dd> </dl> */"/> <signal name="protected final void pressed(com.trolltech.qt.core.QModelIndex index)" doc="/** <p>This signal is emitted when a mouse button is pressed. The item the mouse was pressed on is specified by <tt>index</tt>. The signal is only emitted when the index is valid.</p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(com.trolltech.qt.core.QModelIndex index)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QColumnView.html#activated(com.trolltech.qt.core.QModelIndex)"><tt>activated</tt></a>, <a href="QColumnView.html#clicked(com.trolltech.qt.core.QModelIndex)"><tt>clicked</tt></a>, <a href="QColumnView.html#doubleClicked(com.trolltech.qt.core.QModelIndex)"><tt>doubleClicked</tt></a>, <a href="QColumnView.html#entered(com.trolltech.qt.core.QModelIndex)"><tt>entered</tt></a></dd> </dl> */"/> <signal name="protected final void updatePreviewWidget(com.trolltech.qt.core.QModelIndex index)" doc="/** <p>This signal is emitted when the preview widget should be updated to provide rich information about <tt>index</tt></p> <dl> <dt><b>Compatible Slot Signatures:</b></dt> <dd><tt>void mySlot(com.trolltech.qt.core.QModelIndex index)</tt></dd> <dd><tt>void mySlot()</tt></dd> </dl> <dl> <dt><b>See Also:</b></dt> <dd><a href="QColumnView.html#previewWidget()"><tt>previewWidget</tt></a></dd> </dl> */"/> <signal name="protected final void viewportEntered()" doc="/** <p>This signal is emitted when the mouse cursor enters the viewport. Mouse tracking needs to be enabled for this feature to work.</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="QColumnView.html#entered(com.trolltech.qt.core.QModelIndex)"><tt>entered</tt></a></dd> </dl> */"/> <method name="public QColumnView(com.trolltech.qt.gui.QWidget parent)" doc="/** <p>Constructs a column view with a <tt>parent</tt> to represent a model's data. Use <a href="QColumnView.html#setModel(com.trolltech.qt.core.QAbstractItemModel)"><tt>setModel</tt></a> to set the model.</p> @see <a href="%2E%2E/core/QAbstractItemModel.html"><tt>QAbstractItemModel</tt></a> */"/> <method name="public QColumnView()" doc="/** <p>Equivalent to <a href="QColumnView.html#QColumnView(com.trolltech.qt.gui.QWidget)"><tt>QColumnView</tt></a>(0). */"/> <method name="public final java.util.List<java.lang.Integer> columnWidths()" doc="/** <p>Returns a list of the width of all the columns in this view.</p> @see <a href="QColumnView.html#setColumnWidths(java.util.List<java.lang.Integer>)"><tt>setColumnWidths</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QWidget previewWidget()" doc="/** <p>Returns the preview widget, or 0 if there is none.</p> @see <a href="QColumnView.html#setPreviewWidget(com.trolltech.qt.gui.QWidget)"><tt>setPreviewWidget</tt></a> @see <a href="QColumnView.html#updatePreviewWidget(com.trolltech.qt.core.QModelIndex)"><tt>updatePreviewWidget</tt></a> */"/> <method name="public final boolean resizeGripsVisible()" doc="/** <p>Returns the way to specify if the list views gets resize grips or not.</p> <p>By default, <tt>visible</tt> is set to true</p> @see <a href="QColumnView.html#setResizeGripsVisible(boolean)"><tt>setResizeGripsVisible</tt></a> @see <a href="QColumnView.html#setRootIndex(com.trolltech.qt.core.QModelIndex)"><tt>setRootIndex</tt></a> */"/> <method name="public final void setColumnWidths(java.util.List<java.lang.Integer> list)" doc="/** <p>Sets the column widths to the values given in the <tt>list</tt>. Extra values in the list are kept and used when the columns are created.</p> <p>If list contains too few values, only width of the rest of the columns will not be modified.</p> @see <a href="QColumnView.html#columnWidths()"><tt>columnWidths</tt></a> @see <a href="QColumnView.html#createColumn(com.trolltech.qt.core.QModelIndex)"><tt>createColumn</tt></a> */"/> <method name="public final void setPreviewWidget(com.trolltech.qt.gui.QWidget widget)" doc="/** <p>Sets the preview <tt>widget</tt>.</p> <p>The <tt>widget</tt> becomes a child of the column view, and will be destroyed when the column area is deleted or when a new widget is set.</p> @see <a href="QColumnView.html#previewWidget()"><tt>previewWidget</tt></a> @see <a href="QColumnView.html#updatePreviewWidget(com.trolltech.qt.core.QModelIndex)"><tt>updatePreviewWidget</tt></a> */"/> <method name="public final void setResizeGripsVisible(boolean visible)" doc="/** <p>Sets the way to specify if the list views gets resize grips or not to <tt>visible</tt>.</p> <p>By default, <tt>visible</tt> is set to true</p> @see <a href="QColumnView.html#resizeGripsVisible()"><tt>resizeGripsVisible</tt></a> @see <a href="QColumnView.html#setRootIndex(com.trolltech.qt.core.QModelIndex)"><tt>setRootIndex</tt></a> */"/> <method name="protected com.trolltech.qt.gui.QAbstractItemView createColumn(com.trolltech.qt.core.QModelIndex rootIndex)" doc="/** <p>To use a custom widget for the final column when you select an item overload this function and return a widget. <tt>rootIndex</tt> is the root index that will be assigned to the view.</p> <p>Return the new view. <a href="QColumnView.html#QColumnView(com.trolltech.qt.gui.QWidget)"><tt>QColumnView</tt></a> will automatically take ownership of the widget.</p> @see <a href="QColumnView.html#setPreviewWidget(com.trolltech.qt.gui.QWidget)"><tt>setPreviewWidget</tt></a> */"/> <method name="protected void currentChanged(com.trolltech.qt.core.QModelIndex current, com.trolltech.qt.core.QModelIndex previous)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="protected int horizontalOffset()" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="public com.trolltech.qt.core.QModelIndex indexAt(com.trolltech.qt.core.QPoint point)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="protected boolean isIndexHidden(com.trolltech.qt.core.QModelIndex index)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="protected com.trolltech.qt.core.QModelIndex moveCursor(com.trolltech.qt.gui.QAbstractItemView.CursorAction cursorAction, com.trolltech.qt.core.Qt.KeyboardModifiers modifiers)" doc="/** <p>Moves the cursor in the view according to the given <tt>cursorAction</tt> and keyboard modifiers specified by <tt>modifiers</tt>.</p> <p>In the base class this is a pure virtual function.</p> */"/> <method name="protected void resizeEvent(com.trolltech.qt.gui.QResizeEvent event)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="protected void scrollContentsBy(int dx, int dy)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="public void scrollTo(com.trolltech.qt.core.QModelIndex index, com.trolltech.qt.gui.QAbstractItemView.ScrollHint hint)" doc="/** <p>Scrolls the view if necessary to ensure that the item at <tt>index</tt> is visible. The view will try to position the item according to the given <tt>hint</tt>.</p> <p>In the base class this is a pure virtual function.</p> */"/> <method name="public final void scrollTo(com.trolltech.qt.core.QModelIndex index)" doc="/** <p>Equivalent to <a href="QColumnView.html#scrollTo(com.trolltech.qt.core.QModelIndex, com.trolltech.qt.gui.QAbstractItemView.ScrollHint)"><tt>scrollTo</tt></a>(<tt>index</tt>, EnsureVisible). */"/> <method name="public void selectAll()" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="public void setModel(com.trolltech.qt.core.QAbstractItemModel model)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="public void setRootIndex(com.trolltech.qt.core.QModelIndex index)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="protected void setSelection(com.trolltech.qt.core.QRect rect, com.trolltech.qt.gui.QItemSelectionModel.SelectionFlags command)" doc="/** <p>Applies the selection <tt>command</tt> to the items in or touched by the rectangle, <tt>rect</tt>.</p> <p>When implementing your own itemview <a href="QColumnView.html#setSelection(com.trolltech.qt.core.QRect, com.trolltech.qt.gui.QItemSelectionModel.SelectionFlags)"><tt>setSelection</tt></a> should call <a href="QAbstractItemView.html#selectionModel()"><tt>selectionModel</tt></a>-&gt;select(selection, flags) where selection is either an empty QModelIndex or a <a href="QItemSelection.html"><tt>QItemSelection</tt></a> that contains all items that are contained in <tt>rect</tt>.</p> @see <a href="QAbstractItemView.html#selectionCommand(com.trolltech.qt.core.QModelIndex, com.trolltech.qt.core.QEvent)"><tt>selectionCommand</tt></a> @see <a href="QAbstractItemView.html#selectedIndexes()"><tt>selectedIndexes</tt></a> */"/> <method name="public void setSelectionModel(com.trolltech.qt.gui.QItemSelectionModel selectionModel)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="public com.trolltech.qt.core.QSize sizeHint()" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="protected int verticalOffset()" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="public com.trolltech.qt.core.QRect visualRect(com.trolltech.qt.core.QModelIndex index)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> <method name="protected com.trolltech.qt.gui.QRegion visualRegionForSelection(com.trolltech.qt.gui.QItemSelection selection)" doc="/** <p>This function is reimplemented for internal reasons.</p> */"/> </class>