Sophie

Sophie

distrib > Mandriva > cooker > i586 > by-pkgid > 76bdad05b5dca2a491582dbec0713d55 > files > 379

libqwt-devel-6.0.1-2.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Qwt User&#39;s Guide: QwtLegendItem Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.3 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Qwt User's Guide&#160;<span id="projectnumber">6.0.1</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-slots">Public Slots</a> &#124;
<a href="#signals">Signals</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a>  </div>
  <div class="headertitle">
<h1>QwtLegendItem Class Reference</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="QwtLegendItem" --><!-- doxytag: inherits="QwtTextLabel" -->
<p>A widget representing something on a QwtLegend().  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="qwt__legend__item_8h_source.html">qwt_legend_item.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for QwtLegendItem:</div>
<div class="dyncontent">
<div class="center"><img src="class_qwt_legend_item__inherit__graph.png" border="0" usemap="#_qwt_legend_item_inherit__map" alt="Inheritance graph"/></div>
<map name="_qwt_legend_item_inherit__map" id="_qwt_legend_item_inherit__map">
<area shape="rect" id="node2" href="class_qwt_text_label.html" title="A Widget which displays a QwtText." alt="" coords="12,5,111,35"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="class_qwt_legend_item-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-slots"></a>
Public Slots</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#a6674cebd85cf692d154f967887547e11">clear</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend_item.html#af7a194ea464d2c405479dd8be1bd1e1b">setChecked</a> (bool on)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#ab300b9a0a6392e180f2caff41ba2b9b8">setText</a> (const QString &amp;, <a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">QwtText::TextFormat</a> textFormat=QwtText::AutoText)</td></tr>
<tr><td colspan="2"><h2><a name="signals"></a>
Signals</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend_item.html#a95fe5b1ec7fcfaa86fd9ec49a3bf23aa">checked</a> (bool)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend_item.html#a28c4837ec402725c87ecee6de558c956">clicked</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend_item.html#a7cc6a0390cc0aaea2feb8a324139410c">pressed</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend_item.html#a7286b8900294659d0850ac588aafaa97">released</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#ade1867a2c9308f2235cfacf675fa1d4c">heightForWidth</a> (int) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QPixmap&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend_item.html#ab9dc7521b29d0e7b5cdd021db2dd7e4a">identifier</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QSize&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend_item.html#a3b948f33ab0bfc898ffe5260a9de87dc">identifierSize</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#a56d1c5c770efd4f829f33d0b42f00c9b">indent</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend_item.html#a89c9b96ad3dc37f31ec92779a3899d23">isChecked</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_qwt_legend.html#ab216dd2dba9ebf6cb0ed2dd621a652e0">QwtLegend::LegendItemMode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend_item.html#a2574e634e54eb7afff34ca24752c3f9b">itemMode</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#ab754bebe50bc0e713cde9ba58bf6c3c8">margin</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual QSize&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#a75ed6482ddb21e4f67ad9272f2ce66bb">minimumSizeHint</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend_item.html#a46f61a0eaaf24a3a78d498db3fc8c457">QwtLegendItem</a> (QWidget *parent=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend_item.html#a24495f46aa413af62f1228b4cc13f237">setIdentifier</a> (const QPixmap &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend_item.html#aecd9706e156b236b64a2eb5115c7a9ae">setIdentifierSize</a> (const QSize &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#aad25ab34c219f8d97ec7c39d064ed4a0">setIndent</a> (int)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend_item.html#ae6487dbe8f2c72512887df8bcb648d53">setItemMode</a> (<a class="el" href="class_qwt_legend.html#ab216dd2dba9ebf6cb0ed2dd621a652e0">QwtLegend::LegendItemMode</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#a833d27574b72bbc135f2972c72382eba">setMargin</a> (int)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend_item.html#a4ff8a83f130d56bf5932c6a35384d85f">setSpacing</a> (int spacing)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend_item.html#a8420c4d8cd73945a25697109df5c2f0e">setText</a> (const <a class="el" href="class_qwt_text.html">QwtText</a> &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual QSize&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend_item.html#a6248ff72fbbdf1997a590fb0a2d7088f">sizeHint</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend_item.html#adc59d1683f3bb11a795098776e76c0bc">spacing</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_qwt_text.html">QwtText</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#a6ff4f9a87e11594740f312c8522f933e">text</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QRect&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#ab4f9a18c47618903927fb2b40cbb06e2">textRect</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend_item.html#a8c98d47b26d4ad3af98bffc7107f6fc9">~QwtLegendItem</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#ab1d6c248f451517a32c626372670ab51">drawContents</a> (QPainter *)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_label.html#a88491c6677985ca048a3ebc095940df3">drawText</a> (QPainter *, const QRect &amp;)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend_item.html#ad88e70289e552d67f881d0435fae1098">isDown</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend_item.html#a9b6a6527d2b867a912a21ef3358eb63f">keyPressEvent</a> (QKeyEvent *)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend_item.html#a0b31f4435914a8cd0491ea8aab45041f">keyReleaseEvent</a> (QKeyEvent *)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend_item.html#aaf54f5473fc174aac5cb5cdcfdcc7292">mousePressEvent</a> (QMouseEvent *)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend_item.html#a37950b4dd9de4dfe74c05eee572c16a2">mouseReleaseEvent</a> (QMouseEvent *)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend_item.html#ac154aa6b045d78f8134bbfab19a9729b">paintEvent</a> (QPaintEvent *)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend_item.html#a1c871e735a96cc86f95b4dffe2339f85">setDown</a> (bool)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A widget representing something on a QwtLegend(). </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a46f61a0eaaf24a3a78d498db3fc8c457"></a><!-- doxytag: member="QwtLegendItem::QwtLegendItem" ref="a46f61a0eaaf24a3a78d498db3fc8c457" args="(QWidget *parent=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QwtLegendItem::QwtLegendItem </td>
          <td>(</td>
          <td class="paramtype">QWidget *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>0</code></td><td>)</td>
          <td><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>Parent widget </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a8c98d47b26d4ad3af98bffc7107f6fc9"></a><!-- doxytag: member="QwtLegendItem::~QwtLegendItem" ref="a8c98d47b26d4ad3af98bffc7107f6fc9" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QwtLegendItem::~QwtLegendItem </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destructor. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a95fe5b1ec7fcfaa86fd9ec49a3bf23aa"></a><!-- doxytag: member="QwtLegendItem::checked" ref="a95fe5b1ec7fcfaa86fd9ec49a3bf23aa" args="(bool)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtLegendItem::checked </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Signal, when the legend item has been toggled. </p>

</div>
</div>
<a class="anchor" id="a6674cebd85cf692d154f967887547e11"></a><!-- doxytag: member="QwtLegendItem::clear" ref="a6674cebd85cf692d154f967887547e11" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtTextLabel::clear </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [slot, inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Clear the text and all <a class="el" href="class_qwt_text.html" title="A class representing a text.">QwtText</a> attributes. </p>

</div>
</div>
<a class="anchor" id="a28c4837ec402725c87ecee6de558c956"></a><!-- doxytag: member="QwtLegendItem::clicked" ref="a28c4837ec402725c87ecee6de558c956" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtLegendItem::clicked </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Signal, when the legend item has been clicked. </p>

</div>
</div>
<a class="anchor" id="ab1d6c248f451517a32c626372670ab51"></a><!-- doxytag: member="QwtLegendItem::drawContents" ref="ab1d6c248f451517a32c626372670ab51" args="(QPainter *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtTextLabel::drawContents </td>
          <td>(</td>
          <td class="paramtype">QPainter *&#160;</td>
          <td class="paramname"><em>painter</em></td><td>)</td>
          <td><code> [protected, virtual, inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Redraw the text and focus indicator. </p>

</div>
</div>
<a class="anchor" id="a88491c6677985ca048a3ebc095940df3"></a><!-- doxytag: member="QwtLegendItem::drawText" ref="a88491c6677985ca048a3ebc095940df3" args="(QPainter *, const QRect &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtTextLabel::drawText </td>
          <td>(</td>
          <td class="paramtype">QPainter *&#160;</td>
          <td class="paramname"><em>painter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QRect &amp;&#160;</td>
          <td class="paramname"><em>textRect</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [protected, virtual, inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Redraw the text. </p>

</div>
</div>
<a class="anchor" id="ade1867a2c9308f2235cfacf675fa1d4c"></a><!-- doxytag: member="QwtLegendItem::heightForWidth" ref="ade1867a2c9308f2235cfacf675fa1d4c" args="(int) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int QwtTextLabel::heightForWidth </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width</em></td><td>)</td>
          <td> const<code> [virtual, inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the preferred height for this widget, given the width. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">width</td><td>Width </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ab9dc7521b29d0e7b5cdd021db2dd7e4a"></a><!-- doxytag: member="QwtLegendItem::identifier" ref="ab9dc7521b29d0e7b5cdd021db2dd7e4a" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QPixmap QwtLegendItem::identifier </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>pixmap representing a plot item </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_legend_item.html#a24495f46aa413af62f1228b4cc13f237">setIdentifier()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a3b948f33ab0bfc898ffe5260a9de87dc"></a><!-- doxytag: member="QwtLegendItem::identifierSize" ref="a3b948f33ab0bfc898ffe5260a9de87dc" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QSize QwtLegendItem::identifierSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return the width of the identifier</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_legend_item.html#aecd9706e156b236b64a2eb5115c7a9ae">setIdentifierSize()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a56d1c5c770efd4f829f33d0b42f00c9b"></a><!-- doxytag: member="QwtLegendItem::indent" ref="a56d1c5c770efd4f829f33d0b42f00c9b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int QwtTextLabel::indent </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return label's text indent in pixels. </p>

</div>
</div>
<a class="anchor" id="a89c9b96ad3dc37f31ec92779a3899d23"></a><!-- doxytag: member="QwtLegendItem::isChecked" ref="a89c9b96ad3dc37f31ec92779a3899d23" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QwtLegendItem::isChecked </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return true, if the item is checked. </p>

</div>
</div>
<a class="anchor" id="ad88e70289e552d67f881d0435fae1098"></a><!-- doxytag: member="QwtLegendItem::isDown" ref="ad88e70289e552d67f881d0435fae1098" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QwtLegendItem::isDown </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return true, if the item is down. </p>

</div>
</div>
<a class="anchor" id="a2574e634e54eb7afff34ca24752c3f9b"></a><!-- doxytag: member="QwtLegendItem::itemMode" ref="a2574e634e54eb7afff34ca24752c3f9b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_qwt_legend.html#ab216dd2dba9ebf6cb0ed2dd621a652e0">QwtLegend::LegendItemMode</a> QwtLegendItem::itemMode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return the item mode</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_legend_item.html#ae6487dbe8f2c72512887df8bcb648d53">setItemMode()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a9b6a6527d2b867a912a21ef3358eb63f"></a><!-- doxytag: member="QwtLegendItem::keyPressEvent" ref="a9b6a6527d2b867a912a21ef3358eb63f" args="(QKeyEvent *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtLegendItem::keyPressEvent </td>
          <td>(</td>
          <td class="paramtype">QKeyEvent *&#160;</td>
          <td class="paramname"><em>e</em></td><td>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Handle key press events. </p>

</div>
</div>
<a class="anchor" id="a0b31f4435914a8cd0491ea8aab45041f"></a><!-- doxytag: member="QwtLegendItem::keyReleaseEvent" ref="a0b31f4435914a8cd0491ea8aab45041f" args="(QKeyEvent *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtLegendItem::keyReleaseEvent </td>
          <td>(</td>
          <td class="paramtype">QKeyEvent *&#160;</td>
          <td class="paramname"><em>e</em></td><td>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Handle key release events. </p>

</div>
</div>
<a class="anchor" id="ab754bebe50bc0e713cde9ba58bf6c3c8"></a><!-- doxytag: member="QwtLegendItem::margin" ref="ab754bebe50bc0e713cde9ba58bf6c3c8" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int QwtTextLabel::margin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return label's text indent in pixels. </p>

</div>
</div>
<a class="anchor" id="a75ed6482ddb21e4f67ad9272f2ce66bb"></a><!-- doxytag: member="QwtLegendItem::minimumSizeHint" ref="a75ed6482ddb21e4f67ad9272f2ce66bb" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QSize QwtTextLabel::minimumSizeHint </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [virtual, inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return a minimum size hint. </p>

</div>
</div>
<a class="anchor" id="aaf54f5473fc174aac5cb5cdcfdcc7292"></a><!-- doxytag: member="QwtLegendItem::mousePressEvent" ref="aaf54f5473fc174aac5cb5cdcfdcc7292" args="(QMouseEvent *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtLegendItem::mousePressEvent </td>
          <td>(</td>
          <td class="paramtype">QMouseEvent *&#160;</td>
          <td class="paramname"><em>e</em></td><td>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Handle mouse press events. </p>

</div>
</div>
<a class="anchor" id="a37950b4dd9de4dfe74c05eee572c16a2"></a><!-- doxytag: member="QwtLegendItem::mouseReleaseEvent" ref="a37950b4dd9de4dfe74c05eee572c16a2" args="(QMouseEvent *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtLegendItem::mouseReleaseEvent </td>
          <td>(</td>
          <td class="paramtype">QMouseEvent *&#160;</td>
          <td class="paramname"><em>e</em></td><td>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Handle mouse release events. </p>

</div>
</div>
<a class="anchor" id="ac154aa6b045d78f8134bbfab19a9729b"></a><!-- doxytag: member="QwtLegendItem::paintEvent" ref="ac154aa6b045d78f8134bbfab19a9729b" args="(QPaintEvent *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtLegendItem::paintEvent </td>
          <td>(</td>
          <td class="paramtype">QPaintEvent *&#160;</td>
          <td class="paramname"><em>e</em></td><td>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Paint event. </p>

<p>Reimplemented from <a class="el" href="class_qwt_text_label.html#aff00274ee1c860530920b4feaca02393">QwtTextLabel</a>.</p>

</div>
</div>
<a class="anchor" id="a7cc6a0390cc0aaea2feb8a324139410c"></a><!-- doxytag: member="QwtLegendItem::pressed" ref="a7cc6a0390cc0aaea2feb8a324139410c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtLegendItem::pressed </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Signal, when the legend item has been pressed. </p>

</div>
</div>
<a class="anchor" id="a7286b8900294659d0850ac588aafaa97"></a><!-- doxytag: member="QwtLegendItem::released" ref="a7286b8900294659d0850ac588aafaa97" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtLegendItem::released </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Signal, when the legend item has been relased. </p>

</div>
</div>
<a class="anchor" id="af7a194ea464d2c405479dd8be1bd1e1b"></a><!-- doxytag: member="QwtLegendItem::setChecked" ref="af7a194ea464d2c405479dd8be1bd1e1b" args="(bool on)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtLegendItem::setChecked </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>on</em></td><td>)</td>
          <td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Check/Uncheck a the item</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">on</td><td>check/uncheck </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_legend_item.html#ae6487dbe8f2c72512887df8bcb648d53">setItemMode()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a1c871e735a96cc86f95b4dffe2339f85"></a><!-- doxytag: member="QwtLegendItem::setDown" ref="a1c871e735a96cc86f95b4dffe2339f85" args="(bool)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtLegendItem::setDown </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>down</em></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the item being down. </p>

</div>
</div>
<a class="anchor" id="a24495f46aa413af62f1228b4cc13f237"></a><!-- doxytag: member="QwtLegendItem::setIdentifier" ref="a24495f46aa413af62f1228b4cc13f237" args="(const QPixmap &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtLegendItem::setIdentifier </td>
          <td>(</td>
          <td class="paramtype">const QPixmap &amp;&#160;</td>
          <td class="paramname"><em>identifier</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Assign the identifier The identifier needs to be created according to the identifierWidth()</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">identifier</td><td>Pixmap representing a plot item</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_legend_item.html#ab9dc7521b29d0e7b5cdd021db2dd7e4a">identifier()</a>, identifierWidth() </dd></dl>

</div>
</div>
<a class="anchor" id="aecd9706e156b236b64a2eb5115c7a9ae"></a><!-- doxytag: member="QwtLegendItem::setIdentifierSize" ref="aecd9706e156b236b64a2eb5115c7a9ae" args="(const QSize &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtLegendItem::setIdentifierSize </td>
          <td>(</td>
          <td class="paramtype">const QSize &amp;&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Set the size for the identifier Default is 8x8 pixels</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">size</td><td>New size</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_legend_item.html#a3b948f33ab0bfc898ffe5260a9de87dc">identifierSize()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aad25ab34c219f8d97ec7c39d064ed4a0"></a><!-- doxytag: member="QwtLegendItem::setIndent" ref="aad25ab34c219f8d97ec7c39d064ed4a0" args="(int)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtTextLabel::setIndent </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>indent</em></td><td>)</td>
          <td><code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Set label's text indent in pixels </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">indent</td><td>Indentation in pixels </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ae6487dbe8f2c72512887df8bcb648d53"></a><!-- doxytag: member="QwtLegendItem::setItemMode" ref="ae6487dbe8f2c72512887df8bcb648d53" args="(QwtLegend::LegendItemMode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtLegendItem::setItemMode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_qwt_legend.html#ab216dd2dba9ebf6cb0ed2dd621a652e0">QwtLegend::LegendItemMode</a>&#160;</td>
          <td class="paramname"><em>mode</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Set the item mode The default is <a class="el" href="class_qwt_legend.html#ab216dd2dba9ebf6cb0ed2dd621a652e0a82869bcd75310e861ae9257677185186" title="The legend item is not interactive, like a label.">QwtLegend::ReadOnlyItem</a></p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">mode</td><td>Item mode </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_legend_item.html#a2574e634e54eb7afff34ca24752c3f9b">itemMode()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a833d27574b72bbc135f2972c72382eba"></a><!-- doxytag: member="QwtLegendItem::setMargin" ref="a833d27574b72bbc135f2972c72382eba" args="(int)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtTextLabel::setMargin </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>margin</em></td><td>)</td>
          <td><code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Set label's margin in pixels </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">margin</td><td>Margin in pixels </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a4ff8a83f130d56bf5932c6a35384d85f"></a><!-- doxytag: member="QwtLegendItem::setSpacing" ref="a4ff8a83f130d56bf5932c6a35384d85f" args="(int spacing)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtLegendItem::setSpacing </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>spacing</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Change the spacing </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">spacing</td><td>Spacing </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_legend_item.html#adc59d1683f3bb11a795098776e76c0bc">spacing()</a>, identifierWidth(), <a class="el" href="class_qwt_text_label.html#ab754bebe50bc0e713cde9ba58bf6c3c8" title="Return label&#39;s text indent in pixels.">QwtTextLabel::margin()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a8420c4d8cd73945a25697109df5c2f0e"></a><!-- doxytag: member="QwtLegendItem::setText" ref="a8420c4d8cd73945a25697109df5c2f0e" args="(const QwtText &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtLegendItem::setText </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_qwt_text.html">QwtText</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Set the text to the legend item</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>Text label </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_text_label.html#a6ff4f9a87e11594740f312c8522f933e" title="Return the text.">QwtTextLabel::text()</a> </dd></dl>

<p>Reimplemented from <a class="el" href="class_qwt_text_label.html#ac43ba313b78dccf7aa7433f26059b2e2">QwtTextLabel</a>.</p>

</div>
</div>
<a class="anchor" id="ab300b9a0a6392e180f2caff41ba2b9b8"></a><!-- doxytag: member="QwtLegendItem::setText" ref="ab300b9a0a6392e180f2caff41ba2b9b8" args="(const QString &amp;, QwtText::TextFormat textFormat=QwtText::AutoText)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtTextLabel::setText </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_qwt_text.html#a63e0d6a59a427a37ed0bfa71b782fd76">QwtText::TextFormat</a>&#160;</td>
          <td class="paramname"><em>textFormat</em> = <code>QwtText::AutoText</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [slot, inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Change the label's text, keeping all other <a class="el" href="class_qwt_text.html" title="A class representing a text.">QwtText</a> attributes </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>New text </td></tr>
    <tr><td class="paramname">textFormat</td><td>Format of text</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_text.html" title="A class representing a text.">QwtText</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a6248ff72fbbdf1997a590fb0a2d7088f"></a><!-- doxytag: member="QwtLegendItem::sizeHint" ref="a6248ff72fbbdf1997a590fb0a2d7088f" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QSize QwtLegendItem::sizeHint </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return a size hint. </p>

<p>Reimplemented from <a class="el" href="class_qwt_text_label.html#a0217bc022e6f3b2f22819c84d5867ae7">QwtTextLabel</a>.</p>

</div>
</div>
<a class="anchor" id="adc59d1683f3bb11a795098776e76c0bc"></a><!-- doxytag: member="QwtLegendItem::spacing" ref="adc59d1683f3bb11a795098776e76c0bc" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int QwtLegendItem::spacing </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return the spacing </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_legend_item.html#a4ff8a83f130d56bf5932c6a35384d85f">setSpacing()</a>, identifierWidth(), <a class="el" href="class_qwt_text_label.html#ab754bebe50bc0e713cde9ba58bf6c3c8" title="Return label&#39;s text indent in pixels.">QwtTextLabel::margin()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a6ff4f9a87e11594740f312c8522f933e"></a><!-- doxytag: member="QwtLegendItem::text" ref="a6ff4f9a87e11594740f312c8522f933e" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="class_qwt_text.html">QwtText</a> &amp; QwtTextLabel::text </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the text. </p>

</div>
</div>
<a class="anchor" id="ab4f9a18c47618903927fb2b40cbb06e2"></a><!-- doxytag: member="QwtLegendItem::textRect" ref="ab4f9a18c47618903927fb2b40cbb06e2" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QRect QwtTextLabel::textRect </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inherited]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Calculate the rect for the text in widget coordinates </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Text rect </dd></dl>

</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Generated by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>