<class name="QStyleOptionHeader" doc="/** <p>The <a href="QStyleOptionHeader.html#QStyleOptionHeader(int)"><tt>QStyleOptionHeader</tt></a> class is used to describe the parameters for drawing a header.</p> <p><a href="QStyleOptionHeader.html#QStyleOptionHeader(int)"><tt>QStyleOptionHeader</tt></a> contains all the information that <a href="QStyle.html"><tt>QStyle</tt></a> functions need to draw the item views' header pane, header sort arrow, and header label.</p> <p>For performance reasons, the access to the member variables is direct (i.e&#x2e;, using the <tt>.</tt> or <tt>-&gt;</tt> operator). This low-level feel makes the structures straightforward to use and emphasizes that these are simply parameters used by the style functions.</p> <p>For an example demonstrating how style options can be used, see the Styles</tt> example.</p> @see <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a> */"> <method name="public QStyleOptionHeader(com.trolltech.qt.gui.QStyleOptionHeader other)" doc="/** <p>Constructs a copy of the <tt>other</tt> style option.</p> */"/> <method name="public QStyleOptionHeader()" doc="/** <p>Constructs a <a href="QStyleOptionHeader.html#QStyleOptionHeader(int)"><tt>QStyleOptionHeader</tt></a>, initializing the members variables to their default values.</p> */"/> <method name="protected QStyleOptionHeader(int version)" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> */"/> <enum name="StyleOptionVersion" doc="/** <p>This enum is used to hold information about the version of the style option, and is defined for each <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a> subclass.</p> <p>The version is used by <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a> subclasses to implement extensions without breaking compatibility. If you use qstyleoption_cast(), you normally don't need to check it.</p> @see <a href="QStyleOptionHeader.html#StyleOptionType-enum"><tt>StyleOptionType</tt></a> */"> <enum-value name="Version" doc="/** <p>1</p> */"/> </enum> <enum name="SectionPosition" doc="/** <p>This enum lets you know where the section's position is in relation to the other sections.</p> @see <a href="QStyleOptionHeader.html#position()">position</tt></a> */"> <enum-value name="Beginning" doc="/** <p>At the beginining of the header</p> */"/> <enum-value name="Middle" doc="/** <p>In the middle of the header</p> */"/> <enum-value name="End" doc="/** <p>At the end of the header</p> */"/> <enum-value name="OnlyOneSection" doc="/** <p>Only one header section</p> */"/> </enum> <enum name="SelectedPosition" doc="/** <p>This enum lets you know where the section's position is in relation to the selected section.</p> @see <a href="QStyleOptionHeader.html#selectedPosition()"><tt>selectedPosition</tt></a> */"> <enum-value name="NotAdjacent" doc="/** <p>Not adjacent to the selected section</p> */"/> <enum-value name="NextIsSelected" doc="/** <p>The next section is selected</p> */"/> <enum-value name="PreviousIsSelected" doc="/** <p>The previous section is selected</p> */"/> <enum-value name="NextAndPreviousAreSelected" doc="/** <p>Both the next and previous section are selected</p> */"/> </enum> <enum name="StyleOptionType" doc="/** <p>This enum is used to hold information about the type of the style option, and is defined for each <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a> subclass.</p> <p>The type is used internally by <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a>, its subclasses, and qstyleoption_cast() to determine the type of style option. In general you do not need to worry about this unless you want to create your own <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a> subclass and your own styles.</p> @see <a href="QStyleOptionHeader.html#StyleOptionVersion-enum"><tt>StyleOptionVersion</tt></a> */"> <enum-value name="Type" doc="/** <p>The type of style option provided (<a href="QStyleOption.html#OptionType-enum"><tt>SO_Header</tt></a> for this class).</p> */"/> </enum> <enum name="SortIndicator" doc="/** <p>Indicates which direction the sort indicator should be drawn</p> @see <a href="QStyleOptionHeader.html#sortIndicator()"><tt>sortIndicator</tt></a> */"> <enum-value name="None" doc="/** <p>No sort indicator is needed</p> */"/> <enum-value name="SortUp" doc="/** <p>Draw an up indicator</p> */"/> <enum-value name="SortDown" doc="/** <p>Draw a down indicator</p> */"/> </enum> <method name="public final int section()" doc="/** <p>Returns which section of the header is being painted.</p> <p>The default value is 0.</p> @see <a href="QStyleOptionHeader.html#setSection(int)"><tt>setSection</tt></a> */"/> <method name="public final void setSection(int section)" doc="/** <p>Sets which section of the header is being painted to <tt>section</tt>.</p> <p>The default value is 0.</p> @see <a href="QStyleOptionHeader.html#section()"><tt>section</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QStyleOptionHeader.SortIndicator sortIndicator()" doc="/** <p>Returns the direction the sort indicator should be drawn.</p> <p>The default value is QStyleOptionHeader::None.</p> @see <a href="QStyleOptionHeader.html#setSortIndicator(com.trolltech.qt.gui.QStyleOptionHeader.SortIndicator)"><tt>setSortIndicator</tt></a> */"/> <method name="public final void setSortIndicator(com.trolltech.qt.gui.QStyleOptionHeader.SortIndicator sortIndicator)" doc="/** <p>Sets the direction the sort indicator should be drawn to <tt>sortIndicator</tt>.</p> <p>The default value is QStyleOptionHeader::None.</p> @see <a href="QStyleOptionHeader.html#sortIndicator()"><tt>sortIndicator</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QStyleOptionHeader.SectionPosition position()" doc="/** <p>Returns the section's position in relation to the other sections.</p> <p>The default value is QStyleOptionHeader::Beginning.</p> @see <a href="QStyleOptionHeader.html#setPosition(com.trolltech.qt.gui.QStyleOptionHeader.SectionPosition)"><tt>setPosition</tt></a> */"/> <method name="public final void setPosition(com.trolltech.qt.gui.QStyleOptionHeader.SectionPosition position)" doc="/** <p>Sets the section's position in relation to the other sections to <tt>position</tt>.</p> <p>The default value is QStyleOptionHeader::Beginning.</p> @see <a href="QStyleOptionHeader.html#position()"><tt>position</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QIcon icon()" doc="/** <p>Returns the icon of the header.</p> <p>The default value is an empty icon, i.e&#x2e; an icon with neither a pixmap nor a filename.</p> @see <a href="QStyleOptionHeader.html#setIcon(com.trolltech.qt.gui.QIcon)"><tt>setIcon</tt></a> */"/> <method name="public final void setIcon(com.trolltech.qt.gui.QIcon icon)" doc="/** <p>Sets the icon of the header to <tt>icon</tt>.</p> <p>The default value is an empty icon, i.e&#x2e; an icon with neither a pixmap nor a filename.</p> @see <a href="QStyleOptionHeader.html#icon()"><tt>icon</tt></a> */"/> <method name="public final com.trolltech.qt.core.Qt.Alignment textAlignment()" doc="/** <p>Returns the alignment flags for the text of the header.</p> <p>The default value is Qt::AlignLeft.</p> @see <a href="QStyleOptionHeader.html#setTextAlignment(com.trolltech.qt.core.Qt.Alignment)"><tt>setTextAlignment</tt></a> */"/> <method name="public final void setTextAlignment(com.trolltech.qt.core.Qt.Alignment textAlignment)" doc="/** <p>Sets the alignment flags for the text of the header to <tt>textAlignment</tt>.</p> <p>The default value is Qt::AlignLeft.</p> @see <a href="QStyleOptionHeader.html#textAlignment()"><tt>textAlignment</tt></a> */"/> <method name="public final java.lang.String text()" doc="/** <p>Returns the text of the header.</p> <p>The default value is an empty string.</p> @see <a href="QStyleOptionHeader.html#setText(java.lang.String)"><tt>setText</tt></a> */"/> <method name="public final void setText(java.lang.String text)" doc="/** <p>Sets the text of the header to <tt>text</tt>.</p> <p>The default value is an empty string.</p> @see <a href="QStyleOptionHeader.html#text()"><tt>text</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QStyleOptionHeader.SelectedPosition selectedPosition()" doc="/** <p>Returns the section's position in relation to the selected section.</p> <p>The default value is QStyleOptionHeader::NotAdjacent</p> @see <a href="QStyleOptionHeader.html#setSelectedPosition(com.trolltech.qt.gui.QStyleOptionHeader.SelectedPosition)"><tt>setSelectedPosition</tt></a> */"/> <method name="public final void setSelectedPosition(com.trolltech.qt.gui.QStyleOptionHeader.SelectedPosition selectedPosition)" doc="/** <p>Sets the section's position in relation to the selected section to <tt>selectedPosition</tt>.</p> <p>The default value is QStyleOptionHeader::NotAdjacent</p> @see <a href="QStyleOptionHeader.html#selectedPosition()"><tt>selectedPosition</tt></a> */"/> <method name="public final com.trolltech.qt.core.Qt.Alignment iconAlignment()" doc="/** <p>Returns the alignment flags for the icon of the header.</p> <p>The default value is Qt::AlignLeft.</p> @see <a href="QStyleOptionHeader.html#setIconAlignment(com.trolltech.qt.core.Qt.Alignment)"><tt>setIconAlignment</tt></a> */"/> <method name="public final void setIconAlignment(com.trolltech.qt.core.Qt.Alignment iconAlignment)" doc="/** <p>Sets the alignment flags for the icon of the header to <tt>iconAlignment</tt>.</p> <p>The default value is Qt::AlignLeft.</p> @see <a href="QStyleOptionHeader.html#iconAlignment()"><tt>iconAlignment</tt></a> */"/> <method name="public final com.trolltech.qt.core.Qt.Orientation orientation()" doc="/** <p>Returns the header's orientation (horizontal or vertical).</p> <p>The default orientation is Qt::Horizontal</p> @see <a href="QStyleOptionHeader.html#setOrientation(com.trolltech.qt.core.Qt.Orientation)"><tt>setOrientation</tt></a> */"/> <method name="public final void setOrientation(com.trolltech.qt.core.Qt.Orientation orientation)" doc="/** <p>Sets the header's orientation (horizontal or vertical) to <tt>orientation</tt>.</p> <p>The default orientation is Qt::Horizontal</p> @see <a href="QStyleOptionHeader.html#orientation()"><tt>orientation</tt></a> */"/> </class>