com.trolltech.qt.gui
Class QStyleOptionToolBoxV2

java.lang.Object
  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.QStyleOptionToolBox
                  extended by 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 typeSO_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.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9
 
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
static QStyleOptionToolBoxV2 fromNativePointer(QNativePointer nativePointer)
          This method returns the QStyleOptionToolBoxV2 instance pointed to by nativePointer.
static QNativePointer nativePointerArray(QStyleOptionToolBoxV2[] array)
          This function returns a QNativePointer that is pointing to the specified QStyleOptionToolBoxV2 array.
 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, nativePointerArray, setIcon, setText, text
 
Methods inherited from class com.trolltech.qt.gui.QStyleOption
direction, fontMetrics, initFrom, nativePointerArray, 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 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.


fromNativePointer

public static QStyleOptionToolBoxV2 fromNativePointer(QNativePointer nativePointer)
This method returns the QStyleOptionToolBoxV2 instance pointed to by nativePointer.


nativePointerArray

public static QNativePointer nativePointerArray(QStyleOptionToolBoxV2[] array)
This function returns a QNativePointer that is pointing to the specified QStyleOptionToolBoxV2 array.


clone

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

Overrides:
clone in class QStyleOptionToolBox