class_qwt_legend.html 55 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.20"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>Qwt User&#39;s Guide: QwtLegend Class Reference</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="navtree.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="resize.js"></script>
  14. <script type="text/javascript" src="navtreedata.js"></script>
  15. <script type="text/javascript" src="navtree.js"></script>
  16. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  17. <script type="text/javascript" src="search/searchdata.js"></script>
  18. <script type="text/javascript" src="search/search.js"></script>
  19. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  20. </head>
  21. <body>
  22. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  23. <div id="titlearea">
  24. <table cellspacing="0" cellpadding="0">
  25. <tbody>
  26. <tr style="height: 56px;">
  27. <td id="projectalign" style="padding-left: 0.5em;">
  28. <div id="projectname">Qwt User&#39;s Guide
  29. &#160;<span id="projectnumber">6.1.6</span>
  30. </div>
  31. </td>
  32. </tr>
  33. </tbody>
  34. </table>
  35. </div>
  36. <!-- end header part -->
  37. <!-- Generated by Doxygen 1.8.20 -->
  38. <script type="text/javascript">
  39. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  40. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  41. /* @license-end */
  42. </script>
  43. <script type="text/javascript" src="menudata.js"></script>
  44. <script type="text/javascript" src="menu.js"></script>
  45. <script type="text/javascript">
  46. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  47. $(function() {
  48. initMenu('',true,false,'search.php','Search');
  49. $(document).ready(function() { init_search(); });
  50. });
  51. /* @license-end */</script>
  52. <div id="main-nav"></div>
  53. </div><!-- top -->
  54. <div id="side-nav" class="ui-resizable side-nav-resizable">
  55. <div id="nav-tree">
  56. <div id="nav-tree-contents">
  57. <div id="nav-sync" class="sync"></div>
  58. </div>
  59. </div>
  60. <div id="splitbar" style="-moz-user-select:none;"
  61. class="ui-resizable-handle">
  62. </div>
  63. </div>
  64. <script type="text/javascript">
  65. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  66. $(document).ready(function(){initNavTree('class_qwt_legend.html',''); initResizable(); });
  67. /* @license-end */
  68. </script>
  69. <div id="doc-content">
  70. <!-- window showing the filter options -->
  71. <div id="MSearchSelectWindow"
  72. onmouseover="return searchBox.OnSearchSelectShow()"
  73. onmouseout="return searchBox.OnSearchSelectHide()"
  74. onkeydown="return searchBox.OnSearchSelectKey(event)">
  75. </div>
  76. <!-- iframe showing the search results (closed by default) -->
  77. <div id="MSearchResultsWindow">
  78. <iframe src="javascript:void(0)" frameborder="0"
  79. name="MSearchResults" id="MSearchResults">
  80. </iframe>
  81. </div>
  82. <div class="header">
  83. <div class="summary">
  84. <a href="#pub-slots">Public Slots</a> &#124;
  85. <a href="#signals">Signals</a> &#124;
  86. <a href="#pub-methods">Public Member Functions</a> &#124;
  87. <a href="#pro-slots">Protected Slots</a> &#124;
  88. <a href="#pro-methods">Protected Member Functions</a> &#124;
  89. <a href="class_qwt_legend-members.html">List of all members</a> </div>
  90. <div class="headertitle">
  91. <div class="title">QwtLegend Class Reference</div> </div>
  92. </div><!--header-->
  93. <div class="contents">
  94. <p>The legend widget.
  95. <a href="class_qwt_legend.html#details">More...</a></p>
  96. <p><code>#include &lt;<a class="el" href="qwt__legend_8h_source.html">qwt_legend.h</a>&gt;</code></p>
  97. <div class="dynheader">
  98. Inheritance diagram for QwtLegend:</div>
  99. <div class="dyncontent">
  100. <div class="center"><img src="class_qwt_legend__inherit__graph.png" border="0" usemap="#a_qwt_legend_inherit__map" alt="Inheritance graph"/></div>
  101. <map name="_qwt_legend_inherit__map" id="a_qwt_legend_inherit__map">
  102. <area shape="rect" title="The legend widget." alt="" coords="30,155,118,181"/>
  103. <area shape="rect" href="class_qwt_abstract_legend.html" title="Abstract base class for legend widgets." alt="" coords="5,80,143,107"/>
  104. <area shape="rect" title=" " alt="" coords="39,5,109,32"/>
  105. </map>
  106. <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
  107. <table class="memberdecls">
  108. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-slots"></a>
  109. Public Slots</h2></td></tr>
  110. <tr class="memitem:a0a294317170adf5c271c1ce243f66a87"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a0a294317170adf5c271c1ce243f66a87">updateLegend</a> (const QVariant &amp;, const QList&lt; <a class="el" href="class_qwt_legend_data.html">QwtLegendData</a> &gt; &amp;)</td></tr>
  111. <tr class="memdesc:a0a294317170adf5c271c1ce243f66a87"><td class="mdescLeft">&#160;</td><td class="mdescRight">Update the entries for an item. <a href="class_qwt_legend.html#a0a294317170adf5c271c1ce243f66a87">More...</a><br /></td></tr>
  112. <tr class="separator:a0a294317170adf5c271c1ce243f66a87"><td class="memSeparator" colspan="2">&#160;</td></tr>
  113. <tr class="inherit_header pub_slots_class_qwt_abstract_legend"><td colspan="2" onclick="javascript:toggleInherit('pub_slots_class_qwt_abstract_legend')"><img src="closed.png" alt="-"/>&#160;Public Slots inherited from <a class="el" href="class_qwt_abstract_legend.html">QwtAbstractLegend</a></td></tr>
  114. <tr class="memitem:aa9fc80c9e1dcbcfef51b96a3bff268ca inherit pub_slots_class_qwt_abstract_legend"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_legend.html#aa9fc80c9e1dcbcfef51b96a3bff268ca">updateLegend</a> (const QVariant &amp;itemInfo, const QList&lt; <a class="el" href="class_qwt_legend_data.html">QwtLegendData</a> &gt; &amp;data)=0</td></tr>
  115. <tr class="memdesc:aa9fc80c9e1dcbcfef51b96a3bff268ca inherit pub_slots_class_qwt_abstract_legend"><td class="mdescLeft">&#160;</td><td class="mdescRight">Update the entries for a plot item. <a href="class_qwt_abstract_legend.html#aa9fc80c9e1dcbcfef51b96a3bff268ca">More...</a><br /></td></tr>
  116. <tr class="separator:aa9fc80c9e1dcbcfef51b96a3bff268ca inherit pub_slots_class_qwt_abstract_legend"><td class="memSeparator" colspan="2">&#160;</td></tr>
  117. </table><table class="memberdecls">
  118. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="signals"></a>
  119. Signals</h2></td></tr>
  120. <tr class="memitem:a26619e20d875f1e8c666b982a897244b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a26619e20d875f1e8c666b982a897244b">clicked</a> (const QVariant &amp;<a class="el" href="class_qwt_legend.html#a2c881a53105fc1c4c600f7e4d075c7be">itemInfo</a>, int index)</td></tr>
  121. <tr class="separator:a26619e20d875f1e8c666b982a897244b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  122. <tr class="memitem:ae54179a767337c154beaa826c57dda87"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#ae54179a767337c154beaa826c57dda87">checked</a> (const QVariant &amp;<a class="el" href="class_qwt_legend.html#a2c881a53105fc1c4c600f7e4d075c7be">itemInfo</a>, bool on, int index)</td></tr>
  123. <tr class="separator:ae54179a767337c154beaa826c57dda87"><td class="memSeparator" colspan="2">&#160;</td></tr>
  124. </table><table class="memberdecls">
  125. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  126. Public Member Functions</h2></td></tr>
  127. <tr class="memitem:adf5a64070a546eaac36fc9afac56b7fb"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#adf5a64070a546eaac36fc9afac56b7fb">QwtLegend</a> (QWidget *parent=NULL)</td></tr>
  128. <tr class="separator:adf5a64070a546eaac36fc9afac56b7fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  129. <tr class="memitem:a2dd3bc628652909b74e7ddb5db021ea5"><td class="memItemLeft" align="right" valign="top"><a id="a2dd3bc628652909b74e7ddb5db021ea5"></a>
  130. virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a2dd3bc628652909b74e7ddb5db021ea5">~QwtLegend</a> ()</td></tr>
  131. <tr class="memdesc:a2dd3bc628652909b74e7ddb5db021ea5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
  132. <tr class="separator:a2dd3bc628652909b74e7ddb5db021ea5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  133. <tr class="memitem:adc427eb1a6ee6a3c17f7c1b8867b48b2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#adc427eb1a6ee6a3c17f7c1b8867b48b2">setMaxColumns</a> (uint numColums)</td></tr>
  134. <tr class="memdesc:adc427eb1a6ee6a3c17f7c1b8867b48b2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the maximum number of entries in a row. <a href="class_qwt_legend.html#adc427eb1a6ee6a3c17f7c1b8867b48b2">More...</a><br /></td></tr>
  135. <tr class="separator:adc427eb1a6ee6a3c17f7c1b8867b48b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  136. <tr class="memitem:ad5c80393cb8ac93d98eaa7d1d77cf1f7"><td class="memItemLeft" align="right" valign="top">uint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#ad5c80393cb8ac93d98eaa7d1d77cf1f7">maxColumns</a> () const</td></tr>
  137. <tr class="separator:ad5c80393cb8ac93d98eaa7d1d77cf1f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  138. <tr class="memitem:af977ff3e749f8281ee8ad4b926542b50"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#af977ff3e749f8281ee8ad4b926542b50">setDefaultItemMode</a> (<a class="el" href="class_qwt_legend_data.html#aaa33cc8e6aec17440df5d4c38d7545b7">QwtLegendData::Mode</a>)</td></tr>
  139. <tr class="memdesc:af977ff3e749f8281ee8ad4b926542b50"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the default mode for legend labels. <a href="class_qwt_legend.html#af977ff3e749f8281ee8ad4b926542b50">More...</a><br /></td></tr>
  140. <tr class="separator:af977ff3e749f8281ee8ad4b926542b50"><td class="memSeparator" colspan="2">&#160;</td></tr>
  141. <tr class="memitem:ab3104f1cf7a872384bdf5fb39ba46f99"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_qwt_legend_data.html#aaa33cc8e6aec17440df5d4c38d7545b7">QwtLegendData::Mode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#ab3104f1cf7a872384bdf5fb39ba46f99">defaultItemMode</a> () const</td></tr>
  142. <tr class="separator:ab3104f1cf7a872384bdf5fb39ba46f99"><td class="memSeparator" colspan="2">&#160;</td></tr>
  143. <tr class="memitem:aa52edeceb553ae703516c984f34d7ab7"><td class="memItemLeft" align="right" valign="top">QWidget *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#aa52edeceb553ae703516c984f34d7ab7">contentsWidget</a> ()</td></tr>
  144. <tr class="separator:aa52edeceb553ae703516c984f34d7ab7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  145. <tr class="memitem:a66934c7b4b45c0213fa4cf6fa9e53943"><td class="memItemLeft" align="right" valign="top">const QWidget *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a66934c7b4b45c0213fa4cf6fa9e53943">contentsWidget</a> () const</td></tr>
  146. <tr class="separator:a66934c7b4b45c0213fa4cf6fa9e53943"><td class="memSeparator" colspan="2">&#160;</td></tr>
  147. <tr class="memitem:a5c71e0bf27a1732e7a4a2780b4835128"><td class="memItemLeft" align="right" valign="top">QWidget *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a5c71e0bf27a1732e7a4a2780b4835128">legendWidget</a> (const QVariant &amp;) const</td></tr>
  148. <tr class="separator:a5c71e0bf27a1732e7a4a2780b4835128"><td class="memSeparator" colspan="2">&#160;</td></tr>
  149. <tr class="memitem:af23aeb34e562218c32a8a4014534f930"><td class="memItemLeft" align="right" valign="top">QList&lt; QWidget * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#af23aeb34e562218c32a8a4014534f930">legendWidgets</a> (const QVariant &amp;) const</td></tr>
  150. <tr class="separator:af23aeb34e562218c32a8a4014534f930"><td class="memSeparator" colspan="2">&#160;</td></tr>
  151. <tr class="memitem:a2c881a53105fc1c4c600f7e4d075c7be"><td class="memItemLeft" align="right" valign="top">QVariant&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a2c881a53105fc1c4c600f7e4d075c7be">itemInfo</a> (const QWidget *) const</td></tr>
  152. <tr class="separator:a2c881a53105fc1c4c600f7e4d075c7be"><td class="memSeparator" colspan="2">&#160;</td></tr>
  153. <tr class="memitem:ade86e158b8254fe76d42e85f9808c827"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#ade86e158b8254fe76d42e85f9808c827">eventFilter</a> (QObject *, QEvent *)</td></tr>
  154. <tr class="separator:ade86e158b8254fe76d42e85f9808c827"><td class="memSeparator" colspan="2">&#160;</td></tr>
  155. <tr class="memitem:ae8a77d6e9fce19066d9ff7a77bdb5eff"><td class="memItemLeft" align="right" valign="top"><a id="ae8a77d6e9fce19066d9ff7a77bdb5eff"></a>
  156. virtual QSize&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#ae8a77d6e9fce19066d9ff7a77bdb5eff">sizeHint</a> () const</td></tr>
  157. <tr class="memdesc:ae8a77d6e9fce19066d9ff7a77bdb5eff"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a size hint. <br /></td></tr>
  158. <tr class="separator:ae8a77d6e9fce19066d9ff7a77bdb5eff"><td class="memSeparator" colspan="2">&#160;</td></tr>
  159. <tr class="memitem:aded2e6c182b4b7268a391a508041af42"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#aded2e6c182b4b7268a391a508041af42">heightForWidth</a> (int width) const</td></tr>
  160. <tr class="separator:aded2e6c182b4b7268a391a508041af42"><td class="memSeparator" colspan="2">&#160;</td></tr>
  161. <tr class="memitem:a35e2babbf9e2f0df29f07bdb9230b82d"><td class="memItemLeft" align="right" valign="top">QScrollBar *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a35e2babbf9e2f0df29f07bdb9230b82d">horizontalScrollBar</a> () const</td></tr>
  162. <tr class="separator:a35e2babbf9e2f0df29f07bdb9230b82d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  163. <tr class="memitem:a2e567054b220ba850e4c1b7800a2ad82"><td class="memItemLeft" align="right" valign="top">QScrollBar *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a2e567054b220ba850e4c1b7800a2ad82">verticalScrollBar</a> () const</td></tr>
  164. <tr class="separator:a2e567054b220ba850e4c1b7800a2ad82"><td class="memSeparator" colspan="2">&#160;</td></tr>
  165. <tr class="memitem:a41c46ddb5b69ec23b76d3016a908535d"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a41c46ddb5b69ec23b76d3016a908535d">renderLegend</a> (QPainter *, const QRectF &amp;, bool fillBackground) const</td></tr>
  166. <tr class="separator:a41c46ddb5b69ec23b76d3016a908535d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  167. <tr class="memitem:a7d935dface0a2cfd770daffa0c3c12ab"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a7d935dface0a2cfd770daffa0c3c12ab">renderItem</a> (QPainter *, const QWidget *, const QRectF &amp;, bool fillBackground) const</td></tr>
  168. <tr class="separator:a7d935dface0a2cfd770daffa0c3c12ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
  169. <tr class="memitem:aced18eb9dc01af9f89da7e52491a9ee1"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#aced18eb9dc01af9f89da7e52491a9ee1">isEmpty</a> () const</td></tr>
  170. <tr class="separator:aced18eb9dc01af9f89da7e52491a9ee1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  171. <tr class="memitem:af6479d6dd8ac45142ce0da5d8be29a2a"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#af6479d6dd8ac45142ce0da5d8be29a2a">scrollExtent</a> (Qt::Orientation) const</td></tr>
  172. <tr class="separator:af6479d6dd8ac45142ce0da5d8be29a2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  173. <tr class="inherit_header pub_methods_class_qwt_abstract_legend"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_qwt_abstract_legend')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_qwt_abstract_legend.html">QwtAbstractLegend</a></td></tr>
  174. <tr class="memitem:a77092d06decd579fcde5c90875c3830b inherit pub_methods_class_qwt_abstract_legend"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_legend.html#a77092d06decd579fcde5c90875c3830b">QwtAbstractLegend</a> (QWidget *parent=NULL)</td></tr>
  175. <tr class="separator:a77092d06decd579fcde5c90875c3830b inherit pub_methods_class_qwt_abstract_legend"><td class="memSeparator" colspan="2">&#160;</td></tr>
  176. <tr class="memitem:a6d86d9c50679dea9fefafc457fc70814 inherit pub_methods_class_qwt_abstract_legend"><td class="memItemLeft" align="right" valign="top"><a id="a6d86d9c50679dea9fefafc457fc70814"></a>
  177. virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_legend.html#a6d86d9c50679dea9fefafc457fc70814">~QwtAbstractLegend</a> ()</td></tr>
  178. <tr class="memdesc:a6d86d9c50679dea9fefafc457fc70814 inherit pub_methods_class_qwt_abstract_legend"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
  179. <tr class="separator:a6d86d9c50679dea9fefafc457fc70814 inherit pub_methods_class_qwt_abstract_legend"><td class="memSeparator" colspan="2">&#160;</td></tr>
  180. </table><table class="memberdecls">
  181. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-slots"></a>
  182. Protected Slots</h2></td></tr>
  183. <tr class="memitem:a9e0e1b18a6d18b113802935bb6135921"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a9e0e1b18a6d18b113802935bb6135921">itemClicked</a> ()</td></tr>
  184. <tr class="separator:a9e0e1b18a6d18b113802935bb6135921"><td class="memSeparator" colspan="2">&#160;</td></tr>
  185. <tr class="memitem:a19429ac46c36ca12531779099476ac8a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a19429ac46c36ca12531779099476ac8a">itemChecked</a> (bool)</td></tr>
  186. <tr class="separator:a19429ac46c36ca12531779099476ac8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  187. </table><table class="memberdecls">
  188. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
  189. Protected Member Functions</h2></td></tr>
  190. <tr class="memitem:a1c5e7654a2fb4d4cdc00c57c5de56e29"><td class="memItemLeft" align="right" valign="top">virtual QWidget *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a1c5e7654a2fb4d4cdc00c57c5de56e29">createWidget</a> (const <a class="el" href="class_qwt_legend_data.html">QwtLegendData</a> &amp;) const</td></tr>
  191. <tr class="memdesc:a1c5e7654a2fb4d4cdc00c57c5de56e29"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a widget to be inserted into the legend. <a href="class_qwt_legend.html#a1c5e7654a2fb4d4cdc00c57c5de56e29">More...</a><br /></td></tr>
  192. <tr class="separator:a1c5e7654a2fb4d4cdc00c57c5de56e29"><td class="memSeparator" colspan="2">&#160;</td></tr>
  193. <tr class="memitem:a96d3546878914d04df4770699deb3cd3"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a96d3546878914d04df4770699deb3cd3">updateWidget</a> (QWidget *widget, const <a class="el" href="class_qwt_legend_data.html">QwtLegendData</a> &amp;)</td></tr>
  194. <tr class="memdesc:a96d3546878914d04df4770699deb3cd3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Update the widget. <a href="class_qwt_legend.html#a96d3546878914d04df4770699deb3cd3">More...</a><br /></td></tr>
  195. <tr class="separator:a96d3546878914d04df4770699deb3cd3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  196. </table>
  197. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  198. <div class="textblock"><p>The legend widget. </p>
  199. <p>The <a class="el" href="class_qwt_legend.html" title="The legend widget.">QwtLegend</a> widget is a tabular arrangement of legend items. Legend items might be any type of widget, but in general they will be a <a class="el" href="class_qwt_legend_label.html" title="A widget representing something on a QwtLegend.">QwtLegendLabel</a>.</p>
  200. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_legend_label.html" title="A widget representing something on a QwtLegend.">QwtLegendLabel</a>, <a class="el" href="class_qwt_plot_item.html" title="Base class for items on the plot canvas.">QwtPlotItem</a>, <a class="el" href="class_qwt_plot.html" title="A 2-D plotting widget.">QwtPlot</a> </dd></dl>
  201. </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  202. <a id="adf5a64070a546eaac36fc9afac56b7fb"></a>
  203. <h2 class="memtitle"><span class="permalink"><a href="#adf5a64070a546eaac36fc9afac56b7fb">&#9670;&nbsp;</a></span>QwtLegend()</h2>
  204. <div class="memitem">
  205. <div class="memproto">
  206. <table class="mlabels">
  207. <tr>
  208. <td class="mlabels-left">
  209. <table class="memname">
  210. <tr>
  211. <td class="memname">QwtLegend::QwtLegend </td>
  212. <td>(</td>
  213. <td class="paramtype">QWidget *&#160;</td>
  214. <td class="paramname"><em>parent</em> = <code>NULL</code></td><td>)</td>
  215. <td></td>
  216. </tr>
  217. </table>
  218. </td>
  219. <td class="mlabels-right">
  220. <span class="mlabels"><span class="mlabel">explicit</span></span> </td>
  221. </tr>
  222. </table>
  223. </div><div class="memdoc">
  224. <p>Constructor </p><dl class="params"><dt>Parameters</dt><dd>
  225. <table class="params">
  226. <tr><td class="paramname">parent</td><td>Parent widget </td></tr>
  227. </table>
  228. </dd>
  229. </dl>
  230. </div>
  231. </div>
  232. <h2 class="groupheader">Member Function Documentation</h2>
  233. <a id="ae54179a767337c154beaa826c57dda87"></a>
  234. <h2 class="memtitle"><span class="permalink"><a href="#ae54179a767337c154beaa826c57dda87">&#9670;&nbsp;</a></span>checked</h2>
  235. <div class="memitem">
  236. <div class="memproto">
  237. <table class="mlabels">
  238. <tr>
  239. <td class="mlabels-left">
  240. <table class="memname">
  241. <tr>
  242. <td class="memname">void QwtLegend::checked </td>
  243. <td>(</td>
  244. <td class="paramtype">const QVariant &amp;&#160;</td>
  245. <td class="paramname"><em>itemInfo</em>, </td>
  246. </tr>
  247. <tr>
  248. <td class="paramkey"></td>
  249. <td></td>
  250. <td class="paramtype">bool&#160;</td>
  251. <td class="paramname"><em>on</em>, </td>
  252. </tr>
  253. <tr>
  254. <td class="paramkey"></td>
  255. <td></td>
  256. <td class="paramtype">int&#160;</td>
  257. <td class="paramname"><em>index</em>&#160;</td>
  258. </tr>
  259. <tr>
  260. <td></td>
  261. <td>)</td>
  262. <td></td><td></td>
  263. </tr>
  264. </table>
  265. </td>
  266. <td class="mlabels-right">
  267. <span class="mlabels"><span class="mlabel">signal</span></span> </td>
  268. </tr>
  269. </table>
  270. </div><div class="memdoc">
  271. <p>A signal which is emitted when the user has clicked on a legend label, which is in <a class="el" href="class_qwt_legend_data.html#aaa33cc8e6aec17440df5d4c38d7545b7a250e05444c9927d83d3815d9f5593917" title="The legend item is checkable, like a checkable button.">QwtLegendData::Checkable</a> mode</p>
  272. <dl class="params"><dt>Parameters</dt><dd>
  273. <table class="params">
  274. <tr><td class="paramname">itemInfo</td><td>Info for the item of the selected legend label </td></tr>
  275. <tr><td class="paramname">index</td><td>Index of the legend label in the list of widgets that are associated with the plot item </td></tr>
  276. <tr><td class="paramname">on</td><td>True when the legend label is checked</td></tr>
  277. </table>
  278. </dd>
  279. </dl>
  280. <dl class="section note"><dt>Note</dt><dd>clicks are disabled as default </dd></dl>
  281. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_legend.html#af977ff3e749f8281ee8ad4b926542b50" title="Set the default mode for legend labels.">setDefaultItemMode()</a>, <a class="el" href="class_qwt_legend.html#ab3104f1cf7a872384bdf5fb39ba46f99">defaultItemMode()</a>, <a class="el" href="class_qwt_plot.html#a3b79857d22eccc92224605934c493025" title="Build an information, that can be used to identify a plot item on the legend.">QwtPlot::itemToInfo()</a> </dd></dl>
  282. </div>
  283. </div>
  284. <a id="a26619e20d875f1e8c666b982a897244b"></a>
  285. <h2 class="memtitle"><span class="permalink"><a href="#a26619e20d875f1e8c666b982a897244b">&#9670;&nbsp;</a></span>clicked</h2>
  286. <div class="memitem">
  287. <div class="memproto">
  288. <table class="mlabels">
  289. <tr>
  290. <td class="mlabels-left">
  291. <table class="memname">
  292. <tr>
  293. <td class="memname">void QwtLegend::clicked </td>
  294. <td>(</td>
  295. <td class="paramtype">const QVariant &amp;&#160;</td>
  296. <td class="paramname"><em>itemInfo</em>, </td>
  297. </tr>
  298. <tr>
  299. <td class="paramkey"></td>
  300. <td></td>
  301. <td class="paramtype">int&#160;</td>
  302. <td class="paramname"><em>index</em>&#160;</td>
  303. </tr>
  304. <tr>
  305. <td></td>
  306. <td>)</td>
  307. <td></td><td></td>
  308. </tr>
  309. </table>
  310. </td>
  311. <td class="mlabels-right">
  312. <span class="mlabels"><span class="mlabel">signal</span></span> </td>
  313. </tr>
  314. </table>
  315. </div><div class="memdoc">
  316. <p>A signal which is emitted when the user has clicked on a legend label, which is in <a class="el" href="class_qwt_legend_data.html#aaa33cc8e6aec17440df5d4c38d7545b7a39077c66db9fe2faf4d85a6f9266583f" title="The legend item is clickable, like a push button.">QwtLegendData::Clickable</a> mode.</p>
  317. <dl class="params"><dt>Parameters</dt><dd>
  318. <table class="params">
  319. <tr><td class="paramname">itemInfo</td><td>Info for the item item of the selected legend item </td></tr>
  320. <tr><td class="paramname">index</td><td>Index of the legend label in the list of widgets that are associated with the plot item</td></tr>
  321. </table>
  322. </dd>
  323. </dl>
  324. <dl class="section note"><dt>Note</dt><dd>clicks are disabled as default </dd></dl>
  325. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_legend.html#af977ff3e749f8281ee8ad4b926542b50" title="Set the default mode for legend labels.">setDefaultItemMode()</a>, <a class="el" href="class_qwt_legend.html#ab3104f1cf7a872384bdf5fb39ba46f99">defaultItemMode()</a>, <a class="el" href="class_qwt_plot.html#a3b79857d22eccc92224605934c493025" title="Build an information, that can be used to identify a plot item on the legend.">QwtPlot::itemToInfo()</a> </dd></dl>
  326. </div>
  327. </div>
  328. <a id="aa52edeceb553ae703516c984f34d7ab7"></a>
  329. <h2 class="memtitle"><span class="permalink"><a href="#aa52edeceb553ae703516c984f34d7ab7">&#9670;&nbsp;</a></span>contentsWidget() <span class="overload">[1/2]</span></h2>
  330. <div class="memitem">
  331. <div class="memproto">
  332. <table class="memname">
  333. <tr>
  334. <td class="memname">QWidget * QwtLegend::contentsWidget </td>
  335. <td>(</td>
  336. <td class="paramname"></td><td>)</td>
  337. <td></td>
  338. </tr>
  339. </table>
  340. </div><div class="memdoc">
  341. <p>The contents widget is the only child of the viewport of the internal QScrollArea and the parent widget of all legend items.</p>
  342. <dl class="section return"><dt>Returns</dt><dd>Container widget of the legend items </dd></dl>
  343. </div>
  344. </div>
  345. <a id="a66934c7b4b45c0213fa4cf6fa9e53943"></a>
  346. <h2 class="memtitle"><span class="permalink"><a href="#a66934c7b4b45c0213fa4cf6fa9e53943">&#9670;&nbsp;</a></span>contentsWidget() <span class="overload">[2/2]</span></h2>
  347. <div class="memitem">
  348. <div class="memproto">
  349. <table class="memname">
  350. <tr>
  351. <td class="memname">const QWidget * QwtLegend::contentsWidget </td>
  352. <td>(</td>
  353. <td class="paramname"></td><td>)</td>
  354. <td> const</td>
  355. </tr>
  356. </table>
  357. </div><div class="memdoc">
  358. <p>The contents widget is the only child of the viewport of the internal QScrollArea and the parent widget of all legend items.</p>
  359. <dl class="section return"><dt>Returns</dt><dd>Container widget of the legend items </dd></dl>
  360. </div>
  361. </div>
  362. <a id="a1c5e7654a2fb4d4cdc00c57c5de56e29"></a>
  363. <h2 class="memtitle"><span class="permalink"><a href="#a1c5e7654a2fb4d4cdc00c57c5de56e29">&#9670;&nbsp;</a></span>createWidget()</h2>
  364. <div class="memitem">
  365. <div class="memproto">
  366. <table class="mlabels">
  367. <tr>
  368. <td class="mlabels-left">
  369. <table class="memname">
  370. <tr>
  371. <td class="memname">QWidget * QwtLegend::createWidget </td>
  372. <td>(</td>
  373. <td class="paramtype">const <a class="el" href="class_qwt_legend_data.html">QwtLegendData</a> &amp;&#160;</td>
  374. <td class="paramname"><em>legendData</em></td><td>)</td>
  375. <td> const</td>
  376. </tr>
  377. </table>
  378. </td>
  379. <td class="mlabels-right">
  380. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
  381. </tr>
  382. </table>
  383. </div><div class="memdoc">
  384. <p>Create a widget to be inserted into the legend. </p>
  385. <p>The default implementation returns a <a class="el" href="class_qwt_legend_label.html" title="A widget representing something on a QwtLegend.">QwtLegendLabel</a>.</p>
  386. <dl class="params"><dt>Parameters</dt><dd>
  387. <table class="params">
  388. <tr><td class="paramname">legendData</td><td>Attributes of the legend entry </td></tr>
  389. </table>
  390. </dd>
  391. </dl>
  392. <dl class="section return"><dt>Returns</dt><dd>Widget representing data on the legend</dd></dl>
  393. <dl class="section note"><dt>Note</dt><dd><a class="el" href="class_qwt_legend.html#a96d3546878914d04df4770699deb3cd3" title="Update the widget.">updateWidget()</a> will called soon after <a class="el" href="class_qwt_legend.html#a1c5e7654a2fb4d4cdc00c57c5de56e29" title="Create a widget to be inserted into the legend.">createWidget()</a> with the same attributes. </dd></dl>
  394. </div>
  395. </div>
  396. <a id="ab3104f1cf7a872384bdf5fb39ba46f99"></a>
  397. <h2 class="memtitle"><span class="permalink"><a href="#ab3104f1cf7a872384bdf5fb39ba46f99">&#9670;&nbsp;</a></span>defaultItemMode()</h2>
  398. <div class="memitem">
  399. <div class="memproto">
  400. <table class="memname">
  401. <tr>
  402. <td class="memname"><a class="el" href="class_qwt_legend_data.html#aaa33cc8e6aec17440df5d4c38d7545b7">QwtLegendData::Mode</a> QwtLegend::defaultItemMode </td>
  403. <td>(</td>
  404. <td class="paramname"></td><td>)</td>
  405. <td> const</td>
  406. </tr>
  407. </table>
  408. </div><div class="memdoc">
  409. <dl class="section return"><dt>Returns</dt><dd>Default item mode </dd></dl>
  410. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_legend.html#af977ff3e749f8281ee8ad4b926542b50" title="Set the default mode for legend labels.">setDefaultItemMode()</a> </dd></dl>
  411. </div>
  412. </div>
  413. <a id="ade86e158b8254fe76d42e85f9808c827"></a>
  414. <h2 class="memtitle"><span class="permalink"><a href="#ade86e158b8254fe76d42e85f9808c827">&#9670;&nbsp;</a></span>eventFilter()</h2>
  415. <div class="memitem">
  416. <div class="memproto">
  417. <table class="mlabels">
  418. <tr>
  419. <td class="mlabels-left">
  420. <table class="memname">
  421. <tr>
  422. <td class="memname">bool QwtLegend::eventFilter </td>
  423. <td>(</td>
  424. <td class="paramtype">QObject *&#160;</td>
  425. <td class="paramname"><em>object</em>, </td>
  426. </tr>
  427. <tr>
  428. <td class="paramkey"></td>
  429. <td></td>
  430. <td class="paramtype">QEvent *&#160;</td>
  431. <td class="paramname"><em>event</em>&#160;</td>
  432. </tr>
  433. <tr>
  434. <td></td>
  435. <td>)</td>
  436. <td></td><td></td>
  437. </tr>
  438. </table>
  439. </td>
  440. <td class="mlabels-right">
  441. <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
  442. </tr>
  443. </table>
  444. </div><div class="memdoc">
  445. <p>Handle QEvent::ChildRemoved andQEvent::LayoutRequest events for the <a class="el" href="class_qwt_legend.html#aa52edeceb553ae703516c984f34d7ab7">contentsWidget()</a>.</p>
  446. <dl class="params"><dt>Parameters</dt><dd>
  447. <table class="params">
  448. <tr><td class="paramname">object</td><td>Object to be filtered </td></tr>
  449. <tr><td class="paramname">event</td><td>Event</td></tr>
  450. </table>
  451. </dd>
  452. </dl>
  453. <dl class="section return"><dt>Returns</dt><dd>Forwarded to QwtAbstractLegend::eventFilter() </dd></dl>
  454. </div>
  455. </div>
  456. <a id="aded2e6c182b4b7268a391a508041af42"></a>
  457. <h2 class="memtitle"><span class="permalink"><a href="#aded2e6c182b4b7268a391a508041af42">&#9670;&nbsp;</a></span>heightForWidth()</h2>
  458. <div class="memitem">
  459. <div class="memproto">
  460. <table class="mlabels">
  461. <tr>
  462. <td class="mlabels-left">
  463. <table class="memname">
  464. <tr>
  465. <td class="memname">int QwtLegend::heightForWidth </td>
  466. <td>(</td>
  467. <td class="paramtype">int&#160;</td>
  468. <td class="paramname"><em>width</em></td><td>)</td>
  469. <td> const</td>
  470. </tr>
  471. </table>
  472. </td>
  473. <td class="mlabels-right">
  474. <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
  475. </tr>
  476. </table>
  477. </div><div class="memdoc">
  478. <dl class="section return"><dt>Returns</dt><dd>The preferred height, for a width. </dd></dl>
  479. <dl class="params"><dt>Parameters</dt><dd>
  480. <table class="params">
  481. <tr><td class="paramname">width</td><td>Width </td></tr>
  482. </table>
  483. </dd>
  484. </dl>
  485. </div>
  486. </div>
  487. <a id="a35e2babbf9e2f0df29f07bdb9230b82d"></a>
  488. <h2 class="memtitle"><span class="permalink"><a href="#a35e2babbf9e2f0df29f07bdb9230b82d">&#9670;&nbsp;</a></span>horizontalScrollBar()</h2>
  489. <div class="memitem">
  490. <div class="memproto">
  491. <table class="memname">
  492. <tr>
  493. <td class="memname">QScrollBar * QwtLegend::horizontalScrollBar </td>
  494. <td>(</td>
  495. <td class="paramname"></td><td>)</td>
  496. <td> const</td>
  497. </tr>
  498. </table>
  499. </div><div class="memdoc">
  500. <dl class="section return"><dt>Returns</dt><dd>Horizontal scrollbar </dd></dl>
  501. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_legend.html#a2e567054b220ba850e4c1b7800a2ad82">verticalScrollBar()</a> </dd></dl>
  502. </div>
  503. </div>
  504. <a id="aced18eb9dc01af9f89da7e52491a9ee1"></a>
  505. <h2 class="memtitle"><span class="permalink"><a href="#aced18eb9dc01af9f89da7e52491a9ee1">&#9670;&nbsp;</a></span>isEmpty()</h2>
  506. <div class="memitem">
  507. <div class="memproto">
  508. <table class="mlabels">
  509. <tr>
  510. <td class="mlabels-left">
  511. <table class="memname">
  512. <tr>
  513. <td class="memname">bool QwtLegend::isEmpty </td>
  514. <td>(</td>
  515. <td class="paramname"></td><td>)</td>
  516. <td> const</td>
  517. </tr>
  518. </table>
  519. </td>
  520. <td class="mlabels-right">
  521. <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
  522. </tr>
  523. </table>
  524. </div><div class="memdoc">
  525. <dl class="section return"><dt>Returns</dt><dd>True, when no item is inserted </dd></dl>
  526. <p>Implements <a class="el" href="class_qwt_abstract_legend.html#a9904720ba92daf03d0e5d8559cc5cdfe">QwtAbstractLegend</a>.</p>
  527. </div>
  528. </div>
  529. <a id="a19429ac46c36ca12531779099476ac8a"></a>
  530. <h2 class="memtitle"><span class="permalink"><a href="#a19429ac46c36ca12531779099476ac8a">&#9670;&nbsp;</a></span>itemChecked</h2>
  531. <div class="memitem">
  532. <div class="memproto">
  533. <table class="mlabels">
  534. <tr>
  535. <td class="mlabels-left">
  536. <table class="memname">
  537. <tr>
  538. <td class="memname">void QwtLegend::itemChecked </td>
  539. <td>(</td>
  540. <td class="paramtype">bool&#160;</td>
  541. <td class="paramname"><em>on</em></td><td>)</td>
  542. <td></td>
  543. </tr>
  544. </table>
  545. </td>
  546. <td class="mlabels-right">
  547. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">slot</span></span> </td>
  548. </tr>
  549. </table>
  550. </div><div class="memdoc">
  551. <p>Called internally when the legend has been checked Emits a <a class="el" href="class_qwt_legend.html#ae54179a767337c154beaa826c57dda87">checked()</a> signal. </p>
  552. </div>
  553. </div>
  554. <a id="a9e0e1b18a6d18b113802935bb6135921"></a>
  555. <h2 class="memtitle"><span class="permalink"><a href="#a9e0e1b18a6d18b113802935bb6135921">&#9670;&nbsp;</a></span>itemClicked</h2>
  556. <div class="memitem">
  557. <div class="memproto">
  558. <table class="mlabels">
  559. <tr>
  560. <td class="mlabels-left">
  561. <table class="memname">
  562. <tr>
  563. <td class="memname">void QwtLegend::itemClicked </td>
  564. <td>(</td>
  565. <td class="paramname"></td><td>)</td>
  566. <td></td>
  567. </tr>
  568. </table>
  569. </td>
  570. <td class="mlabels-right">
  571. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">slot</span></span> </td>
  572. </tr>
  573. </table>
  574. </div><div class="memdoc">
  575. <p>Called internally when the legend has been clicked on. Emits a <a class="el" href="class_qwt_legend.html#a26619e20d875f1e8c666b982a897244b">clicked()</a> signal. </p>
  576. </div>
  577. </div>
  578. <a id="a2c881a53105fc1c4c600f7e4d075c7be"></a>
  579. <h2 class="memtitle"><span class="permalink"><a href="#a2c881a53105fc1c4c600f7e4d075c7be">&#9670;&nbsp;</a></span>itemInfo()</h2>
  580. <div class="memitem">
  581. <div class="memproto">
  582. <table class="memname">
  583. <tr>
  584. <td class="memname">QVariant QwtLegend::itemInfo </td>
  585. <td>(</td>
  586. <td class="paramtype">const QWidget *&#160;</td>
  587. <td class="paramname"><em>widget</em></td><td>)</td>
  588. <td> const</td>
  589. </tr>
  590. </table>
  591. </div><div class="memdoc">
  592. <p>Find the item that is associated to a widget</p>
  593. <dl class="params"><dt>Parameters</dt><dd>
  594. <table class="params">
  595. <tr><td class="paramname">widget</td><td>Widget on the legend </td></tr>
  596. </table>
  597. </dd>
  598. </dl>
  599. <dl class="section return"><dt>Returns</dt><dd>Associated item info </dd></dl>
  600. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_legend.html#a5c71e0bf27a1732e7a4a2780b4835128">legendWidget()</a> </dd></dl>
  601. </div>
  602. </div>
  603. <a id="a5c71e0bf27a1732e7a4a2780b4835128"></a>
  604. <h2 class="memtitle"><span class="permalink"><a href="#a5c71e0bf27a1732e7a4a2780b4835128">&#9670;&nbsp;</a></span>legendWidget()</h2>
  605. <div class="memitem">
  606. <div class="memproto">
  607. <table class="memname">
  608. <tr>
  609. <td class="memname">QWidget * QwtLegend::legendWidget </td>
  610. <td>(</td>
  611. <td class="paramtype">const QVariant &amp;&#160;</td>
  612. <td class="paramname"><em>itemInfo</em></td><td>)</td>
  613. <td> const</td>
  614. </tr>
  615. </table>
  616. </div><div class="memdoc">
  617. <dl class="section return"><dt>Returns</dt><dd>First widget in the list of widgets associated to an item </dd></dl>
  618. <dl class="params"><dt>Parameters</dt><dd>
  619. <table class="params">
  620. <tr><td class="paramname">itemInfo</td><td>Info about an item </td></tr>
  621. </table>
  622. </dd>
  623. </dl>
  624. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_legend.html#a2c881a53105fc1c4c600f7e4d075c7be">itemInfo()</a>, <a class="el" href="class_qwt_plot.html#a3b79857d22eccc92224605934c493025" title="Build an information, that can be used to identify a plot item on the legend.">QwtPlot::itemToInfo()</a> </dd></dl>
  625. <dl class="section note"><dt>Note</dt><dd>Almost all types of items have only one widget </dd></dl>
  626. </div>
  627. </div>
  628. <a id="af23aeb34e562218c32a8a4014534f930"></a>
  629. <h2 class="memtitle"><span class="permalink"><a href="#af23aeb34e562218c32a8a4014534f930">&#9670;&nbsp;</a></span>legendWidgets()</h2>
  630. <div class="memitem">
  631. <div class="memproto">
  632. <table class="memname">
  633. <tr>
  634. <td class="memname">QList&lt; QWidget * &gt; QwtLegend::legendWidgets </td>
  635. <td>(</td>
  636. <td class="paramtype">const QVariant &amp;&#160;</td>
  637. <td class="paramname"><em>itemInfo</em></td><td>)</td>
  638. <td> const</td>
  639. </tr>
  640. </table>
  641. </div><div class="memdoc">
  642. <dl class="section return"><dt>Returns</dt><dd>List of widgets associated to a item </dd></dl>
  643. <dl class="params"><dt>Parameters</dt><dd>
  644. <table class="params">
  645. <tr><td class="paramname">itemInfo</td><td>Info about an item </td></tr>
  646. </table>
  647. </dd>
  648. </dl>
  649. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_legend.html#a5c71e0bf27a1732e7a4a2780b4835128">legendWidget()</a>, <a class="el" href="class_qwt_legend.html#a2c881a53105fc1c4c600f7e4d075c7be">itemInfo()</a>, <a class="el" href="class_qwt_plot.html#a3b79857d22eccc92224605934c493025" title="Build an information, that can be used to identify a plot item on the legend.">QwtPlot::itemToInfo()</a> </dd></dl>
  650. </div>
  651. </div>
  652. <a id="ad5c80393cb8ac93d98eaa7d1d77cf1f7"></a>
  653. <h2 class="memtitle"><span class="permalink"><a href="#ad5c80393cb8ac93d98eaa7d1d77cf1f7">&#9670;&nbsp;</a></span>maxColumns()</h2>
  654. <div class="memitem">
  655. <div class="memproto">
  656. <table class="memname">
  657. <tr>
  658. <td class="memname">uint QwtLegend::maxColumns </td>
  659. <td>(</td>
  660. <td class="paramname"></td><td>)</td>
  661. <td> const</td>
  662. </tr>
  663. </table>
  664. </div><div class="memdoc">
  665. <dl class="section return"><dt>Returns</dt><dd>Maximum number of entries in a row </dd></dl>
  666. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_legend.html#adc427eb1a6ee6a3c17f7c1b8867b48b2" title="Set the maximum number of entries in a row.">setMaxColumns()</a>, <a class="el" href="class_qwt_dyn_grid_layout.html#a73e0cee4cf42ddf5b3f33947b1881143" title="Return the upper limit for the number of columns.">QwtDynGridLayout::maxColumns()</a> </dd></dl>
  667. </div>
  668. </div>
  669. <a id="a7d935dface0a2cfd770daffa0c3c12ab"></a>
  670. <h2 class="memtitle"><span class="permalink"><a href="#a7d935dface0a2cfd770daffa0c3c12ab">&#9670;&nbsp;</a></span>renderItem()</h2>
  671. <div class="memitem">
  672. <div class="memproto">
  673. <table class="mlabels">
  674. <tr>
  675. <td class="mlabels-left">
  676. <table class="memname">
  677. <tr>
  678. <td class="memname">void QwtLegend::renderItem </td>
  679. <td>(</td>
  680. <td class="paramtype">QPainter *&#160;</td>
  681. <td class="paramname"><em>painter</em>, </td>
  682. </tr>
  683. <tr>
  684. <td class="paramkey"></td>
  685. <td></td>
  686. <td class="paramtype">const QWidget *&#160;</td>
  687. <td class="paramname"><em>widget</em>, </td>
  688. </tr>
  689. <tr>
  690. <td class="paramkey"></td>
  691. <td></td>
  692. <td class="paramtype">const QRectF &amp;&#160;</td>
  693. <td class="paramname"><em>rect</em>, </td>
  694. </tr>
  695. <tr>
  696. <td class="paramkey"></td>
  697. <td></td>
  698. <td class="paramtype">bool&#160;</td>
  699. <td class="paramname"><em>fillBackground</em>&#160;</td>
  700. </tr>
  701. <tr>
  702. <td></td>
  703. <td>)</td>
  704. <td></td><td> const</td>
  705. </tr>
  706. </table>
  707. </td>
  708. <td class="mlabels-right">
  709. <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
  710. </tr>
  711. </table>
  712. </div><div class="memdoc">
  713. <p>Render a legend entry into a given rectangle.</p>
  714. <dl class="params"><dt>Parameters</dt><dd>
  715. <table class="params">
  716. <tr><td class="paramname">painter</td><td>Painter </td></tr>
  717. <tr><td class="paramname">widget</td><td>Widget representing a legend entry </td></tr>
  718. <tr><td class="paramname">rect</td><td>Bounding rectangle </td></tr>
  719. <tr><td class="paramname">fillBackground</td><td>When true, fill rect with the widget background</td></tr>
  720. </table>
  721. </dd>
  722. </dl>
  723. <dl class="section note"><dt>Note</dt><dd>When widget is not derived from <a class="el" href="class_qwt_legend_label.html" title="A widget representing something on a QwtLegend.">QwtLegendLabel</a> renderItem does nothing beside the background </dd></dl>
  724. </div>
  725. </div>
  726. <a id="a41c46ddb5b69ec23b76d3016a908535d"></a>
  727. <h2 class="memtitle"><span class="permalink"><a href="#a41c46ddb5b69ec23b76d3016a908535d">&#9670;&nbsp;</a></span>renderLegend()</h2>
  728. <div class="memitem">
  729. <div class="memproto">
  730. <table class="mlabels">
  731. <tr>
  732. <td class="mlabels-left">
  733. <table class="memname">
  734. <tr>
  735. <td class="memname">void QwtLegend::renderLegend </td>
  736. <td>(</td>
  737. <td class="paramtype">QPainter *&#160;</td>
  738. <td class="paramname"><em>painter</em>, </td>
  739. </tr>
  740. <tr>
  741. <td class="paramkey"></td>
  742. <td></td>
  743. <td class="paramtype">const QRectF &amp;&#160;</td>
  744. <td class="paramname"><em>rect</em>, </td>
  745. </tr>
  746. <tr>
  747. <td class="paramkey"></td>
  748. <td></td>
  749. <td class="paramtype">bool&#160;</td>
  750. <td class="paramname"><em>fillBackground</em>&#160;</td>
  751. </tr>
  752. <tr>
  753. <td></td>
  754. <td>)</td>
  755. <td></td><td> const</td>
  756. </tr>
  757. </table>
  758. </td>
  759. <td class="mlabels-right">
  760. <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
  761. </tr>
  762. </table>
  763. </div><div class="memdoc">
  764. <p>Render the legend into a given rectangle.</p>
  765. <dl class="params"><dt>Parameters</dt><dd>
  766. <table class="params">
  767. <tr><td class="paramname">painter</td><td>Painter </td></tr>
  768. <tr><td class="paramname">rect</td><td>Bounding rectangle </td></tr>
  769. <tr><td class="paramname">fillBackground</td><td>When true, fill rect with the widget background</td></tr>
  770. </table>
  771. </dd>
  772. </dl>
  773. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_legend.html#a41c46ddb5b69ec23b76d3016a908535d">renderLegend()</a> is used by <a class="el" href="class_qwt_plot_renderer.html" title="Renderer for exporting a plot to a document, a printer or anything else, that is supported by QPainte...">QwtPlotRenderer</a> - not by <a class="el" href="class_qwt_legend.html" title="The legend widget.">QwtLegend</a> itself </dd></dl>
  774. <p>Implements <a class="el" href="class_qwt_abstract_legend.html#a2fe1ac5ac1448e4d86b7437505214d9c">QwtAbstractLegend</a>.</p>
  775. </div>
  776. </div>
  777. <a id="af6479d6dd8ac45142ce0da5d8be29a2a"></a>
  778. <h2 class="memtitle"><span class="permalink"><a href="#af6479d6dd8ac45142ce0da5d8be29a2a">&#9670;&nbsp;</a></span>scrollExtent()</h2>
  779. <div class="memitem">
  780. <div class="memproto">
  781. <table class="mlabels">
  782. <tr>
  783. <td class="mlabels-left">
  784. <table class="memname">
  785. <tr>
  786. <td class="memname">int QwtLegend::scrollExtent </td>
  787. <td>(</td>
  788. <td class="paramtype">Qt::Orientation&#160;</td>
  789. <td class="paramname"><em>orientation</em></td><td>)</td>
  790. <td> const</td>
  791. </tr>
  792. </table>
  793. </td>
  794. <td class="mlabels-right">
  795. <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
  796. </tr>
  797. </table>
  798. </div><div class="memdoc">
  799. <p>Return the extent, that is needed for the scrollbars</p>
  800. <dl class="params"><dt>Parameters</dt><dd>
  801. <table class="params">
  802. <tr><td class="paramname">orientation</td><td>Orientation </td></tr>
  803. </table>
  804. </dd>
  805. </dl>
  806. <dl class="section return"><dt>Returns</dt><dd>The width of the vertical scrollbar for Qt::Horizontal and v.v. </dd></dl>
  807. <p>Reimplemented from <a class="el" href="class_qwt_abstract_legend.html#a619f3705f6f9be8c1f38df68d83a37ff">QwtAbstractLegend</a>.</p>
  808. </div>
  809. </div>
  810. <a id="af977ff3e749f8281ee8ad4b926542b50"></a>
  811. <h2 class="memtitle"><span class="permalink"><a href="#af977ff3e749f8281ee8ad4b926542b50">&#9670;&nbsp;</a></span>setDefaultItemMode()</h2>
  812. <div class="memitem">
  813. <div class="memproto">
  814. <table class="memname">
  815. <tr>
  816. <td class="memname">void QwtLegend::setDefaultItemMode </td>
  817. <td>(</td>
  818. <td class="paramtype"><a class="el" href="class_qwt_legend_data.html#aaa33cc8e6aec17440df5d4c38d7545b7">QwtLegendData::Mode</a>&#160;</td>
  819. <td class="paramname"><em>mode</em></td><td>)</td>
  820. <td></td>
  821. </tr>
  822. </table>
  823. </div><div class="memdoc">
  824. <p>Set the default mode for legend labels. </p>
  825. <p>Legend labels will be constructed according to the attributes in a <a class="el" href="class_qwt_legend_data.html" title="Attributes of an entry on a legend.">QwtLegendData</a> object. When it doesn't contain a value for the QwtLegendData::ModeRole the label will be initialized with the default mode of the legend.</p>
  826. <dl class="params"><dt>Parameters</dt><dd>
  827. <table class="params">
  828. <tr><td class="paramname">mode</td><td>Default item mode</td></tr>
  829. </table>
  830. </dd>
  831. </dl>
  832. <dl class="section see"><dt>See also</dt><dd>itemMode(), <a class="el" href="class_qwt_legend_data.html#a6d7b579487291f78d9cc26b59b53e32f">QwtLegendData::value()</a>, <a class="el" href="class_qwt_plot_item.html#a367ed5160b8475daf6b5b06558310f98" title="Return all information, that is needed to represent the item on the legend.">QwtPlotItem::legendData()</a> </dd></dl>
  833. <dl class="section note"><dt>Note</dt><dd>Changing the mode doesn't have any effect on existing labels. </dd></dl>
  834. </div>
  835. </div>
  836. <a id="adc427eb1a6ee6a3c17f7c1b8867b48b2"></a>
  837. <h2 class="memtitle"><span class="permalink"><a href="#adc427eb1a6ee6a3c17f7c1b8867b48b2">&#9670;&nbsp;</a></span>setMaxColumns()</h2>
  838. <div class="memitem">
  839. <div class="memproto">
  840. <table class="memname">
  841. <tr>
  842. <td class="memname">void QwtLegend::setMaxColumns </td>
  843. <td>(</td>
  844. <td class="paramtype">uint&#160;</td>
  845. <td class="paramname"><em>numColums</em></td><td>)</td>
  846. <td></td>
  847. </tr>
  848. </table>
  849. </div><div class="memdoc">
  850. <p>Set the maximum number of entries in a row. </p>
  851. <p>F.e when the maximum is set to 1 all items are aligned vertically. 0 means unlimited</p>
  852. <dl class="params"><dt>Parameters</dt><dd>
  853. <table class="params">
  854. <tr><td class="paramname">numColums</td><td>Maximum number of entries in a row</td></tr>
  855. </table>
  856. </dd>
  857. </dl>
  858. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_legend.html#ad5c80393cb8ac93d98eaa7d1d77cf1f7">maxColumns()</a>, <a class="el" href="class_qwt_dyn_grid_layout.html#a910bc4bcdecfa2d3a98a9bd091933014">QwtDynGridLayout::setMaxColumns()</a> </dd></dl>
  859. </div>
  860. </div>
  861. <a id="a0a294317170adf5c271c1ce243f66a87"></a>
  862. <h2 class="memtitle"><span class="permalink"><a href="#a0a294317170adf5c271c1ce243f66a87">&#9670;&nbsp;</a></span>updateLegend</h2>
  863. <div class="memitem">
  864. <div class="memproto">
  865. <table class="mlabels">
  866. <tr>
  867. <td class="mlabels-left">
  868. <table class="memname">
  869. <tr>
  870. <td class="memname">void QwtLegend::updateLegend </td>
  871. <td>(</td>
  872. <td class="paramtype">const QVariant &amp;&#160;</td>
  873. <td class="paramname"><em>itemInfo</em>, </td>
  874. </tr>
  875. <tr>
  876. <td class="paramkey"></td>
  877. <td></td>
  878. <td class="paramtype">const QList&lt; <a class="el" href="class_qwt_legend_data.html">QwtLegendData</a> &gt; &amp;&#160;</td>
  879. <td class="paramname"><em>legendData</em>&#160;</td>
  880. </tr>
  881. <tr>
  882. <td></td>
  883. <td>)</td>
  884. <td></td><td></td>
  885. </tr>
  886. </table>
  887. </td>
  888. <td class="mlabels-right">
  889. <span class="mlabels"><span class="mlabel">virtual</span><span class="mlabel">slot</span></span> </td>
  890. </tr>
  891. </table>
  892. </div><div class="memdoc">
  893. <p>Update the entries for an item. </p>
  894. <dl class="params"><dt>Parameters</dt><dd>
  895. <table class="params">
  896. <tr><td class="paramname">itemInfo</td><td>Info for an item </td></tr>
  897. <tr><td class="paramname">legendData</td><td>List of legend entry attributes for the item </td></tr>
  898. </table>
  899. </dd>
  900. </dl>
  901. </div>
  902. </div>
  903. <a id="a96d3546878914d04df4770699deb3cd3"></a>
  904. <h2 class="memtitle"><span class="permalink"><a href="#a96d3546878914d04df4770699deb3cd3">&#9670;&nbsp;</a></span>updateWidget()</h2>
  905. <div class="memitem">
  906. <div class="memproto">
  907. <table class="mlabels">
  908. <tr>
  909. <td class="mlabels-left">
  910. <table class="memname">
  911. <tr>
  912. <td class="memname">void QwtLegend::updateWidget </td>
  913. <td>(</td>
  914. <td class="paramtype">QWidget *&#160;</td>
  915. <td class="paramname"><em>widget</em>, </td>
  916. </tr>
  917. <tr>
  918. <td class="paramkey"></td>
  919. <td></td>
  920. <td class="paramtype">const <a class="el" href="class_qwt_legend_data.html">QwtLegendData</a> &amp;&#160;</td>
  921. <td class="paramname"><em>legendData</em>&#160;</td>
  922. </tr>
  923. <tr>
  924. <td></td>
  925. <td>)</td>
  926. <td></td><td></td>
  927. </tr>
  928. </table>
  929. </td>
  930. <td class="mlabels-right">
  931. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
  932. </tr>
  933. </table>
  934. </div><div class="memdoc">
  935. <p>Update the widget. </p>
  936. <dl class="params"><dt>Parameters</dt><dd>
  937. <table class="params">
  938. <tr><td class="paramname">widget</td><td>Usually a <a class="el" href="class_qwt_legend_label.html" title="A widget representing something on a QwtLegend.">QwtLegendLabel</a> </td></tr>
  939. <tr><td class="paramname">legendData</td><td>Attributes to be displayed</td></tr>
  940. </table>
  941. </dd>
  942. </dl>
  943. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_legend.html#a1c5e7654a2fb4d4cdc00c57c5de56e29" title="Create a widget to be inserted into the legend.">createWidget()</a> </dd></dl>
  944. <dl class="section note"><dt>Note</dt><dd>When widget is no <a class="el" href="class_qwt_legend_label.html" title="A widget representing something on a QwtLegend.">QwtLegendLabel</a> <a class="el" href="class_qwt_legend.html#a96d3546878914d04df4770699deb3cd3" title="Update the widget.">updateWidget()</a> does nothing. </dd></dl>
  945. </div>
  946. </div>
  947. <a id="a2e567054b220ba850e4c1b7800a2ad82"></a>
  948. <h2 class="memtitle"><span class="permalink"><a href="#a2e567054b220ba850e4c1b7800a2ad82">&#9670;&nbsp;</a></span>verticalScrollBar()</h2>
  949. <div class="memitem">
  950. <div class="memproto">
  951. <table class="memname">
  952. <tr>
  953. <td class="memname">QScrollBar * QwtLegend::verticalScrollBar </td>
  954. <td>(</td>
  955. <td class="paramname"></td><td>)</td>
  956. <td> const</td>
  957. </tr>
  958. </table>
  959. </div><div class="memdoc">
  960. <dl class="section return"><dt>Returns</dt><dd>Vertical scrollbar </dd></dl>
  961. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_legend.html#a35e2babbf9e2f0df29f07bdb9230b82d">horizontalScrollBar()</a> </dd></dl>
  962. </div>
  963. </div>
  964. </div><!-- contents -->
  965. </div><!-- doc-content -->
  966. <!-- start footer part -->
  967. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  968. <ul>
  969. <li class="navelem"><a class="el" href="class_qwt_legend.html">QwtLegend</a></li>
  970. <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20 </li>
  971. </ul>
  972. </div>
  973. </body>
  974. </html>