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

« back to all changes in this revision

Viewing changes to doc/html/qstyleoptiontab.html

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-08-24 04:09:09 UTC
  • Revision ID: james.westby@ubuntu.com-20050824040909-xmxe9jfr4a0w5671
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="iso-8859-1"?>
 
2
<!DOCTYPE html
 
3
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
 
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
5
<!-- /tmp/qt-4.0.0-espenr-1119621036935/qt-x11-opensource-desktop-4.0.0/src/gui/styles/qstyleoption.cpp -->
 
6
<head>
 
7
    <title>Qt 4.0: QStyleOptionTab Class Reference</title>
 
8
    <style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
 
9
a:link { color: #004faf; text-decoration: none }
 
10
a:visited { color: #672967; text-decoration: none }
 
11
td.postheader { font-family: sans-serif }
 
12
tr.address { font-family: sans-serif }
 
13
body { background: #ffffff; color: black; }</style>
 
14
</head>
 
15
<body>
 
16
<table border="0" cellpadding="0" cellspacing="0" width="100%">
 
17
<tr>
 
18
<td align="left" valign="top" width="32"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></td>
 
19
<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="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="annotated.html"><font color="#004faf">Annotated</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
 
20
<td align="right" valign="top" width="230"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></td></tr></table><h1 align="center">QStyleOptionTab Class Reference</h1>
 
21
<p>The QStyleOptionTab class is used to describe the parameters for drawing a tab bar. <a href="#details">More...</a></p>
 
22
<pre>#include &lt;QStyleOptionTab&gt;</pre><p>Part of the <a href="qtgui.html">QtGui</a> module.</p>
 
23
<p>Inherits <a href="qstyleoption.html">QStyleOption</a>.</p>
 
24
<ul>
 
25
<li><a href="qstyleoptiontab-members.html">List of all members, including inherited members</a></li>
 
26
</ul>
 
27
<a name="public-types"></a>
 
28
<h3>Public Types</h3>
 
29
<ul>
 
30
<li><div class="fn"/>enum <b><a href="qstyleoptiontab.html#CornerWidget-enum">CornerWidget</a></b> { NoCornerWidgets, LeftCornerWidget, RightCornerWidget }</li>
 
31
<li><div class="fn"/>flags <b><a href="qstyleoptiontab.html#CornerWidget-enum">CornerWidgets</a></b></li>
 
32
<li><div class="fn"/>enum <b><a href="qstyleoptiontab.html#SelectedPosition-enum">SelectedPosition</a></b> { NotAdjacent, NextIsSelected, PreviousIsSelected }</li>
 
33
<li><div class="fn"/>enum <b><a href="qstyleoptiontab.html#TabPosition-enum">TabPosition</a></b> { Beginning, Middle, End, OnlyOneTab }</li>
 
34
</ul>
 
35
<a name="public-functions"></a>
 
36
<h3>Public Functions</h3>
 
37
<ul>
 
38
<li><div class="fn"/><b><a href="qstyleoptiontab.html#QStyleOptionTab">QStyleOptionTab</a></b> ()</li>
 
39
<li><div class="fn"/><b><a href="qstyleoptiontab.html#QStyleOptionTab-2">QStyleOptionTab</a></b> ( const QStyleOptionTab &amp; <i>other</i> )</li>
 
40
</ul>
 
41
<ul>
 
42
<li><div class="fn"/>2 public functions inherited from <a href="qstyleoption.html#public-functions">QStyleOption</a></li>
 
43
</ul>
 
44
<a name="public-variables"></a>
 
45
<h3>Public Variables</h3>
 
46
<ul>
 
47
<li><div class="fn"/>CornerWidgets <b><a href="qstyleoptiontab.html#cornerWidgets-var">cornerWidgets</a></b></li>
 
48
<li><div class="fn"/>QIcon <b><a href="qstyleoptiontab.html#icon-var">icon</a></b></li>
 
49
<li><div class="fn"/>TabPosition <b><a href="qstyleoptiontab.html#position-var">position</a></b></li>
 
50
<li><div class="fn"/>int <b><a href="qstyleoptiontab.html#row-var">row</a></b></li>
 
51
<li><div class="fn"/>SelectedPosition <b><a href="qstyleoptiontab.html#selectedPosition-var">selectedPosition</a></b></li>
 
52
<li><div class="fn"/>QTabBar::Shape <b><a href="qstyleoptiontab.html#shape-var">shape</a></b></li>
 
53
<li><div class="fn"/>QString <b><a href="qstyleoptiontab.html#text-var">text</a></b></li>
 
54
</ul>
 
55
<ul>
 
56
<li><div class="fn"/>7 public variables inherited from <a href="qstyleoption.html#public-variables">QStyleOption</a></li>
 
57
</ul>
 
58
<a name="static-public-members"></a>
 
59
<h3>Static Public Members</h3>
 
60
<ul>
 
61
<li><div class="fn"/>const int <b><a href="qstyleoptiontab.html#Type-var">Type</a></b></li>
 
62
<li><div class="fn"/>const int <b><a href="qstyleoptiontab.html#Version-var">Version</a></b></li>
 
63
</ul>
 
64
<ul>
 
65
<li><div class="fn"/>2 static public members inherited from <a href="qstyleoption.html#static-public-members">QStyleOption</a></li>
 
66
</ul>
 
67
<a name="details"></a>
 
68
<hr />
 
69
<h2>Detailed Description</h2>
 
70
<p>The QStyleOptionTab class is used to describe the parameters for drawing a tab bar.</p>
 
71
<p>The QStyleOptionTab class is used for drawing <a href="qtabbar.html">QTabBar</a> and the pane for <a href="qtabwidget.html">QTabWidget</a>.</p>
 
72
<hr />
 
73
<h2>Member Type Documentation</h2>
 
74
<h3 class="flags"><a name="CornerWidget-enum"></a>enum QStyleOptionTab::CornerWidget<br />flags QStyleOptionTab::CornerWidgets</h3>
 
75
<p>These flags indicate the corner widgets in a tab.</p>
 
76
<table border="1" cellpadding="2" cellspacing="1" width="100%">
 
77
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
 
78
<tr><td valign="top"><tt>QStyleOptionTab::NoCornerWidgets</tt></td><td align="center" valign="top"><tt>0x00</tt></td><td valign="top">There are no corner widgets</td></tr>
 
79
<tr><td valign="top"><tt>QStyleOptionTab::LeftCornerWidget</tt></td><td align="center" valign="top"><tt>0x01</tt></td><td valign="top">Left corner widget</td></tr>
 
80
<tr><td valign="top"><tt>QStyleOptionTab::RightCornerWidget</tt></td><td align="center" valign="top"><tt>0x02</tt></td><td valign="top">Right corner widget</td></tr>
 
81
</table>
 
82
<p>The CornerWidgets type is a typedef for <a href="qflags.html">QFlags</a>&lt;CornerWidget&gt;. It stores an OR combination of CornerWidget values.</p>
 
83
<p>See also <a href="qstyleoptiontab.html#cornerWidgets-var">cornerWidgets</a>.</p>
 
84
<h3 class="fn"><a name="SelectedPosition-enum"></a>enum QStyleOptionTab::SelectedPosition</h3>
 
85
<table border="1" cellpadding="2" cellspacing="1" width="100%">
 
86
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
 
87
<tr><td valign="top"><tt>QStyleOptionTab::NotAdjacent</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">The tab is not adjacent to a selected tab (or is the selected tab).</td></tr>
 
88
<tr><td valign="top"><tt>QStyleOptionTab::NextIsSelected</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">The next tab (typically the tab on the right) is selected.</td></tr>
 
89
<tr><td valign="top"><tt>QStyleOptionTab::PreviousIsSelected</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">The previous tab (typically the tab on the left) is selected.</td></tr>
 
90
</table>
 
91
<p>See also <a href="qstyleoptiontab.html#selectedPosition-var">selectedPosition</a>.</p>
 
92
<h3 class="fn"><a name="TabPosition-enum"></a>enum QStyleOptionTab::TabPosition</h3>
 
93
<table border="1" cellpadding="2" cellspacing="1" width="100%">
 
94
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
 
95
<tr><td valign="top"><tt>QStyleOptionTab::Beginning</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">The tab is the first tab in the tab bar.</td></tr>
 
96
<tr><td valign="top"><tt>QStyleOptionTab::Middle</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">The tab is neither the first nor the last tab in the tab bar.</td></tr>
 
97
<tr><td valign="top"><tt>QStyleOptionTab::End</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">The tab is the last tab in the tab bar.</td></tr>
 
98
<tr><td valign="top"><tt>QStyleOptionTab::OnlyOneTab</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">The tab is both the first and the last tab in the tab bar.</td></tr>
 
99
</table>
 
100
<p>See also <a href="qstyleoptiontab.html#position-var">position</a>.</p>
 
101
<hr />
 
102
<h2>Member Function Documentation</h2>
 
103
<h3 class="fn"><a name="QStyleOptionTab"></a>QStyleOptionTab::QStyleOptionTab ()</h3>
 
104
<p>Constructs a <a href="qstyleoptiontab.html">QStyleOptionTab</a> object. The members variables are initialized to default values.</p>
 
105
<h3 class="fn"><a name="QStyleOptionTab-2"></a>QStyleOptionTab::QStyleOptionTab ( const QStyleOptionTab &amp; <i>other</i> )</h3>
 
106
<p>Constructs a copy of the <i>other</i> style option.</p>
 
107
<hr />
 
108
<h2>Member Variable Documentation</h2>
 
109
<h3 class="fn"><a name="Type-var"></a>const int QStyleOptionTab::Type</h3>
 
110
<p>Equals <a href="qstyleoption.html#OptionType-enum">SO_Tab</a>.</p>
 
111
<h3 class="fn"><a name="Version-var"></a>const int QStyleOptionTab::Version</h3>
 
112
<p>Equals 1.</p>
 
113
<h3 class="fn"><a name="cornerWidgets-var"></a><a href="qstyleoptiontab.html#CornerWidget-enum">CornerWidgets</a> QStyleOptionTab::cornerWidgets</h3>
 
114
<p>This variable holds information on the cornerwidgets of the tab bar.</p>
 
115
<p>See also <a href="qstyleoptiontab.html#CornerWidget-enum">CornerWidget</a>.</p>
 
116
<h3 class="fn"><a name="icon-var"></a><a href="qicon.html">QIcon</a> QStyleOptionTab::icon</h3>
 
117
<p>This variable holds the icon for the tab.</p>
 
118
<h3 class="fn"><a name="position-var"></a><a href="qstyleoptiontab.html#TabPosition-enum">TabPosition</a> QStyleOptionTab::position</h3>
 
119
<p>This variable holds the position of the tab in the tab bar.</p>
 
120
<h3 class="fn"><a name="row-var"></a>int QStyleOptionTab::row</h3>
 
121
<p>This variable holds which row the tab is currently in.</p>
 
122
<p>0 indicates the front row.</p>
 
123
<p>Currently this property can only be 0.</p>
 
124
<h3 class="fn"><a name="selectedPosition-var"></a><a href="qstyleoptiontab.html#SelectedPosition-enum">SelectedPosition</a> QStyleOptionTab::selectedPosition</h3>
 
125
<p>This variable holds the position of the selected tab in relation to this tab. Some styles need to draw a tab differently depending on whether or not it is adjacent to the selected tab.</p>
 
126
<h3 class="fn"><a name="shape-var"></a><a href="qtabbar.html#Shape-enum">QTabBar::Shape</a> QStyleOptionTab::shape</h3>
 
127
<p>This variable holds the tab shape used to draw the tab.</p>
 
128
<p>See also <a href="qtabbar.html#Shape-enum">QTabBar::Shape</a>.</p>
 
129
<h3 class="fn"><a name="text-var"></a><a href="qstring.html">QString</a> QStyleOptionTab::text</h3>
 
130
<p>This variable holds the text of the tab.</p>
 
131
<p /><address><hr /><div align="center">
 
132
<table width="100%" cellspacing="0" border="0"><tr class="address">
 
133
<td width="30%">Copyright &copy; 2005 <a href="trolltech.html">Trolltech</a></td>
 
134
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
 
135
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
 
136
</tr></table></div></address></body>
 
137
</html>