|
|||||||||
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.QStyleOptionHeader
public class QStyleOptionHeader
The QStyleOptionHeader
class is used to describe the parameters for drawing a header. QStyleOptionHeader
contains all the information that QStyle
functions need to draw the item views' header pane, header sort arrow, and header label.
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
.
Nested Class Summary | |
---|---|
static class |
QStyleOptionHeader.SectionPosition
This enum lets you know where the section's position is in relation to the other sections. |
static class |
QStyleOptionHeader.SelectedPosition
This enum describes the position of the selected tab. |
static class |
QStyleOptionHeader.SortIndicator
Indicates which direction the sort indicator should be drawn |
static class |
QStyleOptionHeader.StyleOptionType
This enum is used to hold information about the type of the style option, and is defined for each QStyleOption subclass. |
static class |
QStyleOptionHeader.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.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9 |
Constructor Summary | |
---|---|
QStyleOptionHeader()
Constructs a QStyleOptionHeader , initializing the members variables to their default values. |
|
QStyleOptionHeader(QStyleOptionHeader other)
Constructs a copy of the other style option. |
Method Summary | |
---|---|
QStyleOptionHeader |
clone()
This method is reimplemented for internal reasons |
static QStyleOptionHeader |
fromNativePointer(QNativePointer nativePointer)
|
QIcon |
icon()
This variable holds the icon of the header. |
Qt.Alignment |
iconAlignment()
This variable holds the alignment flags for the icon of the header. |
static QNativePointer |
nativePointerArray(QStyleOptionHeader[] array)
|
Qt.Orientation |
orientation()
This variable holds the header's orientation (horizontal or vertical). |
QStyleOptionHeader.SectionPosition |
position()
This variable holds the section's position in relation to the other sections. |
int |
section()
This variable holds which section of the header is being painted. |
QStyleOptionHeader.SelectedPosition |
selectedPosition()
This variable holds the section's position in relation to the selected section. |
void |
setIcon(QIcon icon)
This variable holds the icon of the header. |
void |
setIconAlignment(Qt.Alignment iconAlignment)
This variable holds the alignment flags for the icon of the header. |
void |
setOrientation(Qt.Orientation orientation)
This variable holds the header's orientation (horizontal or vertical). |
void |
setPosition(QStyleOptionHeader.SectionPosition position)
This variable holds the section's position in relation to the other sections. |
void |
setSection(int section)
This variable holds which section of the header is being painted. |
void |
setSelectedPosition(QStyleOptionHeader.SelectedPosition selectedPosition)
This variable holds the section's position in relation to the selected section. |
void |
setSortIndicator(QStyleOptionHeader.SortIndicator sortIndicator)
This variable holds the direction the sort indicator should be drawn. |
void |
setText(java.lang.String text)
This variable holds the text of the header. |
void |
setTextAlignment(Qt.Alignment textAlignment)
This variable holds the alignment flags for the text of the header. |
QStyleOptionHeader.SortIndicator |
sortIndicator()
This variable holds the direction the sort indicator should be drawn. |
java.lang.String |
text()
This variable holds the text of the header. |
Qt.Alignment |
textAlignment()
This variable holds the alignment flags for the text of the header. |
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 QStyleOptionHeader()
QStyleOptionHeader
, initializing the members variables to their default values.
public QStyleOptionHeader(QStyleOptionHeader other)
Method Detail |
---|
public final void setSection(int section)
public final int section()
public final void setSortIndicator(QStyleOptionHeader.SortIndicator sortIndicator)
QStyleOptionHeader::None
.
public final QStyleOptionHeader.SortIndicator sortIndicator()
QStyleOptionHeader::None
.
public final void setPosition(QStyleOptionHeader.SectionPosition position)
QStyleOptionHeader::Beginning
.
public final QStyleOptionHeader.SectionPosition position()
QStyleOptionHeader::Beginning
.
public final void setIcon(QIcon icon)
public final QIcon icon()
public final void setTextAlignment(Qt.Alignment textAlignment)
Qt::AlignLeft
.
public final Qt.Alignment textAlignment()
Qt::AlignLeft
.
public final void setText(java.lang.String text)
public final java.lang.String text()
public final void setSelectedPosition(QStyleOptionHeader.SelectedPosition selectedPosition)
QStyleOptionHeader::NotAdjacent
public final QStyleOptionHeader.SelectedPosition selectedPosition()
QStyleOptionHeader::NotAdjacent
public final void setIconAlignment(Qt.Alignment iconAlignment)
Qt::AlignLeft
.
public final Qt.Alignment iconAlignment()
Qt::AlignLeft
.
public final void setOrientation(Qt.Orientation orientation)
Qt::Horizontal
public final Qt.Orientation orientation()
Qt::Horizontal
public static QStyleOptionHeader fromNativePointer(QNativePointer nativePointer)
public static QNativePointer nativePointerArray(QStyleOptionHeader[] array)
public QStyleOptionHeader clone()
clone
in class QStyleOption
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |