<class name="QStyleOptionProgressBar" doc="/** <p>The <a href="QStyleOptionProgressBar.html#QStyleOptionProgressBar(int)"><tt>QStyleOptionProgressBar</tt></a> class is used to describe the parameters necessary for drawing a progress bar.</p> <p>Since Qt 4.1, Qt uses the <a href="QStyleOptionProgressBarV2.html"><tt>QStyleOptionProgressBarV2</tt></a> subclass for drawing <a href="QProgressBar.html"><tt>QProgressBar</tt></a>.</p> <p>An instance of the <a href="QStyleOptionProgressBar.html#QStyleOptionProgressBar(int)"><tt>QStyleOptionProgressBar</tt></a> class has type <a href="QStyleOption.html#OptionType-enum"><tt>SO_ProgressBar</tt></a> and version 1.</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"><tt>QStyleOptionProgressBarV2</tt></a>.</p> <p>For an example demonstrating how style options can be used, see the Styles</tt> example.</p> @see <a href="QStyleOptionProgressBarV2.html"><tt>QStyleOptionProgressBarV2</tt></a> @see <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a> */"> <method name="public QStyleOptionProgressBar(com.trolltech.qt.gui.QStyleOptionProgressBar other)" doc="/** <p>Constructs a copy of the <tt>other</tt> style option.</p> */"/> <method name="public QStyleOptionProgressBar()" doc="/** <p>Constructs a <a href="QStyleOptionProgressBar.html#QStyleOptionProgressBar(int)"><tt>QStyleOptionProgressBar</tt></a>, initializing the members variables to their default values.</p> */"/> <method name="protected QStyleOptionProgressBar(int version)" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</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="QStyleOptionProgressBar.html#StyleOptionType-enum"><tt>StyleOptionType</tt></a> */"> <enum-value name="Version" doc="/** <p>1</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="QStyleOptionProgressBar.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 int minimum()" doc="/** <p>Returns the minimum value for the progress bar.</p> <p>This is the minimum value in the progress bar. The default value is 0.</p> @see <a href="QStyleOptionProgressBar.html#setMinimum(int)"><tt>setMinimum</tt></a> @see <tt>QProgressBar::minimum</tt> */"/> <method name="public final void setMinimum(int minimum)" doc="/** <p>Sets the minimum value for the progress bar to <tt>minimum</tt>.</p> <p>This is the minimum value in the progress bar. The default value is 0.</p> @see <tt>QProgressBar::minimum</tt> */"/> <method name="public final int maximum()" doc="/** <p>Returns the maximum value for the progress bar.</p> <p>This is the maximum value in the progress bar. The default value is 0.</p> @see <a href="QStyleOptionProgressBar.html#setMaximum(int)"><tt>setMaximum</tt></a> @see <tt>QProgressBar::maximum</tt> */"/> <method name="public final void setMaximum(int maximum)" doc="/** <p>Sets the maximum value for the progress bar to <tt>maximum</tt>.</p> <p>This is the maximum value in the progress bar. The default value is 0.</p> @see <tt>QProgressBar::maximum</tt> */"/> <method name="public final int progress()" doc="/** <p>Returns the current progress for the progress bar.</p> <p>The current progress. A value of QStyleOptionProgressBar::minimum - 1 indicates that the progress hasn't started yet. The default value is 0.</p> @see <a href="QStyleOptionProgressBar.html#setProgress(int)"><tt>setProgress</tt></a> @see <tt>QProgressBar::value</tt> */"/> <method name="public final void setProgress(int progress)" doc="/** <p>Sets the current progress for the progress bar to <tt>progress</tt>.</p> <p>The current progress. A value of QStyleOptionProgressBar::minimum - 1 indicates that the progress hasn't started yet. The default value is 0.</p> @see <a href="QStyleOptionProgressBar.html#progress()"><tt>progress</tt></a> @see <tt>QProgressBar::value</tt> */"/> <method name="public final com.trolltech.qt.core.Qt.Alignment textAlignment()" doc="/** <p>Returns the text alignment for the text in the <a href="QProgressBar.html"><tt>QProgressBar</tt></a>.</p> <p>This can be used as a guide on where the text should be in the progress bar. The default value is Qt::AlignLeft.</p> @see <a href="QStyleOptionProgressBar.html#setTextAlignment(com.trolltech.qt.core.Qt.Alignment)"><tt>setTextAlignment</tt></a> */"/> <method name="public final void setTextAlignment(com.trolltech.qt.core.Qt.Alignment textAlignment)" doc="/** <p>Sets the text alignment for the text in the <a href="QProgressBar.html"><tt>QProgressBar</tt></a> to <tt>textAlignment</tt>.</p> <p>This can be used as a guide on where the text should be in the progress bar. The default value is Qt::AlignLeft.</p> @see <a href="QStyleOptionProgressBar.html#textAlignment()"><tt>textAlignment</tt></a> */"/> <method name="public final java.lang.String text()" doc="/** <p>Returns the text for the progress bar.</p> <p>The progress bar text is usually just the progress expressed as a string. An empty string indicates that the progress bar has not started yet. The default value is an empty string.</p> @see <a href="QStyleOptionProgressBar.html#setText(java.lang.String)"><tt>setText</tt></a> @see <tt>QProgressBar::text</tt> */"/> <method name="public final void setText(java.lang.String text)" doc="/** <p>Sets the text for the progress bar to <tt>text</tt>.</p> <p>The progress bar text is usually just the progress expressed as a string. An empty string indicates that the progress bar has not started yet. The default value is an empty string.</p> @see <tt>QProgressBar::text</tt> */"/> <method name="public final boolean textVisible()" doc="/** <p>Returns a flag indicating whether or not text is visible.</p> <p>If this flag is true then the text is visible. Otherwise, the text is not visible. The default value is false.</p> @see <a href="QStyleOptionProgressBar.html#setTextVisible(boolean)"><tt>setTextVisible</tt></a> @see <tt>QProgressBar::textVisible</tt> */"/> <method name="public final void setTextVisible(boolean textVisible)" doc="/** <p>Sets a flag indicating whether or not text is visible to <tt>textVisible</tt>.</p> <p>If this flag is true then the text is visible. Otherwise, the text is not visible. The default value is false.</p> @see <tt>QProgressBar::textVisible</tt> */"/> </class>