Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.trolltech.qt.gui
Class QStyleOptionToolBoxV2

    java.lang.Object
      com.trolltech.qt.internal.QSignalEmitterInternal
          com.trolltech.qt.QSignalEmitter
              com.trolltech.qt.QtJambiObject
                  com.trolltech.qt.gui.QStyleOption
                      com.trolltech.qt.gui.QStyleOptionToolBox
                          com.trolltech.qt.gui.QStyleOptionToolBoxV2

All Implemented Interfaces:
  QtJambiInterface, java.lang.Cloneable

    public class QStyleOptionToolBoxV2

extends QStyleOptionToolBox
implements java.lang.Cloneable

The `QStyleOptionToolBoxV2` class is used to describe the parameters necessary for drawing a frame in Qt 4.3 or above. `QStyleOptionToolBoxV2` inherits `QStyleOptionToolBox` which is used for drawing the tabs in a `QToolBox`.

An instance of the `QStyleOptionToolBoxV2` class has type`SO_ToolBox` 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 don't need to check it.

If you create your own `QStyle` subclass, you should handle both `QStyleOptionToolBox` and `QStyleOptionToolBoxV2`.

See also:
  `QStyleOptionToolBox`, and `QStyleOption`.

Nested Class Summary
`static class` | `QStyleOptionToolBoxV2.SelectedPosition` This enum describes the position of the selected tab.
`static class` | `QStyleOptionToolBoxV2.StyleOptionVersion` This enum is used to hold information about the version of the style option, and is defined for each `QStyleOption` subclass.
`static class` | `QStyleOptionToolBoxV2.TabPosition` This enum type defines where `QTabWidget` draws the tab row:

Nested classes/interfaces inherited from class com.trolltech.qt.gui.QStyleOptionToolBox
`QStyleOptionToolBox.StyleOptionType`

Nested classes/interfaces inherited from class com.trolltech.qt.gui.QStyleOption
`QStyleOption.OptionType`

Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter
`QSignalEmitter.AbstractSignal, 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
`com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal`

Field Summary

Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
`currentSender`

Constructor Summary
`QStyleOptionToolBoxV2()` Contsructs a `QStyleOptionToolBoxV2` object.
`QStyleOptionToolBoxV2(QStyleOptionToolBox other)` Constructs a `QStyleOptionToolBoxV2` copy of the `other` style option which can be either of the `QStyleOptionToolBoxV2` or `QStyleOptionToolBox` types.
`QStyleOptionToolBoxV2(QStyleOptionToolBoxV2 other)` Constructs a `QStyleOptionToolBoxV2` copy of the `other` style option.

Method Summary
`QStyleOptionToolBoxV2` | `clone()` This method is reimplemented for internal reasons
`QStyleOptionToolBoxV2.TabPosition` | `position()` Returns the tab position of this QStyleOptionToolBoxV2.
`QStyleOptionToolBoxV2.SelectedPosition` | `selectedPosition()` This variable holds the position of the selected tab in relation to this tab.
`void` | `setPosition(QStyleOptionToolBoxV2.TabPosition position)`
`void` | `setSelectedPosition(QStyleOptionToolBoxV2.SelectedPosition selectedPosition)` This variable holds the position of the selected tab in relation to this tab.

Methods inherited from class com.trolltech.qt.gui.QStyleOptionToolBox
`icon, setIcon, setText, text`

Methods inherited from class com.trolltech.qt.gui.QStyleOption
`direction, fontMetrics, initFrom, palette, rect, setDirection, setFontMetrics, setPalette, setRect, 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
`__qt_signalInitialization`

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

### QStyleOptionToolBoxV2

    public QStyleOptionToolBoxV2()

  Contsructs a `QStyleOptionToolBoxV2` object.

### QStyleOptionToolBoxV2

    public QStyleOptionToolBoxV2(QStyleOptionToolBox other)

  Constructs a `QStyleOptionToolBoxV2` copy of the `other` style option which can be either of the `QStyleOptionToolBoxV2` or `QStyleOptionToolBox` types.

  If the `other` style option's version is 1, the new style option's position value is set to `QStyleOptionToolBoxV2::Beginning` and selectedPosition is set to `QStyleOptionToolBoxV2::NotAdjacent` . If its version is 2, the positionselectedPosition values are simply copied to the new style option.

See also:
  version.

### QStyleOptionToolBoxV2

    public QStyleOptionToolBoxV2(QStyleOptionToolBoxV2 other)

  Constructs a `QStyleOptionToolBoxV2` copy of the `other` style option.

Method Detail

### setPosition

    public final void setPosition(QStyleOptionToolBoxV2.TabPosition position)

### position

    public final QStyleOptionToolBoxV2.TabPosition position()

  Returns the tab position of this QStyleOptionToolBoxV2.

### setSelectedPosition

    public final void setSelectedPosition(QStyleOptionToolBoxV2.SelectedPosition selectedPosition)

  This variable holds the position of the selected tab in relation to this tab. The default value is `NotAdjacent` , i.e. the tab is not adjacent to a selected tab nor is it the selected tab.

### selectedPosition

    public final QStyleOptionToolBoxV2.SelectedPosition selectedPosition()

  This variable holds the position of the selected tab in relation to this tab. The default value is `NotAdjacent` , i.e. the tab is not adjacent to a selected tab nor is it the selected tab.

### clone

    public QStyleOptionToolBoxV2 clone()

  This method is reimplemented for internal reasons

  Overrides:
    `clone` in class `QStyleOptionToolBox`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD