|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.gui.QStyleOption
com.trolltech.qt.gui.QStyleOptionToolBox
com.trolltech.qt.gui.QStyleOptionToolBoxV2
public class QStyleOptionToolBoxV2
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
.
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)
|
static QNativePointer |
nativePointerArray(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 |
---|
public QStyleOptionToolBoxV2()
QStyleOptionToolBoxV2
object.
public QStyleOptionToolBoxV2(QStyleOptionToolBox other)
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.
public QStyleOptionToolBoxV2(QStyleOptionToolBoxV2 other)
QStyleOptionToolBoxV2
copy of the other style option.
Method Detail |
---|
public final void setPosition(QStyleOptionToolBoxV2.TabPosition position)
public final QStyleOptionToolBoxV2.TabPosition position()
public final void setSelectedPosition(QStyleOptionToolBoxV2.SelectedPosition selectedPosition)
NotAdjacent
, i.e. the tab is not adjacent to a selected tab nor is it the selected tab.
public final QStyleOptionToolBoxV2.SelectedPosition selectedPosition()
NotAdjacent
, i.e. the tab is not adjacent to a selected tab nor is it the selected tab.
public static QStyleOptionToolBoxV2 fromNativePointer(QNativePointer nativePointer)
public static QNativePointer nativePointerArray(QStyleOptionToolBoxV2[] array)
public QStyleOptionToolBoxV2 clone()
clone
in class QStyleOptionToolBox
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |