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

« back to all changes in this revision

Viewing changes to doc/html/qstyleoptionviewitem.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: QStyleOptionViewItem 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">QStyleOptionViewItem Class Reference</h1>
 
21
<p>The QStyleOptionViewItem class is used to describe the parameters used to draw an item in a view widget. <a href="#details">More...</a></p>
 
22
<pre>#include &lt;QStyleOptionViewItem&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="qstyleoptionviewitem-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="qstyleoptionviewitem.html#Position-enum">Position</a></b> { Left, Right, Top, Bottom }</li>
 
31
</ul>
 
32
<a name="public-functions"></a>
 
33
<h3>Public Functions</h3>
 
34
<ul>
 
35
<li><div class="fn"/><b><a href="qstyleoptionviewitem.html#QStyleOptionViewItem">QStyleOptionViewItem</a></b> ()</li>
 
36
<li><div class="fn"/><b><a href="qstyleoptionviewitem.html#QStyleOptionViewItem-2">QStyleOptionViewItem</a></b> ( const QStyleOptionViewItem &amp; <i>other</i> )</li>
 
37
</ul>
 
38
<ul>
 
39
<li><div class="fn"/>2 public functions inherited from <a href="qstyleoption.html#public-functions">QStyleOption</a></li>
 
40
</ul>
 
41
<a name="public-variables"></a>
 
42
<h3>Public Variables</h3>
 
43
<ul>
 
44
<li><div class="fn"/>Qt::Alignment <b><a href="qstyleoptionviewitem.html#decorationAlignment-var">decorationAlignment</a></b></li>
 
45
<li><div class="fn"/>Position <b><a href="qstyleoptionviewitem.html#decorationPosition-var">decorationPosition</a></b></li>
 
46
<li><div class="fn"/>QSize <b><a href="qstyleoptionviewitem.html#decorationSize-var">decorationSize</a></b></li>
 
47
<li><div class="fn"/>Qt::Alignment <b><a href="qstyleoptionviewitem.html#displayAlignment-var">displayAlignment</a></b></li>
 
48
<li><div class="fn"/>QFont <b><a href="qstyleoptionviewitem.html#font-var">font</a></b></li>
 
49
<li><div class="fn"/>bool <b><a href="qstyleoptionviewitem.html#showDecorationSelected-var">showDecorationSelected</a></b></li>
 
50
<li><div class="fn"/>Qt::TextElideMode <b><a href="qstyleoptionviewitem.html#textElideMode-var">textElideMode</a></b></li>
 
51
</ul>
 
52
<ul>
 
53
<li><div class="fn"/>7 public variables inherited from <a href="qstyleoption.html#public-variables">QStyleOption</a></li>
 
54
</ul>
 
55
<a name="static-public-members"></a>
 
56
<h3>Static Public Members</h3>
 
57
<ul>
 
58
<li><div class="fn"/>const int <b><a href="qstyleoptionviewitem.html#Type-var">Type</a></b></li>
 
59
<li><div class="fn"/>const int <b><a href="qstyleoptionviewitem.html#Version-var">Version</a></b></li>
 
60
</ul>
 
61
<ul>
 
62
<li><div class="fn"/>2 static public members inherited from <a href="qstyleoption.html#static-public-members">QStyleOption</a></li>
 
63
</ul>
 
64
<a name="details"></a>
 
65
<hr />
 
66
<h2>Detailed Description</h2>
 
67
<p>The QStyleOptionViewItem class is used to describe the parameters used to draw an item in a view widget.</p>
 
68
<p>The QStyleOptionViewItem class is used by Qt's model/view classes to draw their items.</p>
 
69
<p>See also <a href="model-view-programming.html">Model/View Programming</a>.</p>
 
70
<hr />
 
71
<h2>Member Type Documentation</h2>
 
72
<h3 class="fn"><a name="Position-enum"></a>enum QStyleOptionViewItem::Position</h3>
 
73
<p>This enum describes the position of the item's decoration.</p>
 
74
<table border="1" cellpadding="2" cellspacing="1" width="100%">
 
75
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
 
76
<tr><td valign="top"><tt>QStyleOptionViewItem::Left</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">On the left of the text.</td></tr>
 
77
<tr><td valign="top"><tt>QStyleOptionViewItem::Right</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">On the right of the text.</td></tr>
 
78
<tr><td valign="top"><tt>QStyleOptionViewItem::Top</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">Above the text.</td></tr>
 
79
<tr><td valign="top"><tt>QStyleOptionViewItem::Bottom</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">Below the text.</td></tr>
 
80
</table>
 
81
<p>See also <a href="qstyleoptionviewitem.html#decorationPosition-var">decorationPosition</a>.</p>
 
82
<hr />
 
83
<h2>Member Function Documentation</h2>
 
84
<h3 class="fn"><a name="QStyleOptionViewItem"></a>QStyleOptionViewItem::QStyleOptionViewItem ()</h3>
 
85
<p>Constructs a <a href="qstyleoptionviewitem.html">QStyleOptionViewItem</a>. The members variables are initialized to default values.</p>
 
86
<h3 class="fn"><a name="QStyleOptionViewItem-2"></a>QStyleOptionViewItem::QStyleOptionViewItem ( const QStyleOptionViewItem &amp; <i>other</i> )</h3>
 
87
<p>Constructs a copy of the <i>other</i> style option.</p>
 
88
<hr />
 
89
<h2>Member Variable Documentation</h2>
 
90
<h3 class="fn"><a name="Type-var"></a>const int QStyleOptionViewItem::Type</h3>
 
91
<p>Equals <a href="qstyleoption.html#OptionType-enum">SO_ViewItem</a>.</p>
 
92
<h3 class="fn"><a name="Version-var"></a>const int QStyleOptionViewItem::Version</h3>
 
93
<p>Equals 1.</p>
 
94
<h3 class="fn"><a name="decorationAlignment-var"></a><a href="qt.html#AlignmentFlag-enum">Qt::Alignment</a> QStyleOptionViewItem::decorationAlignment</h3>
 
95
<p>This variable holds the alignment of the decoration for the item.</p>
 
96
<h3 class="fn"><a name="decorationPosition-var"></a><a href="qstyleoptionviewitem.html#Position-enum">Position</a> QStyleOptionViewItem::decorationPosition</h3>
 
97
<p>This variable holds the position of the decoration for the item.</p>
 
98
<p>See also <a href="qstyleoptionviewitem.html#Position-enum">Position</a>.</p>
 
99
<h3 class="fn"><a name="decorationSize-var"></a><a href="qsize.html">QSize</a> QStyleOptionViewItem::decorationSize</h3>
 
100
<p>This variable holds the size of the decoration for the item.</p>
 
101
<p>See also <a href="qstyleoptionviewitem.html#decorationAlignment-var">decorationAlignment</a> and <a href="qstyleoptionviewitem.html#decorationPosition-var">decorationPosition</a>.</p>
 
102
<h3 class="fn"><a name="displayAlignment-var"></a><a href="qt.html#AlignmentFlag-enum">Qt::Alignment</a> QStyleOptionViewItem::displayAlignment</h3>
 
103
<p>This variable holds the alignment of the display value for the item.</p>
 
104
<h3 class="fn"><a name="font-var"></a><a href="qfont.html">QFont</a> QStyleOptionViewItem::font</h3>
 
105
<p>This variable holds the font used for the item.</p>
 
106
<p>See also <a href="qfont.html">QFont</a>.</p>
 
107
<h3 class="fn"><a name="showDecorationSelected-var"></a>bool QStyleOptionViewItem::showDecorationSelected</h3>
 
108
<p>This variable holds whether the decoration should be highlighted on selected items.</p>
 
109
<p>If this option is true, the branch and any decorations on selected items should be highlighted, indicating that the item is selected; otherwise, no highlighting is required.</p>
 
110
<p>See also <a href="qstyle.html#StyleHint-enum">QStyle::SH_ItemView_ShowDecorationSelected</a> and <a href="qabstractitemview.html">QAbstractItemView</a>.</p>
 
111
<h3 class="fn"><a name="textElideMode-var"></a><a href="qt.html#TextElideMode-enum">Qt::TextElideMode</a> QStyleOptionViewItem::textElideMode</h3>
 
112
<p>This variable holds where ellipsis should be added for text that is too long to fit into an item.</p>
 
113
<p>See also <a href="qt.html#TextElideMode-enum">Qt::TextElideMode</a> and <a href="qstyle.html#StyleHint-enum">QStyle::SH_ItemView_EllipsisLocation</a>.</p>
 
114
<p /><address><hr /><div align="center">
 
115
<table width="100%" cellspacing="0" border="0"><tr class="address">
 
116
<td width="30%">Copyright &copy; 2005 <a href="trolltech.html">Trolltech</a></td>
 
117
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
 
118
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
 
119
</tr></table></div></address></body>
 
120
</html>