<class name="QStyleOptionFrameV2" doc="/**
&lt;p&gt;The &lt;a href=&quot;QStyleOptionFrameV2.html#QStyleOptionFrameV2(com.trolltech.qt.gui.QStyleOptionFrame)&quot;&gt;&lt;tt&gt;QStyleOptionFrameV2&lt;/tt&gt;&lt;/a&gt; class is used to describe the parameters necessary for drawing a frame in Qt 4.1 or above.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QStyleOptionFrameV2.html#QStyleOptionFrameV2(com.trolltech.qt.gui.QStyleOptionFrame)&quot;&gt;&lt;tt&gt;QStyleOptionFrameV2&lt;/tt&gt;&lt;/a&gt; inherits &lt;a href=&quot;QStyleOptionFrame.html#QStyleOptionFrame(int)&quot;&gt;&lt;tt&gt;QStyleOptionFrame&lt;/tt&gt;&lt;/a&gt; which is used for drawing several built-in Qt widgets, including &lt;a href=&quot;QFrame.html&quot;&gt;&lt;tt&gt;QFrame&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QGroupBox.html&quot;&gt;&lt;tt&gt;QGroupBox&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QLineEdit.html&quot;&gt;&lt;tt&gt;QLineEdit&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QMenu.html&quot;&gt;&lt;tt&gt;QMenu&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;An instance of the &lt;a href=&quot;QStyleOptionFrameV2.html#QStyleOptionFrameV2(com.trolltech.qt.gui.QStyleOptionFrame)&quot;&gt;&lt;tt&gt;QStyleOptionFrameV2&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_Frame&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;QStyleOptionFrame.html#QStyleOptionFrame(int)&quot;&gt;&lt;tt&gt;QStyleOptionFrame&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QStyleOptionFrameV2.html#QStyleOptionFrameV2(com.trolltech.qt.gui.QStyleOptionFrame)&quot;&gt;&lt;tt&gt;QStyleOptionFrameV2&lt;/tt&gt;&lt;/a&gt;. One way to achieve this is to use the &lt;a href=&quot;QStyleOptionFrameV2.html#QStyleOptionFrameV2(com.trolltech.qt.gui.QStyleOptionFrame)&quot;&gt;&lt;tt&gt;QStyleOptionFrameV2&lt;/tt&gt;&lt;/a&gt; copy constructor. For example:&lt;/p&gt;
&lt;pre&gt;        QStyleOptionFrame *option;

        if (const QStyleOptionFrame *frameOption =
               qstyleoption_cast&amp;lt;const QStyleOptionFrame *&amp;gt;(option)) {
            QStyleOptionFrameV2 frameOptionV2(*frameOption);

            &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; draw the frame using frameOptionV2
        }&lt;/pre&gt;
&lt;p&gt;In the example above: If the &lt;tt&gt;frameOption&lt;/tt&gt;'s version is 1, &lt;a href=&quot;QStyleOptionFrameV2.html#FrameFeature-enum&quot;&gt;&lt;tt&gt;FrameFeature&lt;/tt&gt;&lt;/a&gt; is set to &lt;a href=&quot;QStyleOptionFrameV2.html#FrameFeature-enum&quot;&gt;None&lt;/tt&gt;&lt;/a&gt; for &lt;tt&gt;frameOptionV2&lt;/tt&gt;. If &lt;tt&gt;frameOption&lt;/tt&gt;'s version is 2, the constructor will simply copy the &lt;tt&gt;frameOption&lt;/tt&gt;'s &lt;a href=&quot;QStyleOptionFrameV2.html#FrameFeature-enum&quot;&gt;&lt;tt&gt;FrameFeature&lt;/tt&gt;&lt;/a&gt; value.&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;QStyleOptionFrame.html#QStyleOptionFrame(int)&quot;&gt;&lt;tt&gt;QStyleOptionFrame&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 QStyleOptionFrameV2(com.trolltech.qt.gui.QStyleOptionFrameV2 other)" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QStyleOptionFrameV2.html#QStyleOptionFrameV2(com.trolltech.qt.gui.QStyleOptionFrame)&quot;&gt;&lt;tt&gt;QStyleOptionFrameV2&lt;/tt&gt;&lt;/a&gt; copy of the &lt;tt&gt;other&lt;/tt&gt; style option.&lt;/p&gt;
 */"/>
    <method name="public QStyleOptionFrameV2()" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QStyleOptionFrameV2.html#QStyleOptionFrameV2(com.trolltech.qt.gui.QStyleOptionFrame)&quot;&gt;&lt;tt&gt;QStyleOptionFrameV2&lt;/tt&gt;&lt;/a&gt; object.&lt;/p&gt;
 */"/>
    <method name="protected QStyleOptionFrameV2(int version)" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
    <method name="public QStyleOptionFrameV2(com.trolltech.qt.gui.QStyleOptionFrame other)" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QStyleOptionFrameV2.html#QStyleOptionFrameV2(com.trolltech.qt.gui.QStyleOptionFrame)&quot;&gt;&lt;tt&gt;QStyleOptionFrameV2&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;QStyleOptionFrameV2.html#QStyleOptionFrameV2(com.trolltech.qt.gui.QStyleOptionFrame)&quot;&gt;&lt;tt&gt;QStyleOptionFrameV2&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QStyleOptionFrame.html#QStyleOptionFrame(int)&quot;&gt;&lt;tt&gt;QStyleOptionFrame&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;QStyleOptionFrameV2.html#FrameFeature-enum&quot;&gt;&lt;tt&gt;FrameFeature&lt;/tt&gt;&lt;/a&gt; value is set to &lt;tt&gt;QStyleOptionFrameV2::None&lt;/tt&gt;. If its version is 2, its &lt;a href=&quot;QStyleOptionFrameV2.html#FrameFeature-enum&quot;&gt;&lt;tt&gt;FrameFeature&lt;/tt&gt;&lt;/a&gt; value is 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; */"/>
    <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;QStyleOptionFrame.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>
    <enum name="FrameFeature" doc="/**
&lt;p&gt;This enum describles the different types of features a frame can have.&lt;/p&gt;
 */">
        <enum-value name="None" doc="/**
&lt;p&gt;Indicates a normal frame.&lt;/p&gt;
 */"/>
        <enum-value name="Flat" doc="/**
&lt;p&gt;Indicates a flat frame.&lt;/p&gt;
 */"/>
</enum>
    <method name="public final com.trolltech.qt.gui.QStyleOptionFrameV2.FrameFeatures features()" doc="/**
&lt;p&gt;Returns a bitwise OR of the features that describe this frame..&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionFrameV2.html#setFeatures(com.trolltech.qt.gui.QStyleOptionFrameV2.FrameFeatures)&quot;&gt;&lt;tt&gt;setFeatures&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStyleOptionFrameV2.html#FrameFeature-enum&quot;&gt;&lt;tt&gt;FrameFeature&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFeatures(com.trolltech.qt.gui.QStyleOptionFrameV2.FrameFeatures features)" doc="/**
&lt;p&gt;Sets a bitwise OR of the features that describe this frame. to &lt;tt&gt;features&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionFrameV2.html#features()&quot;&gt;&lt;tt&gt;features&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStyleOptionFrameV2.html#FrameFeature-enum&quot;&gt;&lt;tt&gt;FrameFeature&lt;/tt&gt;&lt;/a&gt; */"/>
</class>
