<class name="QStyleOptionProgressBarV2" doc="/** <p>The <a href="QStyleOptionProgressBarV2.html#QStyleOptionProgressBarV2()"><tt>QStyleOptionProgressBarV2</tt></a> class is used to describe the parameters necessary for drawing a progress bar in Qt 4.1 or above.</p> <p>An instance of this class has <a href="QStyleOption.html#type()">type</tt></a> <a href="QStyleOption.html#OptionType-enum"><tt>SO_ProgressBar</tt></a> and <a href="QStyleOption.html#version()">version</tt></a> 2.</p> <p>The type is used internally by <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a>, 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 <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a> subclass and your own styles. The version is used by <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a> subclasses to implement extensions without breaking compatibility. If you use qstyleoption_cast(), you normally don't need to check it.</p> <p>If you create your own <a href="QStyle.html"><tt>QStyle</tt></a> subclass, you should handle both <a href="QStyleOptionProgressBar.html#QStyleOptionProgressBar(int)"><tt>QStyleOptionProgressBar</tt></a> and <a href="QStyleOptionProgressBarV2.html#QStyleOptionProgressBarV2()"><tt>QStyleOptionProgressBarV2</tt></a>. One way to achieve this is to use the <a href="QStyleOptionProgressBarV2.html#QStyleOptionProgressBarV2()"><tt>QStyleOptionProgressBarV2</tt></a> copy constructor. For example:</p> <pre> if (const QStyleOptionProgressBar *progressBarOption = qstyleoption_cast&lt;const QStyleOptionProgressBar *&gt;(option)) { QStyleOptionProgressBarV2 progressBarV2(*progressBarOption); <span class="comment">// draw the progress bar using progressBarV2</span> }</pre> <p>In the example above: If the <tt>progressBarOption</tt>'s version is 1, the extra members (<a href="QStyleOptionProgressBarV2.html#orientation()">orientation</tt></a>, <a href="QStyleOptionProgressBarV2.html#invertedAppearance()"><tt>invertedAppearance</tt></a>, and <a href="QStyleOptionProgressBarV2.html#bottomToTop()"><tt>bottomToTop</tt></a>) are set to default values for <tt>progressBarV2</tt>. If the <tt>progressBarOption</tt>'s version is 2, the constructor will simply copy the extra members to progressBarV2.</p> <p>For an example demonstrating how style options can be used, see the Styles</tt> example.</p> @see <a href="QStyleOptionProgressBar.html#QStyleOptionProgressBar(int)"><tt>QStyleOptionProgressBar</tt></a> @see <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a> */"> <method name="public QStyleOptionProgressBarV2(com.trolltech.qt.gui.QStyleOptionProgressBarV2 other)" doc="/** <p>Constructs a copy of the <tt>other</tt> style option.</p> */"/> <method name="public QStyleOptionProgressBarV2(com.trolltech.qt.gui.QStyleOptionProgressBar other)" doc="/** <p>Constructs a copy of the <tt>other</tt> style option which can be either of the <a href="QStyleOptionProgressBar.html#QStyleOptionProgressBar(int)"><tt>QStyleOptionProgressBar</tt></a> and <a href="QStyleOptionProgressBarV2.html#QStyleOptionProgressBarV2()"><tt>QStyleOptionProgressBarV2</tt></a> types.</p> <p>If the <tt>other</tt> style option's version is 1, the extra members (<a href="QStyleOptionProgressBarV2.html#orientation()">orientation</tt></a>, <a href="QStyleOptionProgressBarV2.html#invertedAppearance()"><tt>invertedAppearance</tt></a>, and <a href="QStyleOptionProgressBarV2.html#bottomToTop()"><tt>bottomToTop</tt></a>) are set to default values for the new style option. If <tt>other</tt>'s version is 2, the extra members are simply copied.</p> @see <a href="QStyleOption.html#version()">version</tt></a> */"/> <method name="protected QStyleOptionProgressBarV2(int version)" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> */"/> <method name="public QStyleOptionProgressBarV2()" doc="/** <p>Constructs a <a href="QStyleOptionProgressBarV2.html#QStyleOptionProgressBarV2()"><tt>QStyleOptionProgressBarV2</tt></a>, initializing he members variables to their default values.</p> */"/> <enum name="StyleOptionVersion" doc="/** <p>This enum is used to hold information about the version of the style option, and is defined for each <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a> subclass.</p> <p>The version is used by <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a> subclasses to implement extensions without breaking compatibility. If you use qstyleoption_cast(), you normally don't need to check it.</p> @see <a href="QStyleOptionProgressBarV2.html#StyleOptionType-enum"><tt>StyleOptionType</tt></a> */"> <enum-value name="Version" doc="/** <p>2</p> */"/> </enum> <enum name="StyleOptionType" doc="/** <p>This enum is used to hold information about the type of the style option, and is defined for each <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a> subclass.</p> <p>The type is used internally by <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a>, 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 <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a> subclass and your own styles.</p> @see <a href="QStyleOptionProgressBarV2.html#StyleOptionVersion-enum"><tt>StyleOptionVersion</tt></a> */"> <enum-value name="Type" doc="/** <p>The type of style option provided (<a href="QStyleOption.html#OptionType-enum"><tt>SO_ProgressBar</tt></a> for this class).</p> */"/> </enum> <method name="public final boolean bottomToTop()" doc="/** <p>Returns whether the text reads from bottom to top when the progress bar is vertical.</p> <p>The default value is false.</p> @see <a href="QStyleOptionProgressBarV2.html#setBottomToTop(boolean)"><tt>setBottomToTop</tt></a> @see <tt>QProgressBar::textDirection</tt> */"/> <method name="public final void setBottomToTop(boolean bottomToTop)" doc="/** <p>Sets whether the text reads from bottom to top when the progress bar is vertical to <tt>bottomToTop</tt>.</p> <p>The default value is false.</p> @see <a href="QStyleOptionProgressBarV2.html#bottomToTop()"><tt>bottomToTop</tt></a> @see <tt>QProgressBar::textDirection</tt> */"/> <method name="public final boolean invertedAppearance()" doc="/** <p>Returns whether the progress bar's appearance is inverted.</p> <p>The default value is false.</p> @see <a href="QStyleOptionProgressBarV2.html#setInvertedAppearance(boolean)"><tt>setInvertedAppearance</tt></a> @see <tt>QProgressBar::invertedAppearance</tt> */"/> <method name="public final void setInvertedAppearance(boolean invertedAppearance)" doc="/** <p>Sets whether the progress bar's appearance is inverted to <tt>invertedAppearance</tt>.</p> <p>The default value is false.</p> @see <tt>QProgressBar::invertedAppearance</tt> */"/> <method name="public final com.trolltech.qt.core.Qt.Orientation orientation()" doc="/** <p>Returns the progress bar's orientation (horizontal or vertical); the default orentation is Qt::Horizontal.</p> @see <a href="QStyleOptionProgressBarV2.html#setOrientation(com.trolltech.qt.core.Qt.Orientation)"><tt>setOrientation</tt></a> @see <tt>QProgressBar::orientation</tt> */"/> <method name="public final void setOrientation(com.trolltech.qt.core.Qt.Orientation orientation)" doc="/** <p>Sets the progress bar's orientation (horizontal or vertical); the default orentation is Qt::Horizontal to <tt>orientation</tt>.</p> @see <tt>QProgressBar::orientation</tt> */"/> </class>