<class name="QStyleOptionViewItemV2" doc="/** <p>The <a href="QStyleOptionViewItemV2.html#QStyleOptionViewItemV2()"><tt>QStyleOptionViewItemV2</tt></a> class is used to describe the parameters necessary for drawing a frame in Qt 4.2 or above.</p> <p><a href="QStyleOptionViewItemV2.html#QStyleOptionViewItemV2()"><tt>QStyleOptionViewItemV2</tt></a> inherits <a href="QStyleOptionViewItem.html#QStyleOptionViewItem(int)"><tt>QStyleOptionViewItem</tt></a>.</p> <p>An instance of the <a href="QStyleOptionViewItemV2.html#QStyleOptionViewItemV2()"><tt>QStyleOptionViewItemV2</tt></a> class has <a href="QStyleOption.html#type()">type</tt></a> <a href="QStyleOption.html#OptionType-enum"><tt>SO_ViewItem</tt></a> and <a href="QStyleOption.html#version()">version</tt></a> 2. 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>See <a href="QStyleOptionFrameV2.html"><tt>QStyleOptionFrameV2</tt></a>'s detailed description for a discussion of how to handle &quot;V2&quot; classes.</p> @see <a href="QStyleOptionViewItem.html#QStyleOptionViewItem(int)"><tt>QStyleOptionViewItem</tt></a> @see <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a> */"> <method name="public QStyleOptionViewItemV2(com.trolltech.qt.gui.QStyleOptionViewItem other)" doc="/** <p>Constructs a <a href="QStyleOptionViewItemV2.html#QStyleOptionViewItemV2()"><tt>QStyleOptionViewItemV2</tt></a> copy of the <tt>other</tt> style option which can be either of the <a href="QStyleOptionViewItemV2.html#QStyleOptionViewItemV2()"><tt>QStyleOptionViewItemV2</tt></a> or <a href="QStyleOptionViewItem.html#QStyleOptionViewItem(int)"><tt>QStyleOptionViewItem</tt></a> types.</p> <p>If the <tt>other</tt> style option's version is 1, the new style option's <a href="QStyleOptionViewItemV2.html#ViewItemFeature-enum"><tt>ViewItemFeature</tt></a> value is set to <tt>QStyleOptionViewItemV2::None</tt>. If its version is 2, its <a href="QStyleOptionViewItemV2.html#ViewItemFeature-enum"><tt>ViewItemFeature</tt></a> value is simply copied to the new style option.</p> @see <a href="QStyleOption.html#version()">version</tt></a> */"/> <method name="public QStyleOptionViewItemV2(com.trolltech.qt.gui.QStyleOptionViewItemV2 other)" doc="/** <p>Constructs a copy of <tt>other</tt>.</p> */"/> <method name="protected QStyleOptionViewItemV2(int version)" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> */"/> <method name="public QStyleOptionViewItemV2()" doc="/** <p>Constructs a <a href="QStyleOptionViewItemV2.html#QStyleOptionViewItemV2()"><tt>QStyleOptionViewItemV2</tt></a> object.</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="QStyleOptionViewItem.html#StyleOptionType-enum"><tt>StyleOptionType</tt></a> */"> <enum-value name="Version" doc="/** <p>2</p> */"/> </enum> <enum name="ViewItemFeature" doc="/** <p>This enum describles the different types of features an item can have.</p> */"> <enum-value name="None" doc="/** <p>Indicates a normal item.</p> */"/> <enum-value name="WrapText" doc="/** <p>Indicates an item with wrapped text.</p> */"/> <enum-value name="Alternate" doc="/** <p>Indicates that the item's background is rendered using alternateBase.</p> */"/> </enum> <method name="public final com.trolltech.qt.gui.QStyleOptionViewItemV2.ViewItemFeatures features()" doc="/** <p>Returns a bitwise OR of the features that describe this view item.</p> @see <a href="QStyleOptionViewItemV2.html#setFeatures(com.trolltech.qt.gui.QStyleOptionViewItemV2.ViewItemFeatures)"><tt>setFeatures</tt></a> @see <a href="QStyleOptionViewItemV2.html#ViewItemFeature-enum"><tt>ViewItemFeature</tt></a> */"/> <method name="public final void setFeatures(com.trolltech.qt.gui.QStyleOptionViewItemV2.ViewItemFeatures features)" doc="/** <p>Sets a bitwise OR of the features that describe this view item to <tt>features</tt>.</p> @see <a href="QStyleOptionViewItemV2.html#features()"><tt>features</tt></a> @see <a href="QStyleOptionViewItemV2.html#ViewItemFeature-enum"><tt>ViewItemFeature</tt></a> */"/> </class>