Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.trolltech.qt.gui
Class QStyleOptionProgressBarV2

    java.lang.Object
      com.trolltech.qt.QSignalEmitter
          com.trolltech.qt.QtJambiObject
              com.trolltech.qt.gui.QStyleOption
                  com.trolltech.qt.gui.QStyleOptionProgressBar
                      com.trolltech.qt.gui.QStyleOptionProgressBarV2

All Implemented Interfaces:
  QtJambiInterface, java.lang.Cloneable

    public class QStyleOptionProgressBarV2

extends QStyleOptionProgressBar
implements java.lang.Cloneable

The `QStyleOptionProgressBarV2` class is used to describe the parameters necessary for drawing a progress bar in Qt 4.1 or above. An instance of this class has type`SO_ProgressBar` and version 2.

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`. One way to achieve this is to use the `QStyleOptionProgressBarV2` copy constructor. For example:

            QStyleOptionProgressBar progressBarOption = null;
            if ((progressBarOption = (QStyleOptionProgressBar) option) != null) {
                QStyleOptionProgressBarV2 progressBarV2 =
                    new QStyleOptionProgressBarV2(progressBarOption);

                // draw the progress bar using progressBarV2
            }

In the example above: If the `progressBarOption`'s version is 1, the extra members (orientation, invertedAppearance, and bottomToTop) are set to default values for `progressBarV2`. If the `progressBarOption`'s version is 2, the constructor will simply copy the extra members to `progressBarV2`.

For an example demonstrating how style options can be used, see the Styles example.

See also:
  `QStyleOptionProgressBar`, and `QStyleOption`.

Nested Class Summary
`static class` | `QStyleOptionProgressBarV2.StyleOptionType` This enum is used to hold information about the type of the style option, and is defined for each `QStyleOption` subclass.
`static class` | `QStyleOptionProgressBarV2.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
`QStyleOptionProgressBarV2()` Constructs a `QStyleOptionProgressBarV2`, initializing he members variables to their default values.
`QStyleOptionProgressBarV2(QStyleOptionProgressBar other)` Constructs a copy of the `other` style option which can be either of the `QStyleOptionProgressBar` and `QStyleOptionProgressBarV2` types.
`QStyleOptionProgressBarV2(QStyleOptionProgressBarV2 other)` Constructs a copy of the `other` style option.

Method Summary
`boolean` | `bottomToTop()` This variable holds whether the text reads from bottom to top when the progress bar is vertical.
`QStyleOptionProgressBarV2` | `clone()` This method is reimplemented for internal reasons
`static QStyleOptionProgressBarV2` | `fromNativePointer(QNativePointer nativePointer)` This method returns the QStyleOptionProgressBarV2 instance pointed to by `nativePointer`.
`boolean` | `invertedAppearance()` This variable holds whether the progress bar's appearance is inverted.
`static QNativePointer` | `nativePointerArray(QStyleOptionProgressBarV2[] array)` This function returns a QNativePointer that is pointing to the specified QStyleOptionProgressBarV2 array.
`Qt.Orientation` | `orientation()` This variable holds the progress bar's orientation (horizontal or vertical); the default orentation is `Qt::Horizontal` .
`void` | `setBottomToTop(boolean bottomToTop)` This variable holds whether the text reads from bottom to top when the progress bar is vertical.
`void` | `setInvertedAppearance(boolean invertedAppearance)` This variable holds whether the progress bar's appearance is inverted.
`void` | `setOrientation(Qt.Orientation orientation)` This variable holds the progress bar's orientation (horizontal or vertical); the default orentation is `Qt::Horizontal` .

Methods inherited from class com.trolltech.qt.gui.QStyleOptionProgressBar
`maximum, minimum, nativePointerArray, progress, setMaximum, setMinimum, setProgress, setText, setTextAlignment, setTextAlignment, setTextVisible, text, textAlignment, textVisible`

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

### QStyleOptionProgressBarV2

    public QStyleOptionProgressBarV2()

  Constructs a `QStyleOptionProgressBarV2`, initializing he members variables to their default values.

### QStyleOptionProgressBarV2

    public QStyleOptionProgressBarV2(QStyleOptionProgressBar other)

  Constructs a copy of the `other` style option which can be either of the `QStyleOptionProgressBar` and `QStyleOptionProgressBarV2` types.

  If the `other` style option's version is 1, the extra members (orientation, invertedAppearance, and bottomToTop) are set to default values for the new style option. If `other`'s version is 2, the extra members are simply copied.

See also:
  version.

### QStyleOptionProgressBarV2

    public QStyleOptionProgressBarV2(QStyleOptionProgressBarV2 other)

  Constructs a copy of the `other` style option.

Method Detail

### setBottomToTop

    public final void setBottomToTop(boolean bottomToTop)

  This variable holds whether the text reads from bottom to top when the progress bar is vertical. The default value is false.

See also:
  `QProgressBar::textDirection`.

### bottomToTop

    public final boolean bottomToTop()

  This variable holds whether the text reads from bottom to top when the progress bar is vertical. The default value is false.

See also:
  `QProgressBar::textDirection`.

### setInvertedAppearance

    public final void setInvertedAppearance(boolean invertedAppearance)

  This variable holds whether the progress bar's appearance is inverted. The default value is false.

See also:
  `QProgressBar::invertedAppearance`.

### invertedAppearance

    public final boolean invertedAppearance()

  This variable holds whether the progress bar's appearance is inverted. The default value is false.

See also:
  `QProgressBar::invertedAppearance`.

### setOrientation

    public final void setOrientation(Qt.Orientation orientation)

  This variable holds the progress bar's orientation (horizontal or vertical); the default orentation is `Qt::Horizontal` .

See also:
  `QProgressBar::orientation`.

### orientation

    public final Qt.Orientation orientation()

  This variable holds the progress bar's orientation (horizontal or vertical); the default orentation is `Qt::Horizontal` .

See also:
  `QProgressBar::orientation`.

### fromNativePointer

    public static QStyleOptionProgressBarV2 fromNativePointer(QNativePointer nativePointer)

  This method returns the QStyleOptionProgressBarV2 instance pointed to by `nativePointer`.

### nativePointerArray

    public static QNativePointer nativePointerArray(QStyleOptionProgressBarV2[] array)

  This function returns a QNativePointer that is pointing to the specified QStyleOptionProgressBarV2 array.

### clone

    public QStyleOptionProgressBarV2 clone()

  This method is reimplemented for internal reasons

  Overrides:
    `clone` in class `QStyleOptionProgressBar`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD