1
<?xml version="1.0" encoding="iso-8859-1"?>
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 -->
7
<title>Qt 4.0: Q3ListBoxPixmap 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>
16
<table border="0" cellpadding="0" cellspacing="0" width="100%">
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"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="mainclasses.html"><font color="#004faf">Main Classes</font></a> · <a href="annotated.html"><font color="#004faf">Annotated</font></a> · <a href="groups.html"><font color="#004faf">Grouped Classes</font></a> · <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">Q3ListBoxPixmap Class Reference</h1>
21
<p>The Q3ListBoxPixmap class provides list box items with a pixmap and optional text. <a href="#details">More...</a></p>
22
<pre>#include <Q3ListBoxPixmap></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>
26
<li><a href="q3listboxpixmap-members.html">List of all members, including inherited members</a></li>
28
<a name="public-functions"></a>
29
<h3>Public Functions</h3>
31
<li><div class="fn"/><b><a href="q3listboxpixmap.html#Q3ListBoxPixmap">Q3ListBoxPixmap</a></b> ( Q3ListBox * <i>listbox</i>, const QPixmap & <i>pixmap</i> )</li>
32
<li><div class="fn"/><b><a href="q3listboxpixmap.html#Q3ListBoxPixmap-2">Q3ListBoxPixmap</a></b> ( const QPixmap & <i>pixmap</i> )</li>
33
<li><div class="fn"/><b><a href="q3listboxpixmap.html#Q3ListBoxPixmap-3">Q3ListBoxPixmap</a></b> ( Q3ListBox * <i>listbox</i>, const QPixmap & <i>pixmap</i>, Q3ListBoxItem * <i>after</i> )</li>
34
<li><div class="fn"/><b><a href="q3listboxpixmap.html#Q3ListBoxPixmap-4">Q3ListBoxPixmap</a></b> ( Q3ListBox * <i>listbox</i>, const QPixmap & <i>pix</i>, const QString & <i>text</i> )</li>
35
<li><div class="fn"/><b><a href="q3listboxpixmap.html#Q3ListBoxPixmap-5">Q3ListBoxPixmap</a></b> ( const QPixmap & <i>pix</i>, const QString & <i>text</i> )</li>
36
<li><div class="fn"/><b><a href="q3listboxpixmap.html#Q3ListBoxPixmap-6">Q3ListBoxPixmap</a></b> ( Q3ListBox * <i>listbox</i>, const QPixmap & <i>pix</i>, const QString & <i>text</i>, Q3ListBoxItem * <i>after</i> )</li>
37
<li><div class="fn"/><b><a href="q3listboxpixmap.html#dtor.Q3ListBoxPixmap">~Q3ListBoxPixmap</a></b> ()</li>
38
<li><div class="fn"/>virtual int <b><a href="q3listboxpixmap.html#height">height</a></b> ( const Q3ListBox * <i>lb</i> ) const</li>
39
<li><div class="fn"/>virtual const QPixmap * <b><a href="q3listboxpixmap.html#pixmap">pixmap</a></b> () const</li>
40
<li><div class="fn"/>virtual int <b><a href="q3listboxpixmap.html#width">width</a></b> ( const Q3ListBox * <i>lb</i> ) const</li>
43
<li><div class="fn"/>14 public functions inherited from <a href="q3listboxitem.html#public-functions">Q3ListBoxItem</a></li>
45
<a name="protected-functions"></a>
46
<h3>Protected Functions</h3>
48
<li><div class="fn"/>virtual void <b><a href="q3listboxpixmap.html#paint">paint</a></b> ( QPainter * <i>painter</i> )</li>
51
<li><div class="fn"/>3 protected functions inherited from <a href="q3listboxitem.html#protected-functions">Q3ListBoxItem</a></li>
53
<a name="details"></a>
55
<h2>Detailed Description</h2>
56
<p>The Q3ListBoxPixmap class provides list box items with a pixmap and optional text.</p>
57
<p>Items of this class are drawn with the pixmap on the left with the optional text to the right of the pixmap.</p>
58
<p>See also <a href="q3listbox.html">Q3ListBox</a> and <a href="q3listboxitem.html">Q3ListBoxItem</a>.</p>
60
<h2>Member Function Documentation</h2>
61
<h3 class="fn"><a name="Q3ListBoxPixmap"></a>Q3ListBoxPixmap::Q3ListBoxPixmap ( <a href="q3listbox.html">Q3ListBox</a> * <i>listbox</i>, const <a href="qpixmap.html">QPixmap</a> & <i>pixmap</i> )</h3>
62
<p>Constructs a new list box item in list box <i>listbox</i> showing the pixmap <i>pixmap</i>.</p>
63
<h3 class="fn"><a name="Q3ListBoxPixmap-2"></a>Q3ListBoxPixmap::Q3ListBoxPixmap ( const <a href="qpixmap.html">QPixmap</a> & <i>pixmap</i> )</h3>
64
<p>Constructs a new list box item showing the pixmap <i>pixmap</i>.</p>
65
<h3 class="fn"><a name="Q3ListBoxPixmap-3"></a>Q3ListBoxPixmap::Q3ListBoxPixmap ( <a href="q3listbox.html">Q3ListBox</a> * <i>listbox</i>, const <a href="qpixmap.html">QPixmap</a> & <i>pixmap</i>, <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>after</i> )</h3>
66
<p>Constructs a new list box item in list box <i>listbox</i> showing the pixmap <i>pixmap</i>. The item gets inserted after the item <i>after</i>, or at the beginning if <i>after</i> is 0.</p>
67
<h3 class="fn"><a name="Q3ListBoxPixmap-4"></a>Q3ListBoxPixmap::Q3ListBoxPixmap ( <a href="q3listbox.html">Q3ListBox</a> * <i>listbox</i>, const <a href="qpixmap.html">QPixmap</a> & <i>pix</i>, const <a href="qstring.html">QString</a> & <i>text</i> )</h3>
68
<p>Constructs a new list box item in list box <i>listbox</i> showing the pixmap <i>pix</i> and the text <i>text</i>.</p>
69
<h3 class="fn"><a name="Q3ListBoxPixmap-5"></a>Q3ListBoxPixmap::Q3ListBoxPixmap ( const <a href="qpixmap.html">QPixmap</a> & <i>pix</i>, const <a href="qstring.html">QString</a> & <i>text</i> )</h3>
70
<p>Constructs a new list box item showing the pixmap <i>pix</i> and the text to <i>text</i>.</p>
71
<h3 class="fn"><a name="Q3ListBoxPixmap-6"></a>Q3ListBoxPixmap::Q3ListBoxPixmap ( <a href="q3listbox.html">Q3ListBox</a> * <i>listbox</i>, const <a href="qpixmap.html">QPixmap</a> & <i>pix</i>, const <a href="qstring.html">QString</a> & <i>text</i>, <a href="q3listboxitem.html">Q3ListBoxItem</a> * <i>after</i> )</h3>
72
<p>Constructs a new list box item in list box <i>listbox</i> showing the pixmap <i>pix</i> and the string <i>text</i>. The item gets inserted after the item <i>after</i>, or at the beginning if <i>after</i> is 0.</p>
73
<h3 class="fn"><a name="dtor.Q3ListBoxPixmap"></a>Q3ListBoxPixmap::~Q3ListBoxPixmap ()</h3>
74
<p>Destroys the item.</p>
75
<h3 class="fn"><a name="height"></a>int Q3ListBoxPixmap::height ( const <a href="q3listbox.html">Q3ListBox</a> * <i>lb</i> ) const <tt> [virtual]</tt></h3>
76
<p>Returns the height of the pixmap in list box <i>lb</i>.</p>
77
<p>Reimplemented from <a href="q3listboxitem.html#height">Q3ListBoxItem</a>.</p>
78
<p>See also <a href="q3listboxpixmap.html#paint">paint</a>() and <a href="q3listboxpixmap.html#width">width</a>().</p>
79
<h3 class="fn"><a name="paint"></a>void Q3ListBoxPixmap::paint ( <a href="qpainter.html">QPainter</a> * <i>painter</i> ) <tt> [virtual protected]</tt></h3>
80
<p>Draws the pixmap using <i>painter</i>.</p>
81
<p>Reimplemented from <a href="q3listboxitem.html#paint">Q3ListBoxItem</a>.</p>
82
<h3 class="fn"><a name="pixmap"></a>const <a href="qpixmap.html">QPixmap</a> * Q3ListBoxPixmap::pixmap () const <tt> [virtual]</tt></h3>
83
<p>Returns the pixmap associated with the item.</p>
84
<p>Reimplemented from <a href="q3listboxitem.html#pixmap">Q3ListBoxItem</a>.</p>
85
<h3 class="fn"><a name="width"></a>int Q3ListBoxPixmap::width ( const <a href="q3listbox.html">Q3ListBox</a> * <i>lb</i> ) const <tt> [virtual]</tt></h3>
86
<p>Returns the width of the pixmap plus some margin in list box <i>lb</i>.</p>
87
<p>Reimplemented from <a href="q3listboxitem.html#width">Q3ListBoxItem</a>.</p>
88
<p>See also <a href="q3listboxpixmap.html#paint">paint</a>() and <a href="q3listboxpixmap.html#height">height</a>().</p>
89
<p /><address><hr /><div align="center">
90
<table width="100%" cellspacing="0" border="0"><tr class="address">
91
<td width="30%">Copyright © 2005 <a href="trolltech.html">Trolltech</a></td>
92
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
93
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
94
</tr></table></div></address></body>