|
|||||||||
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.QStyleOptionProgressBar
public class QStyleOptionProgressBar
The QStyleOptionProgressBar class is used to describe the parameters necessary for drawing a progress bar. Since Qt 4.1, Qt uses the QStyleOptionProgressBarV2
subclass for drawing QProgressBar
.
An instance of the QStyleOptionProgressBar class has type SO_ProgressBar
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 QStyleOptionProgressBar and QStyleOptionProgressBarV2
.
For an example demonstrating how style options can be used, see the Styles example.
QStyleOptionProgressBarV2
, and QStyleOption
.
Nested Class Summary | |
---|---|
static class |
QStyleOptionProgressBar.StyleOptionType
This enum is used to hold information about the type of the style option, and is defined for each QStyleOption subclass. |
static class |
QStyleOptionProgressBar.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 | |
---|---|
QStyleOptionProgressBar()
Constructs a QStyleOptionProgressBar, initializing the members variables to their default values. |
|
QStyleOptionProgressBar(QStyleOptionProgressBar other)
Constructs a copy of the other style option. |
Method Summary | |
---|---|
QStyleOptionProgressBar |
clone()
This method is reimplemented for internal reasons |
int |
maximum()
This variable holds the maximum value for the progress bar. |
int |
minimum()
This variable holds the minimum value for the progress bar. |
int |
progress()
This variable holds the current progress for the progress bar. |
void |
setMaximum(int maximum)
This variable holds the maximum value for the progress bar. |
void |
setMinimum(int minimum)
This variable holds the minimum value for the progress bar. |
void |
setProgress(int progress)
This variable holds the current progress for the progress bar. |
void |
setText(java.lang.String text)
This variable holds the text for the progress bar. |
void |
setTextAlignment(Qt.Alignment textAlignment)
This variable holds the text alignment for the text in the QProgressBar . |
void |
setTextAlignment(Qt.AlignmentFlag[] textAlignment)
|
void |
setTextVisible(boolean textVisible)
This variable holds a flag indicating whether or not text is visible. |
java.lang.String |
text()
This variable holds the text for the progress bar. |
Qt.Alignment |
textAlignment()
This variable holds the text alignment for the text in the QProgressBar . |
boolean |
textVisible()
This variable holds a flag indicating whether or not text is visible. |
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 QStyleOptionProgressBar()
public QStyleOptionProgressBar(QStyleOptionProgressBar other)
Method Detail |
---|
public final void setMinimum(int minimum)
QProgressBar::minimum
.
public final int minimum()
QProgressBar::minimum
.
public final void setMaximum(int maximum)
QProgressBar::maximum
.
public final int maximum()
QProgressBar::maximum
.
public final void setProgress(int progress)
QProgressBar::value
.
public final int progress()
QProgressBar::value
.
public final void setTextAlignment(Qt.AlignmentFlag[] textAlignment)
public final void setTextAlignment(Qt.Alignment textAlignment)
QProgressBar
. This can be used as a guide on where the text should be in the progress bar. The default value is Qt::AlignLeft
.
public final Qt.Alignment textAlignment()
QProgressBar
. This can be used as a guide on where the text should be in the progress bar. The default value is Qt::AlignLeft
.
public final void setText(java.lang.String text)
QProgressBar::text
.
public final java.lang.String text()
QProgressBar::text
.
public final void setTextVisible(boolean textVisible)
QProgressBar::textVisible
.
public final boolean textVisible()
QProgressBar::textVisible
.
public QStyleOptionProgressBar clone()
clone
in class QStyleOption
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |