|
|||||||||
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
com.trolltech.qt.gui.QStyleOptionToolButton
public class QStyleOptionToolButton
The QStyleOptionToolButton class is used to describe the parameters for drawing a tool button. QStyleOptionToolButton contains all the information that QStyle
functions need to draw QToolButton
.
For performance reasons, the access to the member variables is direct (i.e., using the . or -> operator). This low-level feel makes the structures straightforward to use and emphasizes that these are simply parameters used by the style functions.
For an example demonstrating how style options can be used, see the Styles example.
QStyleOption
, QStyleOptionComplex
, and QStyleOptionButton
.
Nested Class Summary | |
---|---|
static class |
QStyleOptionToolButton.StyleOptionType
This enum is used to hold information about the type of the style option, and is defined for each QStyleOption subclass. |
static class |
QStyleOptionToolButton.StyleOptionVersion
This enum is used to hold information about the version of the style option, and is defined for each QStyleOption subclass. |
static class |
QStyleOptionToolButton.ToolButtonFeature
Describes the various features that a tool button can have. |
static class |
QStyleOptionToolButton.ToolButtonFeatures
|
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 | |
---|---|
QStyleOptionToolButton()
Constructs a QStyleOptionToolButton, initializing the members variables to their default values. |
|
QStyleOptionToolButton(QStyleOptionToolButton other)
Constructs a copy of the other style option. |
Method Summary | |
---|---|
Qt.ArrowType |
arrowType()
This variable holds the direction of the arrow for the tool button. |
QStyleOptionToolButton |
clone()
This method is reimplemented for internal reasons |
QStyleOptionToolButton.ToolButtonFeatures |
features()
This variable holds an OR combination of the tool button's features. |
QFont |
font()
This variable holds the font that is used for the text. |
QIcon |
icon()
This variable holds the icon for the tool button. |
QSize |
iconSize()
This variable holds the size of the icon for the tool button. |
QPoint |
pos()
This variable holds the position of the tool button. |
void |
setArrowType(Qt.ArrowType arrowType)
This variable holds the direction of the arrow for the tool button. |
void |
setFeatures(QStyleOptionToolButton.ToolButtonFeature[] features)
|
void |
setFeatures(QStyleOptionToolButton.ToolButtonFeatures features)
This variable holds an OR combination of the tool button's features. |
void |
setFont(QFont font)
This variable holds the font that is used for the text. |
void |
setIcon(QIcon icon)
This variable holds the icon for the tool button. |
void |
setIconSize(QSize iconSize)
This variable holds the size of the icon for the tool button. |
void |
setPos(QPoint pos)
This variable holds the position of the tool button. |
void |
setText(java.lang.String text)
This variable holds the text of the tool button. |
void |
setToolButtonStyle(Qt.ToolButtonStyle toolButtonStyle)
This variable holds a Qt::ToolButtonStyle value describing the appearance of the tool button. |
java.lang.String |
text()
This variable holds the text of the tool button. |
Qt.ToolButtonStyle |
toolButtonStyle()
This variable holds a Qt::ToolButtonStyle value describing the appearance of the tool button. |
Methods inherited from class com.trolltech.qt.gui.QStyleOptionComplex |
---|
activeSubControls, setActiveSubControls, setSubControls, subControls |
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 QStyleOptionToolButton()
public QStyleOptionToolButton(QStyleOptionToolButton other)
Method Detail |
---|
public final void setIconSize(QSize iconSize)
QSize
(-1, -1), i.e. an invalid size.
public final QSize iconSize()
QSize
(-1, -1), i.e. an invalid size.
public final void setToolButtonStyle(Qt.ToolButtonStyle toolButtonStyle)
Qt::ToolButtonStyle
value describing the appearance of the tool button. The default value is Qt::ToolButtonIconOnly
. QToolButton::toolButtonStyle()
.
public final Qt.ToolButtonStyle toolButtonStyle()
Qt::ToolButtonStyle
value describing the appearance of the tool button. The default value is Qt::ToolButtonIconOnly
. QToolButton::toolButtonStyle()
.
public final void setFeatures(QStyleOptionToolButton.ToolButtonFeature[] features)
public final void setFeatures(QStyleOptionToolButton.ToolButtonFeatures features)
None
. ToolButtonFeature
.
public final QStyleOptionToolButton.ToolButtonFeatures features()
None
. ToolButtonFeature
.
public final void setArrowType(Qt.ArrowType arrowType)
Arrow
. The default value is Qt::DownArrow
.
public final Qt.ArrowType arrowType()
Arrow
. The default value is Qt::DownArrow
.
public final void setIcon(QIcon icon)
public final QIcon icon()
public final void setPos(QPoint pos)
public final QPoint pos()
public final void setText(java.lang.String text)
Qt::ToolButtonTextUnderIcon
, Qt::ToolButtonTextBesideIcon
, or Qt::ToolButtonTextOnly
. The default value is an empty string.
public final java.lang.String text()
Qt::ToolButtonTextUnderIcon
, Qt::ToolButtonTextBesideIcon
, or Qt::ToolButtonTextOnly
. The default value is an empty string.
public final void setFont(QFont font)
Qt::ToolButtonTextUnderIcon
, Qt::ToolButtonTextBesideIcon
, or Qt::ToolButtonTextOnly
. By default, the application's default font is used.
public final QFont font()
Qt::ToolButtonTextUnderIcon
, Qt::ToolButtonTextBesideIcon
, or Qt::ToolButtonTextOnly
. By default, the application's default font is used.
public QStyleOptionToolButton clone()
clone
in class QStyleOptionComplex
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |