<class name="QStyleOptionTab" doc="/** <p>The <a href="QStyleOptionTab.html#QStyleOptionTab(int)"><tt>QStyleOptionTab</tt></a> class is used to describe the parameters for drawing a tab bar.</p> <p>The <a href="QStyleOptionTab.html#QStyleOptionTab(int)"><tt>QStyleOptionTab</tt></a> class is used for drawing several built-in Qt widgets including <a href="QTabBar.html"><tt>QTabBar</tt></a> and the panel for <a href="QTabWidget.html"><tt>QTabWidget</tt></a>. Note that to describe the parameters necessary for drawing a frame in Qt 4.1 or above, you must use the <a href="QStyleOptionFrameV2.html"><tt>QStyleOptionFrameV2</tt></a> subclass.</p> <p>An instance of the QStyleOptiontabV2 class has type <a href="QStyleOption.html#OptionType-enum"><tt>SO_Tab</tt></a> and <a href="QStyleOption.html#version()">version</tt></a> 1. 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. 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> <p>If you create your own <a href="QStyle.html"><tt>QStyle</tt></a> subclass, you should handle both <a href="QStyleOptionTab.html#QStyleOptionTab(int)"><tt>QStyleOptionTab</tt></a> and <a href="QStyleOptionTabV2.html"><tt>QStyleOptionTabV2</tt></a>.</p> <p>For an example demonstrating how style options can be used, see the Styles</tt> example.</p> @see <a href="QStyleOptionTabV2.html"><tt>QStyleOptionTabV2</tt></a> @see <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a> */"> <method name="public QStyleOptionTab(com.trolltech.qt.gui.QStyleOptionTab other)" doc="/** <p>Constructs a copy of the <tt>other</tt> style option.</p> */"/> <method name="public QStyleOptionTab()" doc="/** <p>Constructs a <a href="QStyleOptionTab.html#QStyleOptionTab(int)"><tt>QStyleOptionTab</tt></a> object, initializing the members variables to their default values.</p> */"/> <method name="protected QStyleOptionTab(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="QStyleOptionTab.html#StyleOptionType-enum"><tt>StyleOptionType</tt></a> */"> <enum-value name="Version" doc="/** <p>1</p> */"/> </enum> <enum name="CornerWidget" doc="/** <p>These flags indicate the corner widgets in a tab.</p> @see <a href="QStyleOptionTab.html#cornerWidgets()"><tt>cornerWidgets</tt></a> */"> <enum-value name="NoCornerWidgets" doc="/** <p>There are no corner widgets</p> */"/> <enum-value name="LeftCornerWidget" doc="/** <p>Left corner widget</p> */"/> <enum-value name="RightCornerWidget" doc="/** <p>Right corner widget</p> */"/> </enum> <enum name="TabPosition" doc="/** <p>This enum describes the position of the tab.</p> @see <a href="QStyleOptionTab.html#position()">position</tt></a> */"> <enum-value name="Beginning" doc="/** <p>The tab is the first tab in the tab bar.</p> */"/> <enum-value name="Middle" doc="/** <p>The tab is neither the first nor the last tab in the tab bar.</p> */"/> <enum-value name="End" doc="/** <p>The tab is the last tab in the tab bar.</p> */"/> <enum-value name="OnlyOneTab" doc="/** <p>The tab is both the first and the last tab in the tab bar.</p> */"/> </enum> <enum name="SelectedPosition" doc="/** <p>This enum describes the position of the selected tab. Some styles need to draw a tab differently depending on whether or not it is adjacent to the selected tab.</p> @see <a href="QStyleOptionTab.html#selectedPosition()"><tt>selectedPosition</tt></a> */"> <enum-value name="NotAdjacent" doc="/** <p>The tab is not adjacent to a selected tab (or is the selected tab).</p> */"/> <enum-value name="NextIsSelected" doc="/** <p>The next tab (typically the tab on the right) is selected.</p> */"/> <enum-value name="PreviousIsSelected" doc="/** <p>The previous tab (typically the tab on the left) is 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="QStyleOptionTab.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_Tab</tt></a> for this class).</p> */"/> </enum> <method name="public final int row()" doc="/** <p>Returns which row the tab is currently in.</p> <p>The default value is 0, indicating the front row. Currently this property can only be 0.</p> @see <a href="QStyleOptionTab.html#setRow(int)"><tt>setRow</tt></a> */"/> <method name="public final void setRow(int row)" doc="/** <p>Sets which row the tab is currently in to <tt>row</tt>.</p> <p>The default value is 0, indicating the front row. Currently this property can only be 0.</p> @see <a href="QStyleOptionTab.html#row()"><tt>row</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QStyleOptionTab.CornerWidgets cornerWidgets()" doc="/** <p>Returns an OR combination of <a href="QStyleOptionTab.html#CornerWidget-enum"><tt>CornerWidget</tt></a> values indicating the corner widgets of the tab bar.</p> <p>The default value is <a href="QStyleOptionTab.html#CornerWidget-enum"><tt>NoCornerWidgets</tt></a>.</p> @see <a href="QStyleOptionTab.html#setCornerWidgets(com.trolltech.qt.gui.QStyleOptionTab.CornerWidgets)"><tt>setCornerWidgets</tt></a> @see <a href="QStyleOptionTab.html#CornerWidget-enum"><tt>CornerWidget</tt></a> */"/> <method name="public final void setCornerWidgets(com.trolltech.qt.gui.QStyleOptionTab.CornerWidgets cornerWidgets)" doc="/** <p>Sets an OR combination of <a href="QStyleOptionTab.html#CornerWidget-enum"><tt>CornerWidget</tt></a> values indicating the corner widgets of the tab bar to <tt>cornerWidgets</tt>.</p> <p>The default value is <a href="QStyleOptionTab.html#CornerWidget-enum"><tt>NoCornerWidgets</tt></a>.</p> @see <a href="QStyleOptionTab.html#cornerWidgets()"><tt>cornerWidgets</tt></a> @see <a href="QStyleOptionTab.html#CornerWidget-enum"><tt>CornerWidget</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QStyleOptionTab.TabPosition position()" doc="/** <p>Returns the position of the tab in the tab bar.</p> <p>The default value is <a href="QStyleOptionTab.html#TabPosition-enum">Beginning</tt></a>, i.e&#x2e; the tab is the first tab in the tab bar.</p> @see <a href="QStyleOptionTab.html#setPosition(com.trolltech.qt.gui.QStyleOptionTab.TabPosition)"><tt>setPosition</tt></a> */"/> <method name="public final void setPosition(com.trolltech.qt.gui.QStyleOptionTab.TabPosition position)" doc="/** <p>Sets the position of the tab in the tab bar to <tt>position</tt>.</p> <p>The default value is <a href="QStyleOptionTab.html#TabPosition-enum">Beginning</tt></a>, i.e&#x2e; the tab is the first tab in the tab bar.</p> @see <a href="QStyleOptionTab.html#position()"><tt>position</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QIcon icon()" doc="/** <p>Returns the icon for the tab.</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="QStyleOptionTab.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 for the tab 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="QStyleOptionTab.html#icon()"><tt>icon</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QTabBar.Shape shape()" doc="/** <p>Returns the tab shape used to draw the tab; by default QTabBar::RoundedNorth.</p> @see <a href="QStyleOptionTab.html#setShape(com.trolltech.qt.gui.QTabBar.Shape)"><tt>setShape</tt></a> @see <tt>QTabBar::Shape</tt> */"/> <method name="public final void setShape(com.trolltech.qt.gui.QTabBar.Shape shape)" doc="/** <p>Sets the tab shape used to draw the tab; by default QTabBar::RoundedNorth to <tt>shape</tt>.</p> @see <a href="QStyleOptionTab.html#shape()"><tt>shape</tt></a> @see <tt>QTabBar::Shape</tt> */"/> <method name="public final java.lang.String text()" doc="/** <p>Returns the text of the tab.</p> <p>The default value is an empty string.</p> @see <a href="QStyleOptionTab.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 tab to <tt>text</tt>.</p> <p>The default value is an empty string.</p> @see <a href="QStyleOptionTab.html#text()"><tt>text</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QStyleOptionTab.SelectedPosition selectedPosition()" doc="/** <p>Returns the position of the selected tab in relation to this tab.</p> <p>The default value is <a href="QStyleOptionTab.html#SelectedPosition-enum"><tt>NotAdjacent</tt></a>, i.e&#x2e; the tab is not adjacent to a selected tab nor is it the selected tab.</p> @see <a href="QStyleOptionTab.html#setSelectedPosition(com.trolltech.qt.gui.QStyleOptionTab.SelectedPosition)"><tt>setSelectedPosition</tt></a> */"/> <method name="public final void setSelectedPosition(com.trolltech.qt.gui.QStyleOptionTab.SelectedPosition selectedPosition)" doc="/** <p>Sets the position of the selected tab in relation to this tab to <tt>selectedPosition</tt>.</p> <p>The default value is <a href="QStyleOptionTab.html#SelectedPosition-enum"><tt>NotAdjacent</tt></a>, i.e&#x2e; the tab is not adjacent to a selected tab nor is it the selected tab.</p> @see <a href="QStyleOptionTab.html#selectedPosition()"><tt>selectedPosition</tt></a> */"/> </class>