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

« back to all changes in this revision

Viewing changes to doc/html/q3listboxtext.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/qt3support/itemviews/q3listbox.cpp -->
 
6
<head>
 
7
    <title>Qt 4.0: Q3ListBoxText 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">Q3ListBoxText Class Reference</h1>
 
21
<p>The Q3ListBoxText class provides list box items that display text. <a href="#details">More...</a></p>
 
22
<pre>#include &lt;Q3ListBoxText&gt;</pre><p><b>This class is part of the Qt 3 support library.</b> It is provided to keep old source code working. We strongly advise against using it in new code. See the <a href="porting4.html">Porting Guide</a> for more information.</p>
 
23
<p>Part of the <a href="qt3support.html">Qt3Support</a> module.</p>
 
24
<p>Inherits <a href="q3listboxitem.html">Q3ListBoxItem</a>.</p>
 
25
<ul>
 
26
<li><a href="q3listboxtext-members.html">List of all members, including inherited members</a></li>
 
27
</ul>
 
28
<a name="public-functions"></a>
 
29
<h3>Public Functions</h3>
 
30
<ul>
 
31
<li><div class="fn"/><b><a href="q3listboxtext.html#Q3ListBoxText">Q3ListBoxText</a></b> ( Q3ListBox * <i>listbox</i>, const QString &amp; <i>text</i> = QString() )</li>
 
32
<li><div class="fn"/><b><a href="q3listboxtext.html#Q3ListBoxText-2">Q3ListBoxText</a></b> ( const QString &amp; <i>text</i> = QString() )</li>
 
33
<li><div class="fn"/><b><a href="q3listboxtext.html#Q3ListBoxText-3">Q3ListBoxText</a></b> ( Q3ListBox * <i>listbox</i>, const QString &amp; <i>text</i>, Q3ListBoxItem * <i>after</i> )</li>
 
34
<li><div class="fn"/><b><a href="q3listboxtext.html#dtor.Q3ListBoxText">~Q3ListBoxText</a></b> ()</li>
 
35
<li><div class="fn"/>virtual int <b><a href="q3listboxtext.html#height">height</a></b> ( const Q3ListBox * <i>lb</i> ) const</li>
 
36
<li><div class="fn"/>virtual int <b><a href="q3listboxtext.html#width">width</a></b> ( const Q3ListBox * <i>lb</i> ) const</li>
 
37
</ul>
 
38
<ul>
 
39
<li><div class="fn"/>14 public functions inherited from <a href="q3listboxitem.html#public-functions">Q3ListBoxItem</a></li>
 
40
</ul>
 
41
<a name="protected-functions"></a>
 
42
<h3>Protected Functions</h3>
 
43
<ul>
 
44
<li><div class="fn"/>virtual void <b><a href="q3listboxtext.html#paint">paint</a></b> ( QPainter * <i>painter</i> )</li>
 
45
</ul>
 
46
<ul>
 
47
<li><div class="fn"/>3 protected functions inherited from <a href="q3listboxitem.html#protected-functions">Q3ListBoxItem</a></li>
 
48
</ul>
 
49
<a name="details"></a>
 
50
<hr />
 
51
<h2>Detailed Description</h2>
 
52
<p>The Q3ListBoxText class provides list box items that display text.</p>
 
53
<p>The text is drawn in the widget's current font. If you need several different fonts, you must implement your own subclass of <a href="q3listboxitem.html">Q3ListBoxItem</a>.</p>
 
54
<p>See also <a href="q3listbox.html">Q3ListBox</a> and <a href="q3listboxitem.html">Q3ListBoxItem</a>.</p>
 
55
<hr />
 
56
<h2>Member Function Documentation</h2>
 
57
<h3 class="fn"><a name="Q3ListBoxText"></a>Q3ListBoxText::Q3ListBoxText ( <a href="q3listbox.html">Q3ListBox</a> * <i>listbox</i>, const <a href="qstring.html">QString</a> &amp; <i>text</i> = QString() )</h3>
 
58
<p>Constructs a list box item in list box <i>listbox</i> showing the text <i>text</i>.</p>
 
59
<h3 class="fn"><a name="Q3ListBoxText-2"></a>Q3ListBoxText::Q3ListBoxText ( const <a href="qstring.html">QString</a> &amp; <i>text</i> = QString() )</h3>
 
60
<p>Constructs a list box item showing the text <i>text</i>.</p>
 
61
<h3 class="fn"><a name="Q3ListBoxText-3"></a>Q3ListBoxText::Q3ListBoxText ( <a href="q3listbox.html">Q3ListBox</a> * <i>listbox</i>, const <a href="qstring.html">QString</a> &amp; <i>text</i>, <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>after</i> )</h3>
 
62
<p>Constructs a list box item in list box <i>listbox</i> showing the text <i>text</i>. The item is inserted after the item <i>after</i>, or at the beginning if <i>after</i> is 0.</p>
 
63
<h3 class="fn"><a name="dtor.Q3ListBoxText"></a>Q3ListBoxText::~Q3ListBoxText ()</h3>
 
64
<p>Destroys the item.</p>
 
65
<h3 class="fn"><a name="height"></a>int Q3ListBoxText::height ( const <a href="q3listbox.html">Q3ListBox</a> * <i>lb</i> ) const&nbsp;&nbsp;<tt> [virtual]</tt></h3>
 
66
<p>Returns the height of a line of text in list box <i>lb</i>.</p>
 
67
<p>Reimplemented from <a href="q3listboxitem.html#height">Q3ListBoxItem</a>.</p>
 
68
<p>See also <a href="q3listboxtext.html#paint">paint</a>() and <a href="q3listboxtext.html#width">width</a>().</p>
 
69
<h3 class="fn"><a name="paint"></a>void Q3ListBoxText::paint ( <a href="qpainter.html">QPainter</a> * <i>painter</i> )&nbsp;&nbsp;<tt> [virtual protected]</tt></h3>
 
70
<p>Draws the text using <i>painter</i>.</p>
 
71
<p>Reimplemented from <a href="q3listboxitem.html#paint">Q3ListBoxItem</a>.</p>
 
72
<h3 class="fn"><a name="width"></a>int Q3ListBoxText::width ( const <a href="q3listbox.html">Q3ListBox</a> * <i>lb</i> ) const&nbsp;&nbsp;<tt> [virtual]</tt></h3>
 
73
<p>Returns the width of this line in list box <i>lb</i>.</p>
 
74
<p>Reimplemented from <a href="q3listboxitem.html#width">Q3ListBoxItem</a>.</p>
 
75
<p>See also <a href="q3listboxtext.html#paint">paint</a>() and <a href="q3listboxtext.html#height">height</a>().</p>
 
76
<p /><address><hr /><div align="center">
 
77
<table width="100%" cellspacing="0" border="0"><tr class="address">
 
78
<td width="30%">Copyright &copy; 2005 <a href="trolltech.html">Trolltech</a></td>
 
79
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
 
80
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
 
81
</tr></table></div></address></body>
 
82
</html>