~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to doc/html/qstyleoptionprogressbar.html

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-11-02 18:30:08 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (15.2.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 88.
  • Revision ID: james.westby@ubuntu.com-20091102183008-b6a4gcs128mvfb3m
Tags: upstream-4.6.0~beta1
ImportĀ upstreamĀ versionĀ 4.6.0~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
<!DOCTYPE html
3
3
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
 
<!-- /fasttmp/mkdist-qt-4.5.2-1245473805/qt-x11-opensource-src-4.5.2/src/gui/styles/qstyleoption.cpp -->
 
5
<!-- qstyleoption.cpp -->
6
6
<head>
7
 
  <title>Qt 4.5: QStyleOptionProgressBar Class Reference</title>
 
7
  <title>Qt 4.6: QStyleOptionProgressBar Class Reference</title>
8
8
  <link href="classic.css" rel="stylesheet" type="text/css" />
9
9
</head>
10
10
<body>
 
11
<a name="//apple_ref/cpp/cl//QStyleOptionProgressBar" />
11
12
<table border="0" cellpadding="0" cellspacing="0" width="100%">
12
13
<tr>
13
 
<td align="left" valign="top" width="32"><a href="http://qtsoftware.com/products/qt"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
14
 
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="namespaces.html"><font color="#004faf">All&nbsp;Namespaces</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
15
 
<td align="right" valign="top" width="230"></td></tr></table><h1 class="title">QStyleOptionProgressBar Class Reference<br /><span class="small-subtitle">[<a href="qtgui.html">QtGui</a> module]</span>
 
14
<td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
 
15
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">All&nbsp;Functions</font></a>&nbsp;&middot; <a href="overviews.html"><font color="#004faf">Overviews</font></a></td><td class="searchBar" align="right" valign="center"><form action="http://www.google.com/cse" id="cse-search-box"><div><input type="hidden" name="cx" value="000136343326384750312:dhbxnqlakyu" /><input type="hidden" name="ie" value="UTF-8" /><input type="text" name="q" size="31" /><input type="submit" name="sa" value="Search" /></div></form></td>
 
16
</tr></table><h1 class="title">QStyleOptionProgressBar Class Reference<br /><span class="small-subtitle">[<a href="qtgui.html">QtGui</a> module]</span>
16
17
</h1>
17
18
<p>The QStyleOptionProgressBar class is used to describe the parameters necessary for drawing a progress bar. <a href="#details">More...</a></p>
18
19
<pre> #include &lt;QStyleOptionProgressBar&gt;</pre><p>Inherits <a href="qstyleoption.html">QStyleOption</a>.</p>
20
21
<ul>
21
22
<li><a href="qstyleoptionprogressbar-members.html">List of all members, including inherited members</a></li>
22
23
</ul>
 
24
<hr />
23
25
<a name="public-types"></a>
24
 
<h3>Public Types</h3>
25
 
<ul>
26
 
<li><div class="fn"></div>enum <b><a href="qstyleoptionprogressbar.html#StyleOptionType-enum">StyleOptionType</a></b> { Type }</li>
27
 
<li><div class="fn"></div>enum <b><a href="qstyleoptionprogressbar.html#StyleOptionVersion-enum">StyleOptionVersion</a></b> { Version }</li>
28
 
</ul>
 
26
<h2>Public Types</h2>
 
27
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
28
<tr><td class="memItemLeft" align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><b><a href="qstyleoptionprogressbar.html#StyleOptionType-enum">StyleOptionType</a></b> { Type }</td></tr>
 
29
<tr><td class="memItemLeft" align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><b><a href="qstyleoptionprogressbar.html#StyleOptionVersion-enum">StyleOptionVersion</a></b> { Version }</td></tr>
 
30
</table>
 
31
<hr />
29
32
<a name="public-functions"></a>
30
 
<h3>Public Functions</h3>
31
 
<ul>
32
 
<li><div class="fn"></div><b><a href="qstyleoptionprogressbar.html#QStyleOptionProgressBar">QStyleOptionProgressBar</a></b> ()</li>
33
 
<li><div class="fn"></div><b><a href="qstyleoptionprogressbar.html#QStyleOptionProgressBar-2">QStyleOptionProgressBar</a></b> ( const QStyleOptionProgressBar &amp; <i>other</i> )</li>
34
 
</ul>
35
 
<ul>
36
 
<li><div class="fn"></div>2 public functions inherited from <a href="qstyleoption.html#public-functions">QStyleOption</a></li>
37
 
</ul>
 
33
<h2>Public Functions</h2>
 
34
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
35
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qstyleoptionprogressbar.html#QStyleOptionProgressBar">QStyleOptionProgressBar</a></b> ()</td></tr>
 
36
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qstyleoptionprogressbar.html#QStyleOptionProgressBar-2">QStyleOptionProgressBar</a></b> ( const QStyleOptionProgressBar &amp; <i>other</i> )</td></tr>
 
37
</table>
 
38
<ul>
 
39
<li><div bar="2" class="fn"></div>2 public functions inherited from <a href="qstyleoption.html#public-functions">QStyleOption</a></li>
 
40
</ul>
 
41
<hr />
38
42
<a name="public-variables"></a>
39
 
<h3>Public Variables</h3>
40
 
<ul>
41
 
<li><div class="fn"></div>int <b><a href="qstyleoptionprogressbar.html#maximum-var">maximum</a></b></li>
42
 
<li><div class="fn"></div>int <b><a href="qstyleoptionprogressbar.html#minimum-var">minimum</a></b></li>
43
 
<li><div class="fn"></div>int <b><a href="qstyleoptionprogressbar.html#progress-var">progress</a></b></li>
44
 
<li><div class="fn"></div>QString <b><a href="qstyleoptionprogressbar.html#text-var">text</a></b></li>
45
 
<li><div class="fn"></div>Qt::Alignment <b><a href="qstyleoptionprogressbar.html#textAlignment-var">textAlignment</a></b></li>
46
 
<li><div class="fn"></div>bool <b><a href="qstyleoptionprogressbar.html#textVisible-var">textVisible</a></b></li>
47
 
</ul>
48
 
<ul>
49
 
<li><div class="fn"></div>7 public variables inherited from <a href="qstyleoption.html#public-variables">QStyleOption</a></li>
 
43
<h2>Public Variables</h2>
 
44
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
45
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="qstyleoptionprogressbar.html#maximum-var">maximum</a></b></td></tr>
 
46
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="qstyleoptionprogressbar.html#minimum-var">minimum</a></b></td></tr>
 
47
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="qstyleoptionprogressbar.html#progress-var">progress</a></b></td></tr>
 
48
<tr><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><b><a href="qstyleoptionprogressbar.html#text-var">text</a></b></td></tr>
 
49
<tr><td class="memItemLeft" align="right" valign="top">Qt::Alignment </td><td class="memItemRight" valign="bottom"><b><a href="qstyleoptionprogressbar.html#textAlignment-var">textAlignment</a></b></td></tr>
 
50
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qstyleoptionprogressbar.html#textVisible-var">textVisible</a></b></td></tr>
 
51
</table>
 
52
<ul>
 
53
<li><div bar="2" class="fn"></div>7 public variables inherited from <a href="qstyleoption.html#public-variables">QStyleOption</a></li>
50
54
</ul>
51
55
<a name="details"></a>
52
56
<hr />
60
64
<p>See also <a href="qstyleoptionprogressbarv2.html">QStyleOptionProgressBarV2</a> and <a href="qstyleoption.html">QStyleOption</a>.</p>
61
65
<hr />
62
66
<h2>Member Type Documentation</h2>
 
67
<a name="//apple_ref/cpp/tag/QStyleOptionProgressBar/StyleOptionType" />
 
68
<a name="//apple_ref/cpp/econst/QStyleOptionProgressBar/Type" />
63
69
<h3 class="fn"><a name="StyleOptionType-enum"></a>enum QStyleOptionProgressBar::StyleOptionType</h3>
64
70
<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</a> subclass.</p>
65
 
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
 
71
<p><table class="valuelist" border="1" cellpadding="2" cellspacing="1" width="100%">
66
72
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
67
73
<tr><td valign="top"><tt>QStyleOptionProgressBar::Type</tt></td><td align="center" valign="top"><tt>SO_ProgressBar</tt></td><td valign="top">The type of style option provided (<a href="qstyleoption.html#OptionType-enum">SO_ProgressBar</a> for this class).</td></tr>
68
74
</table></p>
69
75
<p>The type is used internally by <a href="qstyleoption.html">QStyleOption</a>, its subclasses, and <a href="qstyleoption.html#qstyleoption_cast">qstyleoption_cast</a>() 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</a> subclass and your own styles.</p>
70
76
<p>See also <a href="qstyleoptionprogressbar.html#StyleOptionVersion-enum">StyleOptionVersion</a>.</p>
 
77
<a name="//apple_ref/cpp/tag/QStyleOptionProgressBar/StyleOptionVersion" />
 
78
<a name="//apple_ref/cpp/econst/QStyleOptionProgressBar/Version" />
71
79
<h3 class="fn"><a name="StyleOptionVersion-enum"></a>enum QStyleOptionProgressBar::StyleOptionVersion</h3>
72
80
<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</a> subclass.</p>
73
 
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
 
81
<p><table class="valuelist" border="1" cellpadding="2" cellspacing="1" width="100%">
74
82
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
75
83
<tr><td valign="top"><tt>QStyleOptionProgressBar::Version</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">1</td></tr>
76
84
</table></p>
78
86
<p>See also <a href="qstyleoptionprogressbar.html#StyleOptionType-enum">StyleOptionType</a>.</p>
79
87
<hr />
80
88
<h2>Member Function Documentation</h2>
 
89
<a name="//apple_ref/cpp/instm/QStyleOptionProgressBar/QStyleOptionProgressBar" />
81
90
<h3 class="fn"><a name="QStyleOptionProgressBar"></a>QStyleOptionProgressBar::QStyleOptionProgressBar ()</h3>
82
91
<p>Constructs a <a href="qstyleoptionprogressbar.html">QStyleOptionProgressBar</a>, initializing the members variables to their default values.</p>
83
92
<h3 class="fn"><a name="QStyleOptionProgressBar-2"></a>QStyleOptionProgressBar::QStyleOptionProgressBar ( const QStyleOptionProgressBar &amp; <i>other</i> )</h3>
84
93
<p>Constructs a copy of the <i>other</i> style option.</p>
85
94
<hr />
86
95
<h2>Member Variable Documentation</h2>
 
96
<a name="//apple_ref/cpp/data/QStyleOptionProgressBar/maximum" />
87
97
<h3 class="fn"><a name="maximum-var"></a>int QStyleOptionProgressBar::maximum</h3>
88
98
<p>This variable holds the maximum value for the progress bar.</p>
89
99
<p>This is the maximum value in the progress bar. The default value is 0.</p>
90
100
<p>See also <a href="qprogressbar.html#maximum-prop">QProgressBar::maximum</a>.</p>
 
101
<a name="//apple_ref/cpp/data/QStyleOptionProgressBar/minimum" />
91
102
<h3 class="fn"><a name="minimum-var"></a>int QStyleOptionProgressBar::minimum</h3>
92
103
<p>This variable holds the minimum value for the progress bar.</p>
93
104
<p>This is the minimum value in the progress bar. The default value is 0.</p>
94
105
<p>See also <a href="qprogressbar.html#minimum-prop">QProgressBar::minimum</a>.</p>
 
106
<a name="//apple_ref/cpp/data/QStyleOptionProgressBar/progress" />
95
107
<h3 class="fn"><a name="progress-var"></a>int QStyleOptionProgressBar::progress</h3>
96
108
<p>This variable holds the current progress for the progress bar.</p>
97
109
<p>The current progress. A value of <a href="qstyleoptionprogressbar.html#minimum-var">QStyleOptionProgressBar::minimum</a> - 1 indicates that the progress hasn't started yet. The default value is 0.</p>
98
110
<p>See also <a href="qprogressbar.html#value-prop">QProgressBar::value</a>.</p>
 
111
<a name="//apple_ref/cpp/data/QStyleOptionProgressBar/text" />
99
112
<h3 class="fn"><a name="text-var"></a><a href="qstring.html">QString</a> QStyleOptionProgressBar::text</h3>
100
113
<p>This variable holds the text for the progress bar.</p>
101
114
<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>
102
115
<p>See also <a href="qprogressbar.html#text-prop">QProgressBar::text</a>.</p>
 
116
<a name="//apple_ref/cpp/data/QStyleOptionProgressBar/textAlignment" />
103
117
<h3 class="fn"><a name="textAlignment-var"></a><a href="qt.html#AlignmentFlag-enum">Qt::Alignment</a> QStyleOptionProgressBar::textAlignment</h3>
104
118
<p>This variable holds the text alignment for the text in the QProgressBar.</p>
105
119
<p>This can be used as a guide on where the text should be in the progress bar. The default value is <a href="qt.html#AlignmentFlag-enum">Qt::AlignLeft</a>.</p>
 
120
<a name="//apple_ref/cpp/data/QStyleOptionProgressBar/textVisible" />
106
121
<h3 class="fn"><a name="textVisible-var"></a>bool QStyleOptionProgressBar::textVisible</h3>
107
122
<p>This variable holds a flag indicating whether or not text is visible.</p>
108
123
<p>If this flag is true then the text is visible. Otherwise, the text is not visible. The default value is false.</p>
109
124
<p>See also <a href="qprogressbar.html#textVisible-prop">QProgressBar::textVisible</a>.</p>
110
125
<p /><address><hr /><div align="center">
111
126
<table width="100%" cellspacing="0" border="0"><tr class="address">
112
 
<td width="30%" align="left">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies)</td>
113
 
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
114
 
<td width="30%" align="right"><div align="right">Qt 4.5.2</div></td>
115
 
</tr></table></div></address></body>
 
127
<td width="40%" align="left">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies)</td>
 
128
<td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td>
 
129
<td width="40%" align="right"><div align="right">Qt 4.6.0</div></td>
 
130
<script type="text/javascript" src="http://www.google.com/jsapi"></script><script type="text/javascript">google.load("elements", "1", {packages: "transliteration"});</script><script type="text/javascript" src="http://www.google.com/coop/cse/t13n?form=cse-search-box&t13n_langs=en"></script><script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script></tr></table></div></address></body>
116
131
</html>