<class name="QStyleOptionToolBoxV2" doc="/**
&lt;p&gt;The &lt;a href=&quot;QStyleOptionToolBoxV2.html#QStyleOptionToolBoxV2()&quot;&gt;&lt;tt&gt;QStyleOptionToolBoxV2&lt;/tt&gt;&lt;/a&gt; class is used to describe the parameters necessary for drawing a frame in Qt 4.3 or above.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QStyleOptionToolBoxV2.html#QStyleOptionToolBoxV2()&quot;&gt;&lt;tt&gt;QStyleOptionToolBoxV2&lt;/tt&gt;&lt;/a&gt; inherits &lt;a href=&quot;QStyleOptionToolBox.html#QStyleOptionToolBox(int)&quot;&gt;&lt;tt&gt;QStyleOptionToolBox&lt;/tt&gt;&lt;/a&gt; which is used for drawing the tabs in a &lt;a href=&quot;QToolBox.html&quot;&gt;&lt;tt&gt;QToolBox&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;An instance of the &lt;a href=&quot;QStyleOptionToolBoxV2.html#QStyleOptionToolBoxV2()&quot;&gt;&lt;tt&gt;QStyleOptionToolBoxV2&lt;/tt&gt;&lt;/a&gt; class has &lt;a href=&quot;QStyleOption.html#type()&quot;&gt;type&lt;/tt&gt;&lt;/a&gt; &lt;a href=&quot;QStyleOption.html#OptionType-enum&quot;&gt;&lt;tt&gt;SO_ToolBox&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QStyleOption.html#version()&quot;&gt;version&lt;/tt&gt;&lt;/a&gt; 2. The type is used internally by &lt;a href=&quot;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt;, 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 &lt;a href=&quot;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt; subclass and your own styles. The version is used by &lt;a href=&quot;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt; subclasses to implement extensions without breaking compatibility. If you use qstyleoption_cast(), you normally don't need to check it.&lt;/p&gt;
&lt;p&gt;If you create your own &lt;a href=&quot;QStyle.html&quot;&gt;&lt;tt&gt;QStyle&lt;/tt&gt;&lt;/a&gt; subclass, you should handle both &lt;a href=&quot;QStyleOptionToolBox.html#QStyleOptionToolBox(int)&quot;&gt;&lt;tt&gt;QStyleOptionToolBox&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QStyleOptionToolBoxV2.html#QStyleOptionToolBoxV2()&quot;&gt;&lt;tt&gt;QStyleOptionToolBoxV2&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionToolBox.html#QStyleOptionToolBox(int)&quot;&gt;&lt;tt&gt;QStyleOptionToolBox&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QStyleOptionToolBoxV2(com.trolltech.qt.gui.QStyleOptionToolBox other)" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QStyleOptionToolBoxV2.html#QStyleOptionToolBoxV2()&quot;&gt;&lt;tt&gt;QStyleOptionToolBoxV2&lt;/tt&gt;&lt;/a&gt; copy of the &lt;tt&gt;other&lt;/tt&gt; style option which can be either of the &lt;a href=&quot;QStyleOptionToolBoxV2.html#QStyleOptionToolBoxV2()&quot;&gt;&lt;tt&gt;QStyleOptionToolBoxV2&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QStyleOptionToolBox.html#QStyleOptionToolBox(int)&quot;&gt;&lt;tt&gt;QStyleOptionToolBox&lt;/tt&gt;&lt;/a&gt; types.&lt;/p&gt;
&lt;p&gt;If the &lt;tt&gt;other&lt;/tt&gt; style option's version is 1, the new style option's &lt;a href=&quot;QStyleOptionToolBoxV2.html#position()&quot;&gt;position&lt;/tt&gt;&lt;/a&gt; value is set to &lt;tt&gt;QStyleOptionToolBoxV2::Beginning&lt;/tt&gt; and &lt;a href=&quot;QStyleOptionToolBoxV2.html#selectedPosition()&quot;&gt;&lt;tt&gt;selectedPosition&lt;/tt&gt;&lt;/a&gt; is set to &lt;tt&gt;QStyleOptionToolBoxV2::NotAdjacent&lt;/tt&gt;. If its version is 2, the &lt;a href=&quot;QStyleOptionToolBoxV2.html#position()&quot;&gt;position&lt;/tt&gt;&lt;/a&gt; &lt;a href=&quot;QStyleOptionToolBoxV2.html#selectedPosition()&quot;&gt;&lt;tt&gt;selectedPosition&lt;/tt&gt;&lt;/a&gt; values are simply copied to the new style option.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOption.html#version()&quot;&gt;version&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QStyleOptionToolBoxV2(com.trolltech.qt.gui.QStyleOptionToolBoxV2 other)" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QStyleOptionToolBoxV2.html#QStyleOptionToolBoxV2()&quot;&gt;&lt;tt&gt;QStyleOptionToolBoxV2&lt;/tt&gt;&lt;/a&gt; copy of the &lt;tt&gt;other&lt;/tt&gt; style option.&lt;/p&gt;
 */"/>
    <method name="protected QStyleOptionToolBoxV2(int version)" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
    <method name="public QStyleOptionToolBoxV2()" doc="/**
&lt;p&gt;Contsructs a &lt;a href=&quot;QStyleOptionToolBoxV2.html#QStyleOptionToolBoxV2()&quot;&gt;&lt;tt&gt;QStyleOptionToolBoxV2&lt;/tt&gt;&lt;/a&gt; object.&lt;/p&gt;
 */"/>
    <enum name="StyleOptionVersion" doc="/**
&lt;p&gt;This enum holds the version of this style option&lt;/p&gt;
 */">
        <enum-value name="Version" doc="/**
&lt;p&gt;2&lt;/p&gt;
 */"/>
</enum>
    <enum name="TabPosition" doc="/**
&lt;p&gt;This enum describes tab positions relative to other tabs.&lt;/p&gt;
 */">
        <enum-value name="Beginning" doc="/**
&lt;p&gt;The tab is the first (i.e&amp;#x2e;, top-most) tab in the toolbox.&lt;/p&gt;
 */"/>
        <enum-value name="Middle" doc="/**
&lt;p&gt;The tab is placed in the middle of the toolbox.&lt;/p&gt;
 */"/>
        <enum-value name="End" doc="/**
&lt;p&gt;The tab is placed at the bottom of the toolbox.&lt;/p&gt;
 */"/>
        <enum-value name="OnlyOneTab" doc="/**
&lt;p&gt;There is only one tab in the toolbox.&lt;/p&gt;
 */"/>
</enum>
    <enum name="SelectedPosition" doc="/**
&lt;p&gt;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.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionToolBoxV2.html#selectedPosition()&quot;&gt;&lt;tt&gt;selectedPosition&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="NotAdjacent" doc="/**
&lt;p&gt;The tab is not adjacent to a selected tab (or is the selected tab).&lt;/p&gt;
 */"/>
        <enum-value name="NextIsSelected" doc="/**
&lt;p&gt;The next tab (typically the tab on the right) is selected.&lt;/p&gt;
 */"/>
        <enum-value name="PreviousIsSelected" doc="/**
&lt;p&gt;The previous tab (typically the tab on the left) is selected.&lt;/p&gt;
 */"/>
</enum>
    <method name="public final com.trolltech.qt.gui.QStyleOptionToolBoxV2.TabPosition position()"/>
    <method name="public final void setPosition(com.trolltech.qt.gui.QStyleOptionToolBoxV2.TabPosition position)"/>
    <method name="public final com.trolltech.qt.gui.QStyleOptionToolBoxV2.SelectedPosition selectedPosition()" doc="/**
&lt;p&gt;Returns the position of the selected tab in relation to this tab.&lt;/p&gt;
&lt;p&gt;The default value is &lt;a href=&quot;QStyleOptionToolBoxV2.html#SelectedPosition-enum&quot;&gt;&lt;tt&gt;NotAdjacent&lt;/tt&gt;&lt;/a&gt;, i.e&amp;#x2e; the tab is not adjacent to a selected tab nor is it the selected tab.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionToolBoxV2.html#setSelectedPosition(com.trolltech.qt.gui.QStyleOptionToolBoxV2.SelectedPosition)&quot;&gt;&lt;tt&gt;setSelectedPosition&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setSelectedPosition(com.trolltech.qt.gui.QStyleOptionToolBoxV2.SelectedPosition selectedPosition)" doc="/**
&lt;p&gt;Sets the position of the selected tab in relation to this tab to &lt;tt&gt;selectedPosition&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value is &lt;a href=&quot;QStyleOptionToolBoxV2.html#SelectedPosition-enum&quot;&gt;&lt;tt&gt;NotAdjacent&lt;/tt&gt;&lt;/a&gt;, i.e&amp;#x2e; the tab is not adjacent to a selected tab nor is it the selected tab.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionToolBoxV2.html#selectedPosition()&quot;&gt;&lt;tt&gt;selectedPosition&lt;/tt&gt;&lt;/a&gt; */"/>
</class>
