1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- q3listbox.cpp -->
<title>Qt 4.8: Q3ListBoxText Class Reference</title>
<link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
<div class="content">
<a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
</div>
<div class="breadcrumb toolblock">
<ul>
<li class="first"><a href="index.html">Home</a></li>
<!-- Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li>Qt3SupportLight</li>
<li>Q3ListBoxText</li>
</ul>
</div>
</div>
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">Q3ListBoxText Class Reference</h1>
<!-- $$$Q3ListBoxText-brief -->
<p>The Q3ListBoxText class provides list box items that display text. <a href="#details">More...</a></p>
<!-- @@@Q3ListBoxText -->
<pre class="cpp"> <span class="preprocessor">#include <Q3ListBoxText></span></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 <a href="porting4.html">Porting to Qt 4</a> for more information.</p>
<p><b>Inherits: </b><a href="q3listboxitem.html">Q3ListBoxItem</a>.</p>
<ul>
<li><a href="q3listboxtext-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3listboxtext.html#Q3ListBoxText">Q3ListBoxText</a></b> ( Q3ListBox * <i>listbox</i>, const QString & <i>text</i> = QString() )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3listboxtext.html#Q3ListBoxText-2">Q3ListBoxText</a></b> ( const QString & <i>text</i> = QString() )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3listboxtext.html#Q3ListBoxText-3">Q3ListBoxText</a></b> ( Q3ListBox * <i>listbox</i>, const QString & <i>text</i>, Q3ListBoxItem * <i>after</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3listboxtext.html#dtor.Q3ListBoxText">~Q3ListBoxText</a></b> ()</td></tr>
</table>
<a name="reimplemented-public-functions"></a>
<h2>Reimplemented Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="q3listboxtext.html#height">height</a></b> ( const Q3ListBox * <i>lb</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="q3listboxtext.html#rtti">rtti</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="q3listboxtext.html#width">width</a></b> ( const Q3ListBox * <i>lb</i> ) const</td></tr>
</table>
<ul>
<li class="fn">14 public functions inherited from <a href="q3listboxitem.html#public-functions">Q3ListBoxItem</a></li>
</ul>
<a name="reimplemented-protected-functions"></a>
<h2>Reimplemented Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3listboxtext.html#paint">paint</a></b> ( QPainter * <i>painter</i> )</td></tr>
</table>
<ul>
<li class="fn">3 protected functions inherited from <a href="q3listboxitem.html#protected-functions">Q3ListBoxItem</a></li>
</ul>
<a name="details"></a>
<!-- $$$Q3ListBoxText-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The Q3ListBoxText class provides list box items that display text.</p>
<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>
</div>
<p><b>See also </b><a href="q3listbox.html">Q3ListBox</a> and <a href="q3listboxitem.html">Q3ListBoxItem</a>.</p>
<!-- @@@Q3ListBoxText -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$Q3ListBoxText[overload1]$$$Q3ListBoxTextQ3ListBox*constQString& -->
<h3 class="fn"><a name="Q3ListBoxText"></a>Q3ListBoxText::<span class="name">Q3ListBoxText</span> ( <span class="type"><a href="q3listbox.html">Q3ListBox</a></span> * <i>listbox</i>, const <span class="type"><a href="qstring.html">QString</a></span> & <i>text</i> = QString() )</h3>
<p>Constructs a list box item in list box <i>listbox</i> showing the text <i>text</i>.</p>
<!-- @@@Q3ListBoxText -->
<!-- $$$Q3ListBoxText$$$Q3ListBoxTextconstQString& -->
<h3 class="fn"><a name="Q3ListBoxText-2"></a>Q3ListBoxText::<span class="name">Q3ListBoxText</span> ( const <span class="type"><a href="qstring.html">QString</a></span> & <i>text</i> = QString() )</h3>
<p>Constructs a list box item showing the text <i>text</i>.</p>
<!-- @@@Q3ListBoxText -->
<!-- $$$Q3ListBoxText$$$Q3ListBoxTextQ3ListBox*constQString&Q3ListBoxItem* -->
<h3 class="fn"><a name="Q3ListBoxText-3"></a>Q3ListBoxText::<span class="name">Q3ListBoxText</span> ( <span class="type"><a href="q3listbox.html">Q3ListBox</a></span> * <i>listbox</i>, const <span class="type"><a href="qstring.html">QString</a></span> & <i>text</i>, <span class="type"><a href="q3listboxitem.html">Q3ListBoxItem</a></span> * <i>after</i> )</h3>
<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>
<!-- @@@Q3ListBoxText -->
<!-- $$$~Q3ListBoxText[overload1]$$$~Q3ListBoxText -->
<h3 class="fn"><a name="dtor.Q3ListBoxText"></a>Q3ListBoxText::<span class="name">~Q3ListBoxText</span> ()</h3>
<p>Destroys the item.</p>
<!-- @@@~Q3ListBoxText -->
<!-- $$$height[overload1]$$$heightconstQ3ListBox* -->
<h3 class="fn"><a name="height"></a><span class="type">int</span> Q3ListBoxText::<span class="name">height</span> ( const <span class="type"><a href="q3listbox.html">Q3ListBox</a></span> * <i>lb</i> ) const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="q3listboxitem.html#height">Q3ListBoxItem::height</a>().</p>
<p>Returns the height of a line of text in list box <i>lb</i>.</p>
<p><b>See also </b><a href="q3listboxtext.html#paint">paint</a>() and <a href="q3listboxtext.html#width">width</a>().</p>
<!-- @@@height -->
<!-- $$$paint[overload1]$$$paintQPainter* -->
<h3 class="fn"><a name="paint"></a><span class="type">void</span> Q3ListBoxText::<span class="name">paint</span> ( <span class="type"><a href="qpainter.html">QPainter</a></span> * <i>painter</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="q3listboxitem.html#paint">Q3ListBoxItem::paint</a>().</p>
<p>Draws the text using <i>painter</i>.</p>
<!-- @@@paint -->
<!-- $$$rtti[overload1]$$$rtti -->
<h3 class="fn"><a name="rtti"></a><span class="type">int</span> Q3ListBoxText::<span class="name">rtti</span> () const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="q3listboxitem.html#rtti">Q3ListBoxItem::rtti</a>().</p>
<p>Returns 1.</p>
<p>Make your derived classes return their own values for rtti(), and you can distinguish between listbox items. You should use values greater than 1000 preferably a large random number, to allow for extensions to this class.</p>
<!-- @@@rtti -->
<!-- $$$width[overload1]$$$widthconstQ3ListBox* -->
<h3 class="fn"><a name="width"></a><span class="type">int</span> Q3ListBoxText::<span class="name">width</span> ( const <span class="type"><a href="q3listbox.html">Q3ListBox</a></span> * <i>lb</i> ) const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="q3listboxitem.html#width">Q3ListBoxItem::width</a>().</p>
<p>Returns the width of this line in list box <i>lb</i>.</p>
<p><b>See also </b><a href="q3listboxtext.html#paint">paint</a>() and <a href="q3listboxtext.html#height">height</a>().</p>
<!-- @@@width -->
</div>
<div class="ft">
<span></span>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2012 Nokia Corporation and/or its
subsidiaries. Documentation contributions included herein are the copyrights of
their respective owners.</p>
<br />
<p>
The documentation provided herein is licensed under the terms of the
<a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
License version 1.3</a> as published by the Free Software Foundation.</p>
<p>
Documentation sources may be obtained from <a href="http://www.qt-project.org">
www.qt-project.org</a>.</p>
<br />
<p>
Nokia, Qt and their respective logos are trademarks of Nokia Corporation
in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. <a title="Privacy Policy"
href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
</div>
</body>
</html>
|