<class name="QStyleOptionTabV2" doc="/**
&lt;p&gt;The &lt;a href=&quot;QStyleOptionTabV2.html#QStyleOptionTabV2()&quot;&gt;&lt;tt&gt;QStyleOptionTabV2&lt;/tt&gt;&lt;/a&gt; class is used to describe the parameters necessary for drawing a tabs in Qt 4.1 or above.&lt;/p&gt;
&lt;p&gt;An instance of the &lt;a href=&quot;QStyleOptionTabV2.html#QStyleOptionTabV2()&quot;&gt;&lt;tt&gt;QStyleOptionTabV2&lt;/tt&gt;&lt;/a&gt; class has type &lt;a href=&quot;QStyleOption.html#OptionType-enum&quot;&gt;&lt;tt&gt;SO_Tab&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;QStyleOptionTab.html#QStyleOptionTab(int)&quot;&gt;&lt;tt&gt;QStyleOptionTab&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QStyleOptionTabV2.html#QStyleOptionTabV2()&quot;&gt;&lt;tt&gt;QStyleOptionTabV2&lt;/tt&gt;&lt;/a&gt;. One way to achieve this is to use the &lt;a href=&quot;QStyleOptionTabV2.html#QStyleOptionTabV2()&quot;&gt;&lt;tt&gt;QStyleOptionTabV2&lt;/tt&gt;&lt;/a&gt; copy constructor. For example:&lt;/p&gt;
&lt;pre&gt;        if (const QStyleOptionTab *tabOption =
               qstyleoption_cast&amp;lt;const QStyleOptionTab *&amp;gt;(option)) {
            QStyleOptionTabV2 tabV2(*tabOption);

            &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; draw the tab using tabV2
       }&lt;/pre&gt;
&lt;p&gt;In the example above: If &lt;tt&gt;tabOption&lt;/tt&gt;'s version is 1, the extra member (&lt;a href=&quot;QStyleOptionTabV2.html#iconSize()&quot;&gt;&lt;tt&gt;iconSize&lt;/tt&gt;&lt;/a&gt;) will be set to an invalid size for &lt;tt&gt;tabV2&lt;/tt&gt;. If &lt;tt&gt;tabOption&lt;/tt&gt;'s version is 2, the constructor will simply copy the &lt;tt&gt;tab&lt;/tt&gt;'s &lt;a href=&quot;QStyleOptionTabV2.html#iconSize()&quot;&gt;&lt;tt&gt;iconSize&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For an example demonstrating how style options can be used, see the Styles&lt;/tt&gt; example.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionTab.html#QStyleOptionTab(int)&quot;&gt;&lt;tt&gt;QStyleOptionTab&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 QStyleOptionTabV2(com.trolltech.qt.gui.QStyleOptionTab other)" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QStyleOptionTabV2.html#QStyleOptionTabV2()&quot;&gt;&lt;tt&gt;QStyleOptionTabV2&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;QStyleOptionTabV2.html#QStyleOptionTabV2()&quot;&gt;&lt;tt&gt;QStyleOptionTabV2&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QStyleOptionTab.html#QStyleOptionTab(int)&quot;&gt;&lt;tt&gt;QStyleOptionTab&lt;/tt&gt;&lt;/a&gt; types.&lt;/p&gt;
&lt;p&gt;If the other style option's version is 1, the new style option's &lt;tt&gt;iconSize&lt;/tt&gt; is set to an invalid value. If its version is 2, its &lt;tt&gt;iconSize&lt;/tt&gt; value is simply copied to the new style option.&lt;/p&gt;
 */"/>
    <method name="public QStyleOptionTabV2(com.trolltech.qt.gui.QStyleOptionTabV2 other)" doc="/**
&lt;p&gt;Constructs a copy of the &lt;tt&gt;other&lt;/tt&gt; style option.&lt;/p&gt;
 */"/>
    <method name="protected QStyleOptionTabV2(int version)" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
    <method name="public QStyleOptionTabV2()" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QStyleOptionTabV2.html#QStyleOptionTabV2()&quot;&gt;&lt;tt&gt;QStyleOptionTabV2&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
    <enum name="StyleOptionVersion" doc="/**
&lt;p&gt;This enum is used to hold information about the version of the style option, and is defined for each &lt;a href=&quot;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt; subclass.&lt;/p&gt;
&lt;p&gt;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;

@see &lt;a href=&quot;QStyleOptionTab.html#StyleOptionType-enum&quot;&gt;&lt;tt&gt;StyleOptionType&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="Version" doc="/**
&lt;p&gt;2&lt;/p&gt;
 */"/>
</enum>
    <method name="public final com.trolltech.qt.core.QSize iconSize()" doc="/**
&lt;p&gt;Returns the size for the icons.&lt;/p&gt;
&lt;p&gt;The default value is &lt;a href=&quot;%2E%2E/core/QSize.html&quot;&gt;&lt;tt&gt;QSize&lt;/tt&gt;&lt;/a&gt;(-1, -1), i.e&amp;#x2e; an invalid size; use QStyle::pixelMetric() to find the default icon size for tab bars.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionTabV2.html#setIconSize(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;setIconSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QTabBar::iconSize&lt;/tt&gt; */"/>
    <method name="public final void setIconSize(com.trolltech.qt.core.QSize iconSize)" doc="/**
&lt;p&gt;Sets the size for the icons to &lt;tt&gt;iconSize&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value is &lt;a href=&quot;%2E%2E/core/QSize.html&quot;&gt;&lt;tt&gt;QSize&lt;/tt&gt;&lt;/a&gt;(-1, -1), i.e&amp;#x2e; an invalid size; use QStyle::pixelMetric() to find the default icon size for tab bars.&lt;/p&gt;

@see &lt;tt&gt;QTabBar::iconSize&lt;/tt&gt; */"/>
</class>
