Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2246

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QStyleOptionProgressBarV2" doc="/**
&lt;p&gt;The &lt;a href=&quot;QStyleOptionProgressBarV2.html#QStyleOptionProgressBarV2()&quot;&gt;&lt;tt&gt;QStyleOptionProgressBarV2&lt;/tt&gt;&lt;/a&gt; class is used to describe the parameters necessary for drawing a progress bar in Qt 4.1 or above.&lt;/p&gt;
&lt;p&gt;An instance of this class has &lt;a href=&quot;QStyleOption.html#type()&quot;&gt;type&lt;/tt&gt;&lt;/a&gt; &lt;a href=&quot;QStyleOption.html#OptionType-enum&quot;&gt;&lt;tt&gt;SO_ProgressBar&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QStyleOption.html#version()&quot;&gt;version&lt;/tt&gt;&lt;/a&gt; 2.&lt;/p&gt;
&lt;p&gt;The type is used internally by &lt;a href=&quot;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt;, 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 &lt;a href=&quot;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt; subclass and your own styles. The version is used by &lt;a href=&quot;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt; subclasses to implement extensions without breaking compatibility. If you use qstyleoption_cast(), you normally don't need to check it.&lt;/p&gt;
&lt;p&gt;If you create your own &lt;a href=&quot;QStyle.html&quot;&gt;&lt;tt&gt;QStyle&lt;/tt&gt;&lt;/a&gt; subclass, you should handle both &lt;a href=&quot;QStyleOptionProgressBar.html#QStyleOptionProgressBar(int)&quot;&gt;&lt;tt&gt;QStyleOptionProgressBar&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QStyleOptionProgressBarV2.html#QStyleOptionProgressBarV2()&quot;&gt;&lt;tt&gt;QStyleOptionProgressBarV2&lt;/tt&gt;&lt;/a&gt;. One way to achieve this is to use the &lt;a href=&quot;QStyleOptionProgressBarV2.html#QStyleOptionProgressBarV2()&quot;&gt;&lt;tt&gt;QStyleOptionProgressBarV2&lt;/tt&gt;&lt;/a&gt; copy constructor. For example:&lt;/p&gt;
&lt;pre&gt;        if (const QStyleOptionProgressBar *progressBarOption =
               qstyleoption_cast&amp;lt;const QStyleOptionProgressBar *&amp;gt;(option)) {
            QStyleOptionProgressBarV2 progressBarV2(*progressBarOption);

            &lt;span class=&quot;comment&quot;&gt;// draw the progress bar using progressBarV2&lt;/span&gt;
        }&lt;/pre&gt;
&lt;p&gt;In the example above: If the &lt;tt&gt;progressBarOption&lt;/tt&gt;'s version is 1, the extra members (&lt;a href=&quot;QStyleOptionProgressBarV2.html#orientation()&quot;&gt;orientation&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QStyleOptionProgressBarV2.html#invertedAppearance()&quot;&gt;&lt;tt&gt;invertedAppearance&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QStyleOptionProgressBarV2.html#bottomToTop()&quot;&gt;&lt;tt&gt;bottomToTop&lt;/tt&gt;&lt;/a&gt;) are set to default values for &lt;tt&gt;progressBarV2&lt;/tt&gt;. If the &lt;tt&gt;progressBarOption&lt;/tt&gt;'s version is 2, the constructor will simply copy the extra members to progressBarV2.&lt;/p&gt;
&lt;p&gt;For an example demonstrating how style options can be used, see the Styles&lt;/tt&gt; example.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionProgressBar.html#QStyleOptionProgressBar(int)&quot;&gt;&lt;tt&gt;QStyleOptionProgressBar&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QStyleOptionProgressBarV2(com.trolltech.qt.gui.QStyleOptionProgressBarV2 other)" doc="/**
&lt;p&gt;Constructs a copy of the &lt;tt&gt;other&lt;/tt&gt; style option.&lt;/p&gt;
 */"/>
    <method name="public QStyleOptionProgressBarV2(com.trolltech.qt.gui.QStyleOptionProgressBar other)" doc="/**
&lt;p&gt;Constructs a copy of the &lt;tt&gt;other&lt;/tt&gt; style option which can be either of the &lt;a href=&quot;QStyleOptionProgressBar.html#QStyleOptionProgressBar(int)&quot;&gt;&lt;tt&gt;QStyleOptionProgressBar&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QStyleOptionProgressBarV2.html#QStyleOptionProgressBarV2()&quot;&gt;&lt;tt&gt;QStyleOptionProgressBarV2&lt;/tt&gt;&lt;/a&gt; types.&lt;/p&gt;
&lt;p&gt;If the &lt;tt&gt;other&lt;/tt&gt; style option's version is 1, the extra members (&lt;a href=&quot;QStyleOptionProgressBarV2.html#orientation()&quot;&gt;orientation&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QStyleOptionProgressBarV2.html#invertedAppearance()&quot;&gt;&lt;tt&gt;invertedAppearance&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QStyleOptionProgressBarV2.html#bottomToTop()&quot;&gt;&lt;tt&gt;bottomToTop&lt;/tt&gt;&lt;/a&gt;) are set to default values for the new style option. If &lt;tt&gt;other&lt;/tt&gt;'s version is 2, the extra members are simply copied.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOption.html#version()&quot;&gt;version&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected QStyleOptionProgressBarV2(int version)" doc="/**
&lt;p&gt;This method is used internally by Qt Jambi.
Do not use it in your applications.&lt;/p&gt;
 */"/>
    <method name="public QStyleOptionProgressBarV2()" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QStyleOptionProgressBarV2.html#QStyleOptionProgressBarV2()&quot;&gt;&lt;tt&gt;QStyleOptionProgressBarV2&lt;/tt&gt;&lt;/a&gt;, initializing he members variables to their default values.&lt;/p&gt;
 */"/>
    <enum name="StyleOptionVersion" doc="/**
&lt;p&gt;This enum is used to hold information about the version of the style option, and is defined for each &lt;a href=&quot;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt; subclass.&lt;/p&gt;
&lt;p&gt;The version is used by &lt;a href=&quot;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt; subclasses to implement extensions without breaking compatibility. If you use qstyleoption_cast(), you normally don't need to check it.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionProgressBarV2.html#StyleOptionType-enum&quot;&gt;&lt;tt&gt;StyleOptionType&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="Version" doc="/**
&lt;p&gt;2&lt;/p&gt;
 */"/>
</enum>
    <enum name="StyleOptionType" doc="/**
&lt;p&gt;This enum is used to hold information about the type of the style option, and is defined for each &lt;a href=&quot;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt; subclass.&lt;/p&gt;
&lt;p&gt;The type is used internally by &lt;a href=&quot;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt;, 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 &lt;a href=&quot;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt; subclass and your own styles.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionProgressBarV2.html#StyleOptionVersion-enum&quot;&gt;&lt;tt&gt;StyleOptionVersion&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="Type" doc="/**
&lt;p&gt;The type of style option provided (&lt;a href=&quot;QStyleOption.html#OptionType-enum&quot;&gt;&lt;tt&gt;SO_ProgressBar&lt;/tt&gt;&lt;/a&gt; for this class).&lt;/p&gt;
 */"/>
</enum>
    <method name="public final boolean bottomToTop()" doc="/**
&lt;p&gt;Returns whether the text reads from bottom to top when the progress bar is vertical.&lt;/p&gt;
&lt;p&gt;The default value is false.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionProgressBarV2.html#setBottomToTop(boolean)&quot;&gt;&lt;tt&gt;setBottomToTop&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QProgressBar::textDirection&lt;/tt&gt; */"/>
    <method name="public final void setBottomToTop(boolean bottomToTop)" doc="/**
&lt;p&gt;Sets whether the text reads from bottom to top when the progress bar is vertical to &lt;tt&gt;bottomToTop&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value is false.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionProgressBarV2.html#bottomToTop()&quot;&gt;&lt;tt&gt;bottomToTop&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QProgressBar::textDirection&lt;/tt&gt; */"/>
    <method name="public final boolean invertedAppearance()" doc="/**
&lt;p&gt;Returns whether the progress bar's appearance is inverted.&lt;/p&gt;
&lt;p&gt;The default value is false.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionProgressBarV2.html#setInvertedAppearance(boolean)&quot;&gt;&lt;tt&gt;setInvertedAppearance&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QProgressBar::invertedAppearance&lt;/tt&gt; */"/>
    <method name="public final void setInvertedAppearance(boolean invertedAppearance)" doc="/**
&lt;p&gt;Sets whether the progress bar's appearance is inverted to &lt;tt&gt;invertedAppearance&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value is false.&lt;/p&gt;

@see &lt;tt&gt;QProgressBar::invertedAppearance&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.Orientation orientation()" doc="/**
&lt;p&gt;Returns the progress bar's orientation (horizontal or vertical); the default orentation is Qt::Horizontal.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionProgressBarV2.html#setOrientation(com.trolltech.qt.core.Qt.Orientation)&quot;&gt;&lt;tt&gt;setOrientation&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QProgressBar::orientation&lt;/tt&gt; */"/>
    <method name="public final void setOrientation(com.trolltech.qt.core.Qt.Orientation orientation)" doc="/**
&lt;p&gt;Sets the progress bar's orientation (horizontal or vertical); the default orentation is Qt::Horizontal to &lt;tt&gt;orientation&lt;/tt&gt;.&lt;/p&gt;

@see &lt;tt&gt;QProgressBar::orientation&lt;/tt&gt; */"/>
</class>