1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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"/>
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta name="generator" content="Doxygen 1.8.20"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <title>Qwt User's Guide: QwtLegend Class Reference</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="dynsections.js"></script>
- <link href="navtree.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="resize.js"></script>
- <script type="text/javascript" src="navtreedata.js"></script>
- <script type="text/javascript" src="navtree.js"></script>
- <link href="search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="search/searchdata.js"></script>
- <script type="text/javascript" src="search/search.js"></script>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
- <div id="titlearea">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
- <td id="projectalign" style="padding-left: 0.5em;">
- <div id="projectname">Qwt User's Guide
-  <span id="projectnumber">6.1.6</span>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.20 -->
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- var searchBox = new SearchBox("searchBox", "search",false,'Search');
- /* @license-end */
- </script>
- <script type="text/javascript" src="menudata.js"></script>
- <script type="text/javascript" src="menu.js"></script>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- $(function() {
- initMenu('',true,false,'search.php','Search');
- $(document).ready(function() { init_search(); });
- });
- /* @license-end */</script>
- <div id="main-nav"></div>
- </div><!-- top -->
- <div id="side-nav" class="ui-resizable side-nav-resizable">
- <div id="nav-tree">
- <div id="nav-tree-contents">
- <div id="nav-sync" class="sync"></div>
- </div>
- </div>
- <div id="splitbar" style="-moz-user-select:none;"
- class="ui-resizable-handle">
- </div>
- </div>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- $(document).ready(function(){initNavTree('class_qwt_legend.html',''); initResizable(); });
- /* @license-end */
- </script>
- <div id="doc-content">
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- </div>
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
- <div class="header">
- <div class="summary">
- <a href="#pub-slots">Public Slots</a> |
- <a href="#signals">Signals</a> |
- <a href="#pub-methods">Public Member Functions</a> |
- <a href="#pro-slots">Protected Slots</a> |
- <a href="#pro-methods">Protected Member Functions</a> |
- <a href="class_qwt_legend-members.html">List of all members</a> </div>
- <div class="headertitle">
- <div class="title">QwtLegend Class Reference</div> </div>
- </div><!--header-->
- <div class="contents">
- <p>The legend widget.
- <a href="class_qwt_legend.html#details">More...</a></p>
- <p><code>#include <<a class="el" href="qwt__legend_8h_source.html">qwt_legend.h</a>></code></p>
- <div class="dynheader">
- Inheritance diagram for QwtLegend:</div>
- <div class="dyncontent">
- <div class="center"><img src="class_qwt_legend__inherit__graph.png" border="0" usemap="#a_qwt_legend_inherit__map" alt="Inheritance graph"/></div>
- <map name="_qwt_legend_inherit__map" id="a_qwt_legend_inherit__map">
- <area shape="rect" title="The legend widget." alt="" coords="30,155,118,181"/>
- <area shape="rect" href="class_qwt_abstract_legend.html" title="Abstract base class for legend widgets." alt="" coords="5,80,143,107"/>
- <area shape="rect" title=" " alt="" coords="39,5,109,32"/>
- </map>
- <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
- <table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-slots"></a>
- Public Slots</h2></td></tr>
- <tr class="memitem:a0a294317170adf5c271c1ce243f66a87"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a0a294317170adf5c271c1ce243f66a87">updateLegend</a> (const QVariant &, const QList< <a class="el" href="class_qwt_legend_data.html">QwtLegendData</a> > &)</td></tr>
- <tr class="memdesc:a0a294317170adf5c271c1ce243f66a87"><td class="mdescLeft"> </td><td class="mdescRight">Update the entries for an item. <a href="class_qwt_legend.html#a0a294317170adf5c271c1ce243f66a87">More...</a><br /></td></tr>
- <tr class="separator:a0a294317170adf5c271c1ce243f66a87"><td class="memSeparator" colspan="2"> </td></tr>
- <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="-"/> Public Slots inherited from <a class="el" href="class_qwt_abstract_legend.html">QwtAbstractLegend</a></td></tr>
- <tr class="memitem:aa9fc80c9e1dcbcfef51b96a3bff268ca inherit pub_slots_class_qwt_abstract_legend"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_legend.html#aa9fc80c9e1dcbcfef51b96a3bff268ca">updateLegend</a> (const QVariant &itemInfo, const QList< <a class="el" href="class_qwt_legend_data.html">QwtLegendData</a> > &data)=0</td></tr>
- <tr class="memdesc:aa9fc80c9e1dcbcfef51b96a3bff268ca inherit pub_slots_class_qwt_abstract_legend"><td class="mdescLeft"> </td><td class="mdescRight">Update the entries for a plot item. <a href="class_qwt_abstract_legend.html#aa9fc80c9e1dcbcfef51b96a3bff268ca">More...</a><br /></td></tr>
- <tr class="separator:aa9fc80c9e1dcbcfef51b96a3bff268ca inherit pub_slots_class_qwt_abstract_legend"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="signals"></a>
- Signals</h2></td></tr>
- <tr class="memitem:a26619e20d875f1e8c666b982a897244b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a26619e20d875f1e8c666b982a897244b">clicked</a> (const QVariant &<a class="el" href="class_qwt_legend.html#a2c881a53105fc1c4c600f7e4d075c7be">itemInfo</a>, int index)</td></tr>
- <tr class="separator:a26619e20d875f1e8c666b982a897244b"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ae54179a767337c154beaa826c57dda87"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#ae54179a767337c154beaa826c57dda87">checked</a> (const QVariant &<a class="el" href="class_qwt_legend.html#a2c881a53105fc1c4c600f7e4d075c7be">itemInfo</a>, bool on, int index)</td></tr>
- <tr class="separator:ae54179a767337c154beaa826c57dda87"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
- Public Member Functions</h2></td></tr>
- <tr class="memitem:adf5a64070a546eaac36fc9afac56b7fb"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#adf5a64070a546eaac36fc9afac56b7fb">QwtLegend</a> (QWidget *parent=NULL)</td></tr>
- <tr class="separator:adf5a64070a546eaac36fc9afac56b7fb"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a2dd3bc628652909b74e7ddb5db021ea5"><td class="memItemLeft" align="right" valign="top"><a id="a2dd3bc628652909b74e7ddb5db021ea5"></a>
- virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a2dd3bc628652909b74e7ddb5db021ea5">~QwtLegend</a> ()</td></tr>
- <tr class="memdesc:a2dd3bc628652909b74e7ddb5db021ea5"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br /></td></tr>
- <tr class="separator:a2dd3bc628652909b74e7ddb5db021ea5"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:adc427eb1a6ee6a3c17f7c1b8867b48b2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#adc427eb1a6ee6a3c17f7c1b8867b48b2">setMaxColumns</a> (uint numColums)</td></tr>
- <tr class="memdesc:adc427eb1a6ee6a3c17f7c1b8867b48b2"><td class="mdescLeft"> </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>
- <tr class="separator:adc427eb1a6ee6a3c17f7c1b8867b48b2"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ad5c80393cb8ac93d98eaa7d1d77cf1f7"><td class="memItemLeft" align="right" valign="top">uint </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#ad5c80393cb8ac93d98eaa7d1d77cf1f7">maxColumns</a> () const</td></tr>
- <tr class="separator:ad5c80393cb8ac93d98eaa7d1d77cf1f7"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:af977ff3e749f8281ee8ad4b926542b50"><td class="memItemLeft" align="right" valign="top">void </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>
- <tr class="memdesc:af977ff3e749f8281ee8ad4b926542b50"><td class="mdescLeft"> </td><td class="mdescRight">Set the default mode for legend labels. <a href="class_qwt_legend.html#af977ff3e749f8281ee8ad4b926542b50">More...</a><br /></td></tr>
- <tr class="separator:af977ff3e749f8281ee8ad4b926542b50"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ab3104f1cf7a872384bdf5fb39ba46f99"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_qwt_legend_data.html#aaa33cc8e6aec17440df5d4c38d7545b7">QwtLegendData::Mode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#ab3104f1cf7a872384bdf5fb39ba46f99">defaultItemMode</a> () const</td></tr>
- <tr class="separator:ab3104f1cf7a872384bdf5fb39ba46f99"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aa52edeceb553ae703516c984f34d7ab7"><td class="memItemLeft" align="right" valign="top">QWidget * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#aa52edeceb553ae703516c984f34d7ab7">contentsWidget</a> ()</td></tr>
- <tr class="separator:aa52edeceb553ae703516c984f34d7ab7"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a66934c7b4b45c0213fa4cf6fa9e53943"><td class="memItemLeft" align="right" valign="top">const QWidget * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a66934c7b4b45c0213fa4cf6fa9e53943">contentsWidget</a> () const</td></tr>
- <tr class="separator:a66934c7b4b45c0213fa4cf6fa9e53943"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a5c71e0bf27a1732e7a4a2780b4835128"><td class="memItemLeft" align="right" valign="top">QWidget * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a5c71e0bf27a1732e7a4a2780b4835128">legendWidget</a> (const QVariant &) const</td></tr>
- <tr class="separator:a5c71e0bf27a1732e7a4a2780b4835128"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:af23aeb34e562218c32a8a4014534f930"><td class="memItemLeft" align="right" valign="top">QList< QWidget * > </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#af23aeb34e562218c32a8a4014534f930">legendWidgets</a> (const QVariant &) const</td></tr>
- <tr class="separator:af23aeb34e562218c32a8a4014534f930"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a2c881a53105fc1c4c600f7e4d075c7be"><td class="memItemLeft" align="right" valign="top">QVariant </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a2c881a53105fc1c4c600f7e4d075c7be">itemInfo</a> (const QWidget *) const</td></tr>
- <tr class="separator:a2c881a53105fc1c4c600f7e4d075c7be"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ade86e158b8254fe76d42e85f9808c827"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#ade86e158b8254fe76d42e85f9808c827">eventFilter</a> (QObject *, QEvent *)</td></tr>
- <tr class="separator:ade86e158b8254fe76d42e85f9808c827"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ae8a77d6e9fce19066d9ff7a77bdb5eff"><td class="memItemLeft" align="right" valign="top"><a id="ae8a77d6e9fce19066d9ff7a77bdb5eff"></a>
- virtual QSize </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#ae8a77d6e9fce19066d9ff7a77bdb5eff">sizeHint</a> () const</td></tr>
- <tr class="memdesc:ae8a77d6e9fce19066d9ff7a77bdb5eff"><td class="mdescLeft"> </td><td class="mdescRight">Return a size hint. <br /></td></tr>
- <tr class="separator:ae8a77d6e9fce19066d9ff7a77bdb5eff"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aded2e6c182b4b7268a391a508041af42"><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#aded2e6c182b4b7268a391a508041af42">heightForWidth</a> (int width) const</td></tr>
- <tr class="separator:aded2e6c182b4b7268a391a508041af42"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a35e2babbf9e2f0df29f07bdb9230b82d"><td class="memItemLeft" align="right" valign="top">QScrollBar * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a35e2babbf9e2f0df29f07bdb9230b82d">horizontalScrollBar</a> () const</td></tr>
- <tr class="separator:a35e2babbf9e2f0df29f07bdb9230b82d"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a2e567054b220ba850e4c1b7800a2ad82"><td class="memItemLeft" align="right" valign="top">QScrollBar * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a2e567054b220ba850e4c1b7800a2ad82">verticalScrollBar</a> () const</td></tr>
- <tr class="separator:a2e567054b220ba850e4c1b7800a2ad82"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a41c46ddb5b69ec23b76d3016a908535d"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a41c46ddb5b69ec23b76d3016a908535d">renderLegend</a> (QPainter *, const QRectF &, bool fillBackground) const</td></tr>
- <tr class="separator:a41c46ddb5b69ec23b76d3016a908535d"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a7d935dface0a2cfd770daffa0c3c12ab"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a7d935dface0a2cfd770daffa0c3c12ab">renderItem</a> (QPainter *, const QWidget *, const QRectF &, bool fillBackground) const</td></tr>
- <tr class="separator:a7d935dface0a2cfd770daffa0c3c12ab"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aced18eb9dc01af9f89da7e52491a9ee1"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#aced18eb9dc01af9f89da7e52491a9ee1">isEmpty</a> () const</td></tr>
- <tr class="separator:aced18eb9dc01af9f89da7e52491a9ee1"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:af6479d6dd8ac45142ce0da5d8be29a2a"><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#af6479d6dd8ac45142ce0da5d8be29a2a">scrollExtent</a> (Qt::Orientation) const</td></tr>
- <tr class="separator:af6479d6dd8ac45142ce0da5d8be29a2a"><td class="memSeparator" colspan="2"> </td></tr>
- <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="-"/> Public Member Functions inherited from <a class="el" href="class_qwt_abstract_legend.html">QwtAbstractLegend</a></td></tr>
- <tr class="memitem:a77092d06decd579fcde5c90875c3830b inherit pub_methods_class_qwt_abstract_legend"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_legend.html#a77092d06decd579fcde5c90875c3830b">QwtAbstractLegend</a> (QWidget *parent=NULL)</td></tr>
- <tr class="separator:a77092d06decd579fcde5c90875c3830b inherit pub_methods_class_qwt_abstract_legend"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a6d86d9c50679dea9fefafc457fc70814 inherit pub_methods_class_qwt_abstract_legend"><td class="memItemLeft" align="right" valign="top"><a id="a6d86d9c50679dea9fefafc457fc70814"></a>
- virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_abstract_legend.html#a6d86d9c50679dea9fefafc457fc70814">~QwtAbstractLegend</a> ()</td></tr>
- <tr class="memdesc:a6d86d9c50679dea9fefafc457fc70814 inherit pub_methods_class_qwt_abstract_legend"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br /></td></tr>
- <tr class="separator:a6d86d9c50679dea9fefafc457fc70814 inherit pub_methods_class_qwt_abstract_legend"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-slots"></a>
- Protected Slots</h2></td></tr>
- <tr class="memitem:a9e0e1b18a6d18b113802935bb6135921"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a9e0e1b18a6d18b113802935bb6135921">itemClicked</a> ()</td></tr>
- <tr class="separator:a9e0e1b18a6d18b113802935bb6135921"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a19429ac46c36ca12531779099476ac8a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_legend.html#a19429ac46c36ca12531779099476ac8a">itemChecked</a> (bool)</td></tr>
- <tr class="separator:a19429ac46c36ca12531779099476ac8a"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
- Protected Member Functions</h2></td></tr>
- <tr class="memitem:a1c5e7654a2fb4d4cdc00c57c5de56e29"><td class="memItemLeft" align="right" valign="top">virtual QWidget * </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> &) const</td></tr>
- <tr class="memdesc:a1c5e7654a2fb4d4cdc00c57c5de56e29"><td class="mdescLeft"> </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>
- <tr class="separator:a1c5e7654a2fb4d4cdc00c57c5de56e29"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a96d3546878914d04df4770699deb3cd3"><td class="memItemLeft" align="right" valign="top">virtual void </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> &)</td></tr>
- <tr class="memdesc:a96d3546878914d04df4770699deb3cd3"><td class="mdescLeft"> </td><td class="mdescRight">Update the widget. <a href="class_qwt_legend.html#a96d3546878914d04df4770699deb3cd3">More...</a><br /></td></tr>
- <tr class="separator:a96d3546878914d04df4770699deb3cd3"><td class="memSeparator" colspan="2"> </td></tr>
- </table>
- <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
- <div class="textblock"><p>The legend widget. </p>
- <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>
- <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>
- </div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
- <a id="adf5a64070a546eaac36fc9afac56b7fb"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#adf5a64070a546eaac36fc9afac56b7fb">◆ </a></span>QwtLegend()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">QwtLegend::QwtLegend </td>
- <td>(</td>
- <td class="paramtype">QWidget * </td>
- <td class="paramname"><em>parent</em> = <code>NULL</code></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">explicit</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Constructor </p><dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">parent</td><td>Parent widget </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <h2 class="groupheader">Member Function Documentation</h2>
- <a id="ae54179a767337c154beaa826c57dda87"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ae54179a767337c154beaa826c57dda87">◆ </a></span>checked</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtLegend::checked </td>
- <td>(</td>
- <td class="paramtype">const QVariant & </td>
- <td class="paramname"><em>itemInfo</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">bool </td>
- <td class="paramname"><em>on</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>index</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">signal</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <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>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">itemInfo</td><td>Info for the item of the selected legend label </td></tr>
- <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>
- <tr><td class="paramname">on</td><td>True when the legend label is checked</td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section note"><dt>Note</dt><dd>clicks are disabled as default </dd></dl>
- <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>
- </div>
- </div>
- <a id="a26619e20d875f1e8c666b982a897244b"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a26619e20d875f1e8c666b982a897244b">◆ </a></span>clicked</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtLegend::clicked </td>
- <td>(</td>
- <td class="paramtype">const QVariant & </td>
- <td class="paramname"><em>itemInfo</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>index</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">signal</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <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>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">itemInfo</td><td>Info for the item item of the selected legend item </td></tr>
- <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>
- </table>
- </dd>
- </dl>
- <dl class="section note"><dt>Note</dt><dd>clicks are disabled as default </dd></dl>
- <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>
- </div>
- </div>
- <a id="aa52edeceb553ae703516c984f34d7ab7"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aa52edeceb553ae703516c984f34d7ab7">◆ </a></span>contentsWidget() <span class="overload">[1/2]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">QWidget * QwtLegend::contentsWidget </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>The contents widget is the only child of the viewport of the internal QScrollArea and the parent widget of all legend items.</p>
- <dl class="section return"><dt>Returns</dt><dd>Container widget of the legend items </dd></dl>
- </div>
- </div>
- <a id="a66934c7b4b45c0213fa4cf6fa9e53943"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a66934c7b4b45c0213fa4cf6fa9e53943">◆ </a></span>contentsWidget() <span class="overload">[2/2]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">const QWidget * QwtLegend::contentsWidget </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>The contents widget is the only child of the viewport of the internal QScrollArea and the parent widget of all legend items.</p>
- <dl class="section return"><dt>Returns</dt><dd>Container widget of the legend items </dd></dl>
- </div>
- </div>
- <a id="a1c5e7654a2fb4d4cdc00c57c5de56e29"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a1c5e7654a2fb4d4cdc00c57c5de56e29">◆ </a></span>createWidget()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">QWidget * QwtLegend::createWidget </td>
- <td>(</td>
- <td class="paramtype">const <a class="el" href="class_qwt_legend_data.html">QwtLegendData</a> & </td>
- <td class="paramname"><em>legendData</em></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Create a widget to be inserted into the legend. </p>
- <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>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">legendData</td><td>Attributes of the legend entry </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>Widget representing data on the legend</dd></dl>
- <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>
- </div>
- </div>
- <a id="ab3104f1cf7a872384bdf5fb39ba46f99"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ab3104f1cf7a872384bdf5fb39ba46f99">◆ </a></span>defaultItemMode()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="class_qwt_legend_data.html#aaa33cc8e6aec17440df5d4c38d7545b7">QwtLegendData::Mode</a> QwtLegend::defaultItemMode </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>Default item mode </dd></dl>
- <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>
- </div>
- </div>
- <a id="ade86e158b8254fe76d42e85f9808c827"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ade86e158b8254fe76d42e85f9808c827">◆ </a></span>eventFilter()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">bool QwtLegend::eventFilter </td>
- <td>(</td>
- <td class="paramtype">QObject * </td>
- <td class="paramname"><em>object</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">QEvent * </td>
- <td class="paramname"><em>event</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Handle QEvent::ChildRemoved andQEvent::LayoutRequest events for the <a class="el" href="class_qwt_legend.html#aa52edeceb553ae703516c984f34d7ab7">contentsWidget()</a>.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">object</td><td>Object to be filtered </td></tr>
- <tr><td class="paramname">event</td><td>Event</td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>Forwarded to QwtAbstractLegend::eventFilter() </dd></dl>
- </div>
- </div>
- <a id="aded2e6c182b4b7268a391a508041af42"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aded2e6c182b4b7268a391a508041af42">◆ </a></span>heightForWidth()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">int QwtLegend::heightForWidth </td>
- <td>(</td>
- <td class="paramtype">int </td>
- <td class="paramname"><em>width</em></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>The preferred height, for a width. </dd></dl>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">width</td><td>Width </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a id="a35e2babbf9e2f0df29f07bdb9230b82d"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a35e2babbf9e2f0df29f07bdb9230b82d">◆ </a></span>horizontalScrollBar()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">QScrollBar * QwtLegend::horizontalScrollBar </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>Horizontal scrollbar </dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_legend.html#a2e567054b220ba850e4c1b7800a2ad82">verticalScrollBar()</a> </dd></dl>
- </div>
- </div>
- <a id="aced18eb9dc01af9f89da7e52491a9ee1"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aced18eb9dc01af9f89da7e52491a9ee1">◆ </a></span>isEmpty()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">bool QwtLegend::isEmpty </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>True, when no item is inserted </dd></dl>
- <p>Implements <a class="el" href="class_qwt_abstract_legend.html#a9904720ba92daf03d0e5d8559cc5cdfe">QwtAbstractLegend</a>.</p>
- </div>
- </div>
- <a id="a19429ac46c36ca12531779099476ac8a"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a19429ac46c36ca12531779099476ac8a">◆ </a></span>itemChecked</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtLegend::itemChecked </td>
- <td>(</td>
- <td class="paramtype">bool </td>
- <td class="paramname"><em>on</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">slot</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Called internally when the legend has been checked Emits a <a class="el" href="class_qwt_legend.html#ae54179a767337c154beaa826c57dda87">checked()</a> signal. </p>
- </div>
- </div>
- <a id="a9e0e1b18a6d18b113802935bb6135921"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a9e0e1b18a6d18b113802935bb6135921">◆ </a></span>itemClicked</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtLegend::itemClicked </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">slot</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <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>
- </div>
- </div>
- <a id="a2c881a53105fc1c4c600f7e4d075c7be"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a2c881a53105fc1c4c600f7e4d075c7be">◆ </a></span>itemInfo()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">QVariant QwtLegend::itemInfo </td>
- <td>(</td>
- <td class="paramtype">const QWidget * </td>
- <td class="paramname"><em>widget</em></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Find the item that is associated to a widget</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">widget</td><td>Widget on the legend </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>Associated item info </dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_legend.html#a5c71e0bf27a1732e7a4a2780b4835128">legendWidget()</a> </dd></dl>
- </div>
- </div>
- <a id="a5c71e0bf27a1732e7a4a2780b4835128"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a5c71e0bf27a1732e7a4a2780b4835128">◆ </a></span>legendWidget()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">QWidget * QwtLegend::legendWidget </td>
- <td>(</td>
- <td class="paramtype">const QVariant & </td>
- <td class="paramname"><em>itemInfo</em></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>First widget in the list of widgets associated to an item </dd></dl>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">itemInfo</td><td>Info about an item </td></tr>
- </table>
- </dd>
- </dl>
- <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>
- <dl class="section note"><dt>Note</dt><dd>Almost all types of items have only one widget </dd></dl>
- </div>
- </div>
- <a id="af23aeb34e562218c32a8a4014534f930"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#af23aeb34e562218c32a8a4014534f930">◆ </a></span>legendWidgets()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">QList< QWidget * > QwtLegend::legendWidgets </td>
- <td>(</td>
- <td class="paramtype">const QVariant & </td>
- <td class="paramname"><em>itemInfo</em></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>List of widgets associated to a item </dd></dl>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">itemInfo</td><td>Info about an item </td></tr>
- </table>
- </dd>
- </dl>
- <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>
- </div>
- </div>
- <a id="ad5c80393cb8ac93d98eaa7d1d77cf1f7"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ad5c80393cb8ac93d98eaa7d1d77cf1f7">◆ </a></span>maxColumns()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">uint QwtLegend::maxColumns </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>Maximum number of entries in a row </dd></dl>
- <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>
- </div>
- </div>
- <a id="a7d935dface0a2cfd770daffa0c3c12ab"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a7d935dface0a2cfd770daffa0c3c12ab">◆ </a></span>renderItem()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtLegend::renderItem </td>
- <td>(</td>
- <td class="paramtype">QPainter * </td>
- <td class="paramname"><em>painter</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const QWidget * </td>
- <td class="paramname"><em>widget</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const QRectF & </td>
- <td class="paramname"><em>rect</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">bool </td>
- <td class="paramname"><em>fillBackground</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Render a legend entry into a given rectangle.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">painter</td><td>Painter </td></tr>
- <tr><td class="paramname">widget</td><td>Widget representing a legend entry </td></tr>
- <tr><td class="paramname">rect</td><td>Bounding rectangle </td></tr>
- <tr><td class="paramname">fillBackground</td><td>When true, fill rect with the widget background</td></tr>
- </table>
- </dd>
- </dl>
- <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>
- </div>
- </div>
- <a id="a41c46ddb5b69ec23b76d3016a908535d"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a41c46ddb5b69ec23b76d3016a908535d">◆ </a></span>renderLegend()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtLegend::renderLegend </td>
- <td>(</td>
- <td class="paramtype">QPainter * </td>
- <td class="paramname"><em>painter</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const QRectF & </td>
- <td class="paramname"><em>rect</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">bool </td>
- <td class="paramname"><em>fillBackground</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Render the legend into a given rectangle.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">painter</td><td>Painter </td></tr>
- <tr><td class="paramname">rect</td><td>Bounding rectangle </td></tr>
- <tr><td class="paramname">fillBackground</td><td>When true, fill rect with the widget background</td></tr>
- </table>
- </dd>
- </dl>
- <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>
- <p>Implements <a class="el" href="class_qwt_abstract_legend.html#a2fe1ac5ac1448e4d86b7437505214d9c">QwtAbstractLegend</a>.</p>
- </div>
- </div>
- <a id="af6479d6dd8ac45142ce0da5d8be29a2a"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#af6479d6dd8ac45142ce0da5d8be29a2a">◆ </a></span>scrollExtent()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">int QwtLegend::scrollExtent </td>
- <td>(</td>
- <td class="paramtype">Qt::Orientation </td>
- <td class="paramname"><em>orientation</em></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Return the extent, that is needed for the scrollbars</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">orientation</td><td>Orientation </td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>The width of the vertical scrollbar for Qt::Horizontal and v.v. </dd></dl>
- <p>Reimplemented from <a class="el" href="class_qwt_abstract_legend.html#a619f3705f6f9be8c1f38df68d83a37ff">QwtAbstractLegend</a>.</p>
- </div>
- </div>
- <a id="af977ff3e749f8281ee8ad4b926542b50"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#af977ff3e749f8281ee8ad4b926542b50">◆ </a></span>setDefaultItemMode()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtLegend::setDefaultItemMode </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="class_qwt_legend_data.html#aaa33cc8e6aec17440df5d4c38d7545b7">QwtLegendData::Mode</a> </td>
- <td class="paramname"><em>mode</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Set the default mode for legend labels. </p>
- <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>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">mode</td><td>Default item mode</td></tr>
- </table>
- </dd>
- </dl>
- <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>
- <dl class="section note"><dt>Note</dt><dd>Changing the mode doesn't have any effect on existing labels. </dd></dl>
- </div>
- </div>
- <a id="adc427eb1a6ee6a3c17f7c1b8867b48b2"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#adc427eb1a6ee6a3c17f7c1b8867b48b2">◆ </a></span>setMaxColumns()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void QwtLegend::setMaxColumns </td>
- <td>(</td>
- <td class="paramtype">uint </td>
- <td class="paramname"><em>numColums</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Set the maximum number of entries in a row. </p>
- <p>F.e when the maximum is set to 1 all items are aligned vertically. 0 means unlimited</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">numColums</td><td>Maximum number of entries in a row</td></tr>
- </table>
- </dd>
- </dl>
- <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>
- </div>
- </div>
- <a id="a0a294317170adf5c271c1ce243f66a87"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a0a294317170adf5c271c1ce243f66a87">◆ </a></span>updateLegend</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtLegend::updateLegend </td>
- <td>(</td>
- <td class="paramtype">const QVariant & </td>
- <td class="paramname"><em>itemInfo</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const QList< <a class="el" href="class_qwt_legend_data.html">QwtLegendData</a> > & </td>
- <td class="paramname"><em>legendData</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">virtual</span><span class="mlabel">slot</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Update the entries for an item. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramname">itemInfo</td><td>Info for an item </td></tr>
- <tr><td class="paramname">legendData</td><td>List of legend entry attributes for the item </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a id="a96d3546878914d04df4770699deb3cd3"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a96d3546878914d04df4770699deb3cd3">◆ </a></span>updateWidget()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void QwtLegend::updateWidget </td>
- <td>(</td>
- <td class="paramtype">QWidget * </td>
- <td class="paramname"><em>widget</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const <a class="el" href="class_qwt_legend_data.html">QwtLegendData</a> & </td>
- <td class="paramname"><em>legendData</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Update the widget. </p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <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>
- <tr><td class="paramname">legendData</td><td>Attributes to be displayed</td></tr>
- </table>
- </dd>
- </dl>
- <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>
- <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>
- </div>
- </div>
- <a id="a2e567054b220ba850e4c1b7800a2ad82"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a2e567054b220ba850e4c1b7800a2ad82">◆ </a></span>verticalScrollBar()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">QScrollBar * QwtLegend::verticalScrollBar </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <dl class="section return"><dt>Returns</dt><dd>Vertical scrollbar </dd></dl>
- <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_legend.html#a35e2babbf9e2f0df29f07bdb9230b82d">horizontalScrollBar()</a> </dd></dl>
- </div>
- </div>
- </div><!-- contents -->
- </div><!-- doc-content -->
- <!-- start footer part -->
- <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
- <ul>
- <li class="navelem"><a class="el" href="class_qwt_legend.html">QwtLegend</a></li>
- <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>
- </ul>
- </div>
- </body>
- </html>
|