Class QStyleOptionViewItemV2

  extended by com.trolltech.qt.internal.QSignalEmitterInternal
      extended by com.trolltech.qt.QSignalEmitter
          extended by com.trolltech.qt.QtJambiObject
              extended by com.trolltech.qt.gui.QStyleOption
                  extended by com.trolltech.qt.gui.QStyleOptionViewItem
                      extended by com.trolltech.qt.gui.QStyleOptionViewItemV2
All Implemented Interfaces:
QtJambiInterface, java.lang.Cloneable
Direct Known Subclasses:

public class QStyleOptionViewItemV2
extends QStyleOptionViewItem
implements java.lang.Cloneable

The QStyleOptionViewItemV2 class is used to describe the parameters necessary for drawing a frame in Qt 4. or above. QStyleOptionViewItemV2 inherits QStyleOptionViewItem.

An instance of the QStyleOptionViewItemV2 class has typeSO_ViewItem and version 2. The type is used internally by QStyleOption, 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 QStyleOption subclass and your own styles. The version is used by QStyleOption subclasses to implement extensions without breaking compatibility. If you use qstyleoption_cast(), you normally do not need to check it.

See QStyleOptionFrameV2's detailed description for a discussion of how to handle "V2" classes.

See also:
QStyleOptionViewItem, and QStyleOption.

Nested Class Summary
static class QStyleOptionViewItemV2.StyleOptionVersion
          This enum is used to hold information about the version of the style option, and is defined for each QStyleOption subclass.
static class QStyleOptionViewItemV2.ViewItemFeature
          This enum describles the different types of features an item can have.
static class QStyleOptionViewItemV2.ViewItemFeatures
Nested classes/interfaces inherited from class com.trolltech.qt.gui.QStyleOptionViewItem
QStyleOptionViewItem.Position, QStyleOptionViewItem.StyleOptionType
Nested classes/interfaces inherited from class com.trolltech.qt.gui.QStyleOption
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter
QSignalEmitter.AbstractSignal, QSignalEmitter.PrivateSignal0, QSignalEmitter.PrivateSignal1, QSignalEmitter.PrivateSignal2, QSignalEmitter.PrivateSignal3, QSignalEmitter.PrivateSignal4, QSignalEmitter.PrivateSignal5, QSignalEmitter.PrivateSignal6, QSignalEmitter.PrivateSignal7, QSignalEmitter.PrivateSignal8, QSignalEmitter.PrivateSignal9, QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9
Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
Field Summary
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
Constructor Summary
          Constructs a QStyleOptionViewItemV2 object.
QStyleOptionViewItemV2(QStyleOptionViewItem other)
          Constructs a QStyleOptionViewItemV2 copy of the other style option which can be either of the QStyleOptionViewItemV2 or QStyleOptionViewItem types.
QStyleOptionViewItemV2(QStyleOptionViewItemV2 other)
          Constructs a copy of other.
Method Summary
 QStyleOptionViewItemV2 clone()
          This method is reimplemented for internal reasons
 QStyleOptionViewItemV2.ViewItemFeatures features()
          This variable holds a bitwise OR of the features that describe this view item.
 void setFeatures(QStyleOptionViewItemV2.ViewItemFeature[] features)
 void setFeatures(QStyleOptionViewItemV2.ViewItemFeatures features)
          This variable holds a bitwise OR of the features that describe this view item.
Methods inherited from class com.trolltech.qt.gui.QStyleOptionViewItem
decorationAlignment, decorationPosition, decorationSize, displayAlignment, font, setDecorationAlignment, setDecorationAlignment, setDecorationPosition, setDecorationSize, setDisplayAlignment, setDisplayAlignment, setFont, setShowDecorationSelected, setTextElideMode, showDecorationSelected, textElideMode
Methods inherited from class com.trolltech.qt.gui.QStyleOption
direction, fontMetrics, initFrom, palette, rect, setDirection, setFontMetrics, setPalette, setRect, setState, setState, setType, setVersion, state, type, version
Methods inherited from class com.trolltech.qt.QtJambiObject
dispose, disposed, equals, finalize, reassignNativeResources, tr, tr, tr
Methods inherited from class com.trolltech.qt.QSignalEmitter
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread
Methods inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.trolltech.qt.QtJambiInterface
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership

Constructor Detail


public QStyleOptionViewItemV2()
Constructs a QStyleOptionViewItemV2 object.


public QStyleOptionViewItemV2(QStyleOptionViewItem other)
Constructs a QStyleOptionViewItemV2 copy of the other style option which can be either of the QStyleOptionViewItemV2 or QStyleOptionViewItem types.

If the other style option's version is 1, the new style option's ViewItemFeature value is set to QStyleOptionViewItemV2::None . If its version is 2, its ViewItemFeature value is simply copied to the new style option.

See also:


public QStyleOptionViewItemV2(QStyleOptionViewItemV2 other)
Constructs a copy of other.

Method Detail


public final void setFeatures(QStyleOptionViewItemV2.ViewItemFeature[] features)


public final void setFeatures(QStyleOptionViewItemV2.ViewItemFeatures features)
This variable holds a bitwise OR of the features that describe this view item.

See also:
ViewItemFeature .


public final QStyleOptionViewItemV2.ViewItemFeatures features()
This variable holds a bitwise OR of the features that describe this view item.

See also:
ViewItemFeature .


public QStyleOptionViewItemV2 clone()
This method is reimplemented for internal reasons

clone in class QStyleOptionViewItem