|
|||||||||
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.QStyleOptionFrame
public class QStyleOptionFrame
The QStyleOptionFrame
class is used to describe the parameters for drawing a frame. QStyleOptionFrame
is used for drawing several built-in Qt widgets, including QFrame
, QGroupBox
, QLineEdit
, and QMenu
. Note that to describe the parameters necessary for drawing a frame in Qt 4.1 or above, you must use the QStyleOptionFrameV2
subclass.
An instance of the QStyleOptionFrame
class has typeSO_Frame
and version 1.
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 QStyleOptionFrame
and QStyleOptionFrameV2
.
For an example demonstrating how style options can be used, see the Styles example.
QStyleOptionFrameV2
, and QStyleOption
.
Nested Class Summary | |
---|---|
static class |
QStyleOptionFrame.StyleOptionType
This enum is used to hold information about the type of the style option, and is defined for each QStyleOption subclass. |
static class |
QStyleOptionFrame.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.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 | |
---|---|
QStyleOptionFrame()
Constructs a QStyleOptionFrame , initializing the members variables to their default values. |
|
QStyleOptionFrame(QStyleOptionFrame other)
Constructs a copy of the other style option. |
Method Summary | |
---|---|
QStyleOptionFrame |
clone()
This method is reimplemented for internal reasons |
int |
lineWidth()
This variable holds the line width for drawing the frame. |
int |
midLineWidth()
This variable holds the mid-line width for drawing the frame. |
void |
setLineWidth(int lineWidth)
This variable holds the line width for drawing the frame. |
void |
setMidLineWidth(int midLineWidth)
This variable holds the mid-line width for drawing the frame. |
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 |
---|
public QStyleOptionFrame()
QStyleOptionFrame
, initializing the members variables to their default values.
public QStyleOptionFrame(QStyleOptionFrame other)
Method Detail |
---|
public final void setLineWidth(int lineWidth)
QFrame::lineWidth
.
public final int lineWidth()
QFrame::lineWidth
.
public final void setMidLineWidth(int midLineWidth)
The default value is 0.
QFrame::midLineWidth
.
public final int midLineWidth()
The default value is 0.
QFrame::midLineWidth
.
public QStyleOptionFrame clone()
clone
in class QStyleOption
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |