|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.gui.QStyleOption
com.trolltech.qt.gui.QStyleOptionComplex
public class QStyleOptionComplex
The QStyleOptionComplex class is used to hold parameters that are common to all complex controls. This class is not used on its own. Instead it is used to derive other complex control options, for example QStyleOptionSlider
and QStyleOptionSpinBox
.
For performance reasons, the access to the member variables is direct (i.e., using the . or -> operator).
For an example demonstrating how style options can be used, see the Styles example.
QStyleOption
.
Nested Class Summary | |
---|---|
static class |
QStyleOptionComplex.StyleOptionType
This enum is used to hold information about the type of the style option, and is defined for each QStyleOption subclass. |
static class |
QStyleOptionComplex.StyleOptionVersion
This enum is used to hold information about the version of the style option, and is defined for each QStyleOption subclass. |
Nested classes/interfaces inherited from class com.trolltech.qt.gui.QStyleOption |
---|
QStyleOption.OptionType |
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 | |
---|---|
QStyleOptionComplex()
Constructs a QStyleOptionComplex of the specified type and version, initializing the member variables to their default values. |
|
QStyleOptionComplex(int version)
Constructs a QStyleOptionComplex of the specified type and version, initializing the member variables to their default values. |
|
QStyleOptionComplex(int version,
int type)
Constructs a QStyleOptionComplex of the specified type and version, initializing the member variables to their default values. |
|
QStyleOptionComplex(QStyleOptionComplex other)
Constructs a copy of the other style option. |
Method Summary | |
---|---|
int |
activeSubControls()
This variable holds a bitwise OR of the various sub-controls that are active (pressed) for the complex control. |
QStyleOptionComplex |
clone()
This method is reimplemented for internal reasons |
void |
setActiveSubControls(int activeSubControls)
This variable holds a bitwise OR of the various sub-controls that are active (pressed) for the complex control. |
void |
setSubControls(int subControls)
This variable holds a bitwise OR of the various sub-controls that need to be drawn for the complex control. |
int |
subControls()
This variable holds a bitwise OR of the various sub-controls that need to be drawn for the complex control. |
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 |
---|
__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 |
---|
public QStyleOptionComplex(QStyleOptionComplex other)
public QStyleOptionComplex(int version)
public QStyleOptionComplex()
public QStyleOptionComplex(int version, int type)
Method Detail |
---|
public final void setSubControls(int subControls)
QStyle::SC_All
. QStyle::SubControl
.
public final int subControls()
QStyle::SC_All
. QStyle::SubControl
.
public final void setActiveSubControls(int activeSubControls)
QStyle::SC_None
. QStyle::SubControl
.
public final int activeSubControls()
QStyle::SC_None
. QStyle::SubControl
.
public QStyleOptionComplex clone()
clone
in class QStyleOption
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |