<class name="QStyleOptionViewItem" doc="/**
&lt;p&gt;The &lt;a href=&quot;QStyleOptionViewItem.html#QStyleOptionViewItem(int)&quot;&gt;&lt;tt&gt;QStyleOptionViewItem&lt;/tt&gt;&lt;/a&gt; class is used to describe the parameters used to draw an item in a view widget.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QStyleOptionViewItem.html#QStyleOptionViewItem(int)&quot;&gt;&lt;tt&gt;QStyleOptionViewItem&lt;/tt&gt;&lt;/a&gt; contains all the information that &lt;a href=&quot;QStyle.html&quot;&gt;&lt;tt&gt;QStyle&lt;/tt&gt;&lt;/a&gt; functions need to draw the items for Qt's model/view classes.&lt;/p&gt;
&lt;p&gt;For performance reasons, the access to the member variables is direct (i.e&amp;#x2e;, using the &lt;tt&gt;.&lt;/tt&gt; or &lt;tt&gt;-&amp;gt;&lt;/tt&gt; operator). This low-level feel makes the structures straightforward to use and emphasizes that these are simply parameters used by the style functions.&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;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/model-view-programming.html&quot;&gt;Model/View Programming&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QStyleOptionViewItem(com.trolltech.qt.gui.QStyleOptionViewItem other)" doc="/**
&lt;p&gt;Constructs a copy of the &lt;tt&gt;other&lt;/tt&gt; style option.&lt;/p&gt;
 */"/>
    <method name="public QStyleOptionViewItem()" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QStyleOptionViewItem.html#QStyleOptionViewItem(int)&quot;&gt;&lt;tt&gt;QStyleOptionViewItem&lt;/tt&gt;&lt;/a&gt;, initializing the members variables to their default values.&lt;/p&gt;
 */"/>
    <method name="protected QStyleOptionViewItem(int version)" doc="/**
&lt;p&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;QStyleOptionViewItem.html#StyleOptionType-enum&quot;&gt;&lt;tt&gt;StyleOptionType&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="Version" doc="/**
&lt;p&gt;1&lt;/p&gt;
 */"/>
</enum>
    <enum name="StyleOptionType" doc="/**
&lt;p&gt;This enum is used to hold information about the type 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 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.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionViewItem.html#StyleOptionVersion-enum&quot;&gt;&lt;tt&gt;StyleOptionVersion&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="Type" doc="/**
&lt;p&gt;The type of style option provided (&lt;a href=&quot;QStyleOption.html#OptionType-enum&quot;&gt;&lt;tt&gt;SO_ViewItem&lt;/tt&gt;&lt;/a&gt; for this class).&lt;/p&gt;
 */"/>
</enum>
    <enum name="Position" doc="/**
&lt;p&gt;This enum describes the position of the item's decoration.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionViewItem.html#decorationPosition()&quot;&gt;&lt;tt&gt;decorationPosition&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="Left" doc="/**
&lt;p&gt;On the left of the text.&lt;/p&gt;
 */"/>
        <enum-value name="Right" doc="/**
&lt;p&gt;On the right of the text.&lt;/p&gt;
 */"/>
        <enum-value name="Top" doc="/**
&lt;p&gt;Above the text.&lt;/p&gt;
 */"/>
        <enum-value name="Bottom" doc="/**
&lt;p&gt;Below the text.&lt;/p&gt;
 */"/>
</enum>
    <method name="public final boolean showDecorationSelected()" doc="/**
&lt;p&gt;Returns whether the decoration should be highlighted on selected items.&lt;/p&gt;
&lt;p&gt;If this option is true, the branch and any decorations on selected items should be highlighted, indicating that the item is selected; otherwise, no highlighting is required. The default value is false.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionViewItem.html#setShowDecorationSelected(boolean)&quot;&gt;&lt;tt&gt;setShowDecorationSelected&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QStyle::SH_ItemView_ShowDecorationSelected&lt;/tt&gt;
@see &lt;a href=&quot;QAbstractItemView.html&quot;&gt;&lt;tt&gt;QAbstractItemView&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setShowDecorationSelected(boolean showDecorationSelected)" doc="/**
&lt;p&gt;Sets whether the decoration should be highlighted on selected items to &lt;tt&gt;showDecorationSelected&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If this option is true, the branch and any decorations on selected items should be highlighted, indicating that the item is selected; otherwise, no highlighting is required. The default value is false.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionViewItem.html#showDecorationSelected()&quot;&gt;&lt;tt&gt;showDecorationSelected&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QStyle::SH_ItemView_ShowDecorationSelected&lt;/tt&gt;
@see &lt;a href=&quot;QAbstractItemView.html&quot;&gt;&lt;tt&gt;QAbstractItemView&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QStyleOptionViewItem.Position decorationPosition()" doc="/**
&lt;p&gt;Returns the position of the decoration for the item.&lt;/p&gt;
&lt;p&gt;The default value is &lt;a href=&quot;QStyleOptionViewItem.html#Position-enum&quot;&gt;Left&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionViewItem.html#setDecorationPosition(com.trolltech.qt.gui.QStyleOptionViewItem.Position)&quot;&gt;&lt;tt&gt;setDecorationPosition&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStyleOptionViewItem.html#Position-enum&quot;&gt;Position&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setDecorationPosition(com.trolltech.qt.gui.QStyleOptionViewItem.Position decorationPosition)" doc="/**
&lt;p&gt;Sets the position of the decoration for the item to &lt;tt&gt;decorationPosition&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value is &lt;a href=&quot;QStyleOptionViewItem.html#Position-enum&quot;&gt;Left&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionViewItem.html#decorationPosition()&quot;&gt;&lt;tt&gt;decorationPosition&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStyleOptionViewItem.html#Position-enum&quot;&gt;Position&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.Alignment decorationAlignment()" doc="/**
&lt;p&gt;Returns the alignment of the decoration for the item.&lt;/p&gt;
&lt;p&gt;The default value is Qt::AlignLeft.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionViewItem.html#setDecorationAlignment(com.trolltech.qt.core.Qt.Alignment)&quot;&gt;&lt;tt&gt;setDecorationAlignment&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setDecorationAlignment(com.trolltech.qt.core.Qt.Alignment decorationAlignment)" doc="/**
&lt;p&gt;Sets the alignment of the decoration for the item to &lt;tt&gt;decorationAlignment&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value is Qt::AlignLeft.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionViewItem.html#decorationAlignment()&quot;&gt;&lt;tt&gt;decorationAlignment&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.Alignment displayAlignment()" doc="/**
&lt;p&gt;Returns the alignment of the display value for the item.&lt;/p&gt;
&lt;p&gt;The default value is Qt::AlignLeft.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionViewItem.html#setDisplayAlignment(com.trolltech.qt.core.Qt.Alignment)&quot;&gt;&lt;tt&gt;setDisplayAlignment&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setDisplayAlignment(com.trolltech.qt.core.Qt.Alignment displayAlignment)" doc="/**
&lt;p&gt;Sets the alignment of the display value for the item to &lt;tt&gt;displayAlignment&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value is Qt::AlignLeft.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionViewItem.html#displayAlignment()&quot;&gt;&lt;tt&gt;displayAlignment&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.TextElideMode textElideMode()" doc="/**
&lt;p&gt;Returns where ellipsis should be added for text that is too long to fit into an item.&lt;/p&gt;
&lt;p&gt;The default value is Qt::ElideMiddle, i.e&amp;#x2e; the ellipsis appears in the middle of the text.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionViewItem.html#setTextElideMode(com.trolltech.qt.core.Qt.TextElideMode)&quot;&gt;&lt;tt&gt;setTextElideMode&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;Qt::TextElideMode&lt;/tt&gt;
@see &lt;tt&gt;QStyle::SH_ItemView_EllipsisLocation&lt;/tt&gt; */"/>
    <method name="public final void setTextElideMode(com.trolltech.qt.core.Qt.TextElideMode textElideMode)" doc="/**
&lt;p&gt;Sets where ellipsis should be added for text that is too long to fit into an item to &lt;tt&gt;textElideMode&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value is Qt::ElideMiddle, i.e&amp;#x2e; the ellipsis appears in the middle of the text.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionViewItem.html#textElideMode()&quot;&gt;&lt;tt&gt;textElideMode&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;Qt::TextElideMode&lt;/tt&gt;
@see &lt;tt&gt;QStyle::SH_ItemView_EllipsisLocation&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.core.QSize decorationSize()" doc="/**
&lt;p&gt;Returns the size of the decoration for the item.&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.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionViewItem.html#setDecorationSize(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;setDecorationSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStyleOptionViewItem.html#decorationAlignment()&quot;&gt;&lt;tt&gt;decorationAlignment&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStyleOptionViewItem.html#decorationPosition()&quot;&gt;&lt;tt&gt;decorationPosition&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setDecorationSize(com.trolltech.qt.core.QSize decorationSize)" doc="/**
&lt;p&gt;Sets the size of the decoration for the item to &lt;tt&gt;decorationSize&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.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionViewItem.html#decorationSize()&quot;&gt;&lt;tt&gt;decorationSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStyleOptionViewItem.html#decorationAlignment()&quot;&gt;&lt;tt&gt;decorationAlignment&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStyleOptionViewItem.html#decorationPosition()&quot;&gt;&lt;tt&gt;decorationPosition&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QFont font()" doc="/**
&lt;p&gt;Returns the font used for the item.&lt;/p&gt;
&lt;p&gt;By default, the application's default font is used.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionViewItem.html#setFont(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;setFont&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QFont.html&quot;&gt;&lt;tt&gt;QFont&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFont(com.trolltech.qt.gui.QFont font)" doc="/**
&lt;p&gt;Sets the font used for the item to &lt;tt&gt;font&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;By default, the application's default font is used.&lt;/p&gt;

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