Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > 1dd17e0d683ef79b4bb6872bbf359d7f > files > 4487

qt4-doc-4.8.7-26.2.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- q3listview.cpp -->
  <title>Qt 4.8: Q3CheckListItem Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/style.css" />
  <script src="scripts/jquery.js" type="text/javascript"></script>
  <script src="scripts/functions.js" type="text/javascript"></script>
  <link rel="stylesheet" type="text/css" href="style/superfish.css" />
  <link rel="stylesheet" type="text/css" href="style/narrow.css" />
  <!--[if IE]>
<meta name="MSSmartTagsPreventParsing" content="true">
<meta http-equiv="imagetoolbar" content="no">
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie6.css">
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie7.css">
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/style_ie8.css">
<![endif]-->

<script src="scripts/superfish.js" type="text/javascript"></script>
<script src="scripts/narrow.js" type="text/javascript"></script>

</head>
<body class="" onload="CheckEmptyAndLoadList();">
 <div class="header" id="qtdocheader">
    <div class="content"> 
    <div id="nav-logo">
      <a href="index.html">Home</a></div>
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
    <div id="narrowsearch"></div>
    <div id="nav-topright">
      <ul>
        <li class="nav-topright-home"><a href="http://qt.digia.com/">Qt HOME</a></li>
        <li class="nav-topright-dev"><a href="http://qt-project.org/">DEV</a></li>
        <li class="nav-topright-doc nav-topright-doc-active"><a href="http://qt-project.org/doc/">
          DOC</a></li>
        <li class="nav-topright-blog"><a href="http://blog.qt.digia.com/">BLOG</a></li>
      </ul>
    </div>
    <div id="shortCut">
      <ul>
        <li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.8</a></span></li>
        <li class="shortCut-topleft-active"><a href="http://qt-project.org/doc/">ALL VERSIONS        </a></li>
      </ul>
     </div>
 <ul class="sf-menu" id="narrowmenu"> 
             <li><a href="#">API Lookup</a> 
                 <ul> 
                     <li><a href="classes.html">Class index</a></li> 
           <li><a href="functions.html">Function index</a></li> 
           <li><a href="modules.html">Modules</a></li> 
           <li><a href="namespaces.html">Namespaces</a></li> 
           <li><a href="qtglobal.html">Global Declarations</a></li> 
           <li><a href="qdeclarativeelements.html">QML elements</a></li> 
             </ul> 
             </li> 
             <li><a href="#">Qt Topics</a> 
                 <ul> 
                        <li><a href="qt-basic-concepts.html">Programming with Qt</a></li>  
                        <li><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li>  
                        <li><a href="qt-gui-concepts.html">UI Design with Qt</a></li>  
                        <li><a href="supported-platforms.html">Supported Platforms</a></li>  
                        <li><a href="technology-apis.html">Qt and Key Technologies</a></li>  
                        <li><a href="best-practices.html">How-To's and Best Practices</a></li>  
              </ul> 
                 </li> 
                 <li><a href="#">Examples</a> 
                     <ul> 
                       <li><a href="all-examples.html">Examples</a></li> 
                       <li><a href="tutorials.html">Tutorials</a></li> 
                       <li><a href="demos.html">Demos</a></li> 
                       <li><a href="qdeclarativeexamples.html">QML Examples</a></li> 
                </ul> 
                     </li> 
                 </ul> 
    </div>
  </div>
  <div class="wrapper">
    <div class="hd">
      <span></span>
    </div>
    <div class="bd group">
      <div class="sidebar">
        <div class="searchlabel">
          Search index:</div>
        <div class="search" id="sidebarsearch">
          <form id="qtdocsearch" action="" onsubmit="return false;">
            <fieldset>
              <input type="text" name="searchstring" id="pageType" value="" />
 <div id="resultdialog"> 
 <a href="#" id="resultclose">Close</a> 
 <p id="resultlinks" class="all"><a href="#" id="showallresults">All</a> | <a href="#" id="showapiresults">API</a> | <a href="#" id="showarticleresults">Articles</a> | <a href="#" id="showexampleresults">Examples</a></p> 
 <p id="searchcount" class="all"><span id="resultcount"></span><span id="apicount"></span><span id="articlecount"></span><span id="examplecount"></span>&nbsp;results:</p> 
 <ul id="resultlist" class="all"> 
 </ul> 
 </div> 
            </fieldset>
          </form>
        </div>
        <div class="box first bottombar" id="lookup">
          <h2 title="API Lookup"><span></span>
            API Lookup</h2>
          <div  id="list001" class="list">
          <ul id="ul001" >
              <li class="defaultLink"><a href="classes.html">Class index</a></li>
              <li class="defaultLink"><a href="functions.html">Function index</a></li>
              <li class="defaultLink"><a href="modules.html">Modules</a></li>
              <li class="defaultLink"><a href="namespaces.html">Namespaces</a></li>
              <li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li>
              <li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li>
            </ul> 
          </div>
        </div>
        <div class="box bottombar" id="topics">
          <h2 title="Qt Topics"><span></span>
            Qt Topics</h2>
          <div id="list002" class="list">
            <ul id="ul002" >
               <li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li> 
               <li class="defaultLink"><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li> 
               <li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li> 
               <li class="defaultLink"><a href="supported-platforms.html">Supported Platforms</a></li>  
               <li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li> 
               <li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li> 
            </ul>  
          </div>
        </div>
        <div class="box" id="examples">
          <h2 title="Examples"><span></span>
            Examples</h2>
          <div id="list003" class="list">
        <ul id="ul003">
              <li class="defaultLink"><a href="all-examples.html">Examples</a></li>
              <li class="defaultLink"><a href="tutorials.html">Tutorials</a></li>
              <li class="defaultLink"><a href="demos.html">Demos</a></li>
              <li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li>
            </ul> 
          </div>
        </div>
      </div>
      <div class="wrap">
        <div class="toolbar">
          <div class="breadcrumb toolblock">
            <ul>
              <li class="first"><a href="index.html">Home</a></li>
              <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li>Qt3SupportLight</li>
<li>Q3CheckListItem</li>
            </ul>
          </div>
          <div class="toolbuttons toolblock">
            <ul>
              <li id="smallA" class="t_button">A</li>
              <li id="medA" class="t_button active">A</li>
              <li id="bigA" class="t_button">A</li>
              <li id="print" class="t_button"><a href="javascript:this.print();">
                <span>Print</span></a></li>
            </ul>
        </div>
        </div>
        <div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">Q3CheckListItem Class Reference</h1>
<!-- $$$Q3CheckListItem-brief -->
<p>The Q3CheckListItem class provides checkable list view items. <a href="#details">More...</a></p>
<!-- @@@Q3CheckListItem -->
<pre class="cpp"> <span class="preprocessor">#include &lt;Q3CheckListItem&gt;</span></pre><p><b>This class is part of the Qt 3 support library.</b> It is provided to keep old source code working. We strongly advise against using it in new code. See <a href="porting4.html">Porting to Qt 4</a> for more information.</p>
<p><b>Inherits: </b><a href="q3listviewitem.html">Q3ListViewItem</a>.</p>
<ul>
<li><a href="q3checklistitem-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="q3checklistitem.html#ToggleState-enum">ToggleState</a></b> { Off, NoChange, On }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="q3checklistitem.html#Type-enum">Type</a></b> { RadioButton, CheckBox, RadioButtonController, CheckBoxController }</td></tr>
</table>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3checklistitem.html#Q3CheckListItem">Q3CheckListItem</a></b> ( Q3CheckListItem * <i>parent</i>, const QString &amp; <i>text</i>, Type <i>tt</i> = RadioButtonController )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3checklistitem.html#Q3CheckListItem-2">Q3CheckListItem</a></b> ( Q3CheckListItem * <i>parent</i>, Q3ListViewItem * <i>after</i>, const QString &amp; <i>text</i>, Type <i>tt</i> = RadioButtonController )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3checklistitem.html#Q3CheckListItem-3">Q3CheckListItem</a></b> ( Q3ListViewItem * <i>parent</i>, const QString &amp; <i>text</i>, Type <i>tt</i> = RadioButtonController )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3checklistitem.html#Q3CheckListItem-4">Q3CheckListItem</a></b> ( Q3ListViewItem * <i>parent</i>, Q3ListViewItem * <i>after</i>, const QString &amp; <i>text</i>, Type <i>tt</i> = RadioButtonController )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3checklistitem.html#Q3CheckListItem-5">Q3CheckListItem</a></b> ( Q3ListView * <i>parent</i>, const QString &amp; <i>text</i>, Type <i>tt</i> = RadioButtonController )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3checklistitem.html#Q3CheckListItem-6">Q3CheckListItem</a></b> ( Q3ListView * <i>parent</i>, Q3ListViewItem * <i>after</i>, const QString &amp; <i>text</i>, Type <i>tt</i> = RadioButtonController )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3checklistitem.html#Q3CheckListItem-7">Q3CheckListItem</a></b> ( Q3ListViewItem * <i>parent</i>, const QString &amp; <i>text</i>, const QPixmap &amp; <i>p</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3checklistitem.html#Q3CheckListItem-8">Q3CheckListItem</a></b> ( Q3ListView * <i>parent</i>, const QString &amp; <i>text</i>, const QPixmap &amp; <i>p</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3checklistitem.html#dtor.Q3CheckListItem">~Q3CheckListItem</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3checklistitem.html#isOn">isOn</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3checklistitem.html#isTristate">isTristate</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3checklistitem.html#setOn">setOn</a></b> ( bool <i>b</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3checklistitem.html#setState">setState</a></b> ( ToggleState <i>s</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3checklistitem.html#setTristate">setTristate</a></b> ( bool <i>b</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> ToggleState </td><td class="memItemRight bottomAlign"><b><a href="q3checklistitem.html#state">state</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="q3checklistitem.html#text">text</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Type </td><td class="memItemRight bottomAlign"><b><a href="q3checklistitem.html#type">type</a></b> () const</td></tr>
</table>
<a name="reimplemented-public-functions"></a>
<h2>Reimplemented Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3checklistitem.html#paintCell">paintCell</a></b> ( QPainter * <i>p</i>, const QColorGroup &amp; <i>cg</i>, int <i>column</i>, int <i>width</i>, int <i>align</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3checklistitem.html#paintFocus">paintFocus</a></b> ( QPainter * <i>p</i>, const QColorGroup &amp; <i>cg</i>, const QRect &amp; <i>r</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="q3checklistitem.html#rtti">rtti</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3checklistitem.html#setup">setup</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QString </td><td class="memItemRight bottomAlign"><b><a href="q3checklistitem.html#text-2">text</a></b> ( int <i>n</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="q3checklistitem.html#width">width</a></b> ( const QFontMetrics &amp; <i>fm</i>, const Q3ListView * <i>lv</i>, int <i>column</i> ) const</td></tr>
</table>
<ul>
<li class="fn">54 public functions inherited from <a href="q3listviewitem.html#public-functions">Q3ListViewItem</a></li>
</ul>
<a name="protected-functions"></a>
<h2>Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3checklistitem.html#stateChange">stateChange</a></b> ( bool <i>b</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3checklistitem.html#turnOffChild">turnOffChild</a></b> ()</td></tr>
</table>
<a name="reimplemented-protected-functions"></a>
<h2>Reimplemented Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3checklistitem.html#activate">activate</a></b> ()</td></tr>
</table>
<ul>
<li class="fn">9 protected functions inherited from <a href="q3listviewitem.html#protected-functions">Q3ListViewItem</a></li>
</ul>
<a name="details"></a>
<!-- $$$Q3CheckListItem-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The Q3CheckListItem class provides checkable list view items.</p>
<p>Q3CheckListItems are used in <a href="q3listview.html">Q3ListView</a>s to provide <a href="q3listviewitem.html">Q3ListViewItem</a>s that are checkboxes, radio buttons or controllers.</p>
<p>Checkbox and controller check list items may be inserted at any level in a list view. Radio button check list items must be children of a controller check list item.</p>
<p>The item can be checked or unchecked with <a href="q3checklistitem.html#setOn">setOn</a>(). Its type can be retrieved with <a href="q3checklistitem.html#type">type</a>() and its text retrieved with <a href="q3checklistitem.html#text">text</a>().</p>
<p class="centerAlign"><img src="images/qlistviewitems.png" alt="List View Items" /></p></div>
<p><b>See also </b><a href="q3listviewitem.html">Q3ListViewItem</a> and <a href="q3listview.html">Q3ListView</a>.</p>
<!-- @@@Q3CheckListItem -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$ToggleState$$$Off$$$NoChange$$$On -->
<h3 class="fn"><a name="ToggleState-enum"></a>enum Q3CheckListItem::<span class="name">ToggleState</span></h3>
<p>This enum specifies a <a href="q3checklistitem.html" class="compat">Q3CheckListItem</a>'s toggle state.</p>
<table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><tt>Q3CheckListItem::Off</tt></td><td class="topAlign"><tt>0</tt></td></tr>
<tr><td class="topAlign"><tt>Q3CheckListItem::NoChange</tt></td><td class="topAlign"><tt>1</tt></td></tr>
<tr><td class="topAlign"><tt>Q3CheckListItem::On</tt></td><td class="topAlign"><tt>2</tt></td></tr>
</table>
<!-- @@@ToggleState -->
<!-- $$$Type$$$RadioButton$$$CheckBox$$$Controller$$$RadioButtonController$$$CheckBoxController -->
<h3 class="fn"><a name="Type-enum"></a>enum Q3CheckListItem::<span class="name">Type</span></h3>
<p>This enum type specifies a <a href="q3checklistitem.html" class="compat">Q3CheckListItem</a>'s type:</p>
<table class="valuelist"><tr><th class="tblConst">Constant</th><th class="tblVal">Value</th></tr>
<tr><td class="topAlign"><tt>Q3CheckListItem::RadioButton</tt></td><td class="topAlign"><tt>0</tt></td></tr>
<tr><td class="topAlign"><tt>Q3CheckListItem::CheckBox</tt></td><td class="topAlign"><tt>1</tt></td></tr>
<tr><td class="topAlign"><tt>Q3CheckListItem::RadioButtonController</tt></td><td class="topAlign"><tt>Controller</tt></td></tr>
<tr><td class="topAlign"><tt>Q3CheckListItem::CheckBoxController</tt></td><td class="topAlign">?</td></tr>
</table>
<!-- @@@Type -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$Q3CheckListItem[overload1]$$$Q3CheckListItemQ3CheckListItem*constQString&Type -->
<h3 class="fn"><a name="Q3CheckListItem"></a>Q3CheckListItem::<span class="name">Q3CheckListItem</span> ( <span class="type">Q3CheckListItem</span> * <i>parent</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i>, <span class="type"><a href="q3checklistitem.html#Type-enum">Type</a></span> <i>tt</i> = RadioButtonController )</h3>
<p>Constructs a checkable item with parent <i>parent</i>, text <i>text</i> and of type <i>tt</i>. Note that a <tt>RadioButton</tt> must be the child of a <tt>RadioButtonController</tt>, otherwise it will not toggle.</p>
<!-- @@@Q3CheckListItem -->
<!-- $$$Q3CheckListItem$$$Q3CheckListItemQ3CheckListItem*Q3ListViewItem*constQString&Type -->
<h3 class="fn"><a name="Q3CheckListItem-2"></a>Q3CheckListItem::<span class="name">Q3CheckListItem</span> ( <span class="type">Q3CheckListItem</span> * <i>parent</i>, <span class="type"><a href="q3listviewitem.html">Q3ListViewItem</a></span> * <i>after</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i>, <span class="type"><a href="q3checklistitem.html#Type-enum">Type</a></span> <i>tt</i> = RadioButtonController )</h3>
<p>Constructs a checkable item with parent <i>parent</i>, which is after <i>after</i> in the parent's list of children, and with text <i>text</i> and of type <i>tt</i>. Note that a <tt>RadioButton</tt> must be the child of a <tt>RadioButtonController</tt>, otherwise it will not toggle.</p>
<!-- @@@Q3CheckListItem -->
<!-- $$$Q3CheckListItem$$$Q3CheckListItemQ3ListViewItem*constQString&Type -->
<h3 class="fn"><a name="Q3CheckListItem-3"></a>Q3CheckListItem::<span class="name">Q3CheckListItem</span> ( <span class="type"><a href="q3listviewitem.html">Q3ListViewItem</a></span> * <i>parent</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i>, <span class="type"><a href="q3checklistitem.html#Type-enum">Type</a></span> <i>tt</i> = RadioButtonController )</h3>
<p>Constructs a checkable item with parent <i>parent</i>, text <i>text</i> and of type <i>tt</i>. Note that this item must <i>not</i> be a <tt>RadioButton</tt>. Radio buttons must be children of a <tt>RadioButtonController</tt>.</p>
<!-- @@@Q3CheckListItem -->
<!-- $$$Q3CheckListItem$$$Q3CheckListItemQ3ListViewItem*Q3ListViewItem*constQString&Type -->
<h3 class="fn"><a name="Q3CheckListItem-4"></a>Q3CheckListItem::<span class="name">Q3CheckListItem</span> ( <span class="type"><a href="q3listviewitem.html">Q3ListViewItem</a></span> * <i>parent</i>, <span class="type"><a href="q3listviewitem.html">Q3ListViewItem</a></span> * <i>after</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i>, <span class="type"><a href="q3checklistitem.html#Type-enum">Type</a></span> <i>tt</i> = RadioButtonController )</h3>
<p>Constructs a checkable item with parent <i>parent</i>, which is after <i>after</i> in the parent's list of children, with text <i>text</i> and of type <i>tt</i>. Note that this item must <i>not</i> be a <tt>RadioButton</tt>. Radio buttons must be children of a <tt>RadioButtonController</tt>.</p>
<!-- @@@Q3CheckListItem -->
<!-- $$$Q3CheckListItem$$$Q3CheckListItemQ3ListView*constQString&Type -->
<h3 class="fn"><a name="Q3CheckListItem-5"></a>Q3CheckListItem::<span class="name">Q3CheckListItem</span> ( <span class="type"><a href="q3listview.html">Q3ListView</a></span> * <i>parent</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i>, <span class="type"><a href="q3checklistitem.html#Type-enum">Type</a></span> <i>tt</i> = RadioButtonController )</h3>
<p>Constructs a checkable item with parent <i>parent</i>, text <i>text</i> and of type <i>tt</i>. Note that <i>tt</i> must <i>not</i> be <tt>RadioButton</tt>. Radio buttons must be children of a <tt>RadioButtonController</tt>.</p>
<!-- @@@Q3CheckListItem -->
<!-- $$$Q3CheckListItem$$$Q3CheckListItemQ3ListView*Q3ListViewItem*constQString&Type -->
<h3 class="fn"><a name="Q3CheckListItem-6"></a>Q3CheckListItem::<span class="name">Q3CheckListItem</span> ( <span class="type"><a href="q3listview.html">Q3ListView</a></span> * <i>parent</i>, <span class="type"><a href="q3listviewitem.html">Q3ListViewItem</a></span> * <i>after</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i>, <span class="type"><a href="q3checklistitem.html#Type-enum">Type</a></span> <i>tt</i> = RadioButtonController )</h3>
<p>Constructs a checkable item with parent <i>parent</i>, which is after <i>after</i> in the parent's list of children, with text <i>text</i> and of type <i>tt</i>. Note that <i>tt</i> must <i>not</i> be <tt>RadioButton</tt>. Radio buttons must be children of a <tt>RadioButtonController</tt>.</p>
<!-- @@@Q3CheckListItem -->
<!-- $$$Q3CheckListItem$$$Q3CheckListItemQ3ListViewItem*constQString&constQPixmap& -->
<h3 class="fn"><a name="Q3CheckListItem-7"></a>Q3CheckListItem::<span class="name">Q3CheckListItem</span> ( <span class="type"><a href="q3listviewitem.html">Q3ListViewItem</a></span> * <i>parent</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i>, const <span class="type"><a href="qpixmap.html">QPixmap</a></span> &amp; <i>p</i> )</h3>
<p>Constructs a <tt>RadioButtonController</tt> item with parent <i>parent</i>, text <i>text</i> and pixmap <i>p</i>.</p>
<!-- @@@Q3CheckListItem -->
<!-- $$$Q3CheckListItem$$$Q3CheckListItemQ3ListView*constQString&constQPixmap& -->
<h3 class="fn"><a name="Q3CheckListItem-8"></a>Q3CheckListItem::<span class="name">Q3CheckListItem</span> ( <span class="type"><a href="q3listview.html">Q3ListView</a></span> * <i>parent</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i>, const <span class="type"><a href="qpixmap.html">QPixmap</a></span> &amp; <i>p</i> )</h3>
<p>Constructs a <tt>RadioButtonController</tt> item with parent <i>parent</i>, text <i>text</i> and pixmap <i>p</i>.</p>
<!-- @@@Q3CheckListItem -->
<!-- $$$~Q3CheckListItem[overload1]$$$~Q3CheckListItem -->
<h3 class="fn"><a name="dtor.Q3CheckListItem"></a>Q3CheckListItem::<span class="name">~Q3CheckListItem</span> ()</h3>
<p>Destroys the item, and all its children to any depth, freeing up all allocated resources.</p>
<!-- @@@~Q3CheckListItem -->
<!-- $$$activate[overload1]$$$activate -->
<h3 class="fn"><a name="activate"></a><span class="type">void</span> Q3CheckListItem::<span class="name">activate</span> ()<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="q3listviewitem.html#activate">Q3ListViewItem::activate</a>().</p>
<p>Toggle check box or set radio button to on.</p>
<!-- @@@activate -->
<!-- $$$isOn[overload1]$$$isOn -->
<h3 class="fn"><a name="isOn"></a><span class="type">bool</span> Q3CheckListItem::<span class="name">isOn</span> () const</h3>
<p>Returns true if the item is toggled on; otherwise returns false.</p>
<!-- @@@isOn -->
<!-- $$$isTristate[overload1]$$$isTristate -->
<h3 class="fn"><a name="isTristate"></a><span class="type">bool</span> Q3CheckListItem::<span class="name">isTristate</span> () const</h3>
<p>Returns true if the item is tristate; otherwise returns false.</p>
<p><b>See also </b><a href="q3checklistitem.html#setTristate">setTristate</a>().</p>
<!-- @@@isTristate -->
<!-- $$$paintCell[overload1]$$$paintCellQPainter*constQColorGroup&intintint -->
<h3 class="fn"><a name="paintCell"></a><span class="type">void</span> Q3CheckListItem::<span class="name">paintCell</span> ( <span class="type"><a href="qpainter.html">QPainter</a></span> * <i>p</i>, const <span class="type"><a href="qcolorgroup.html">QColorGroup</a></span> &amp; <i>cg</i>, <span class="type">int</span> <i>column</i>, <span class="type">int</span> <i>width</i>, <span class="type">int</span> <i>align</i> )<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="q3listviewitem.html#paintCell">Q3ListViewItem::paintCell</a>().</p>
<p>Paints the item using the painter <i>p</i> and the color group <i>cg</i>. The item is in column <i>column</i>, has width <i>width</i> and has alignment <i>align</i>. (See <a href="qt.html#AlignmentFlag-enum">Qt::Alignment</a> for valid alignments.)</p>
<!-- @@@paintCell -->
<!-- $$$paintFocus[overload1]$$$paintFocusQPainter*constQColorGroup&constQRect& -->
<h3 class="fn"><a name="paintFocus"></a><span class="type">void</span> Q3CheckListItem::<span class="name">paintFocus</span> ( <span class="type"><a href="qpainter.html">QPainter</a></span> * <i>p</i>, const <span class="type"><a href="qcolorgroup.html">QColorGroup</a></span> &amp; <i>cg</i>, const <span class="type"><a href="qrect.html">QRect</a></span> &amp; <i>r</i> )<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="q3listviewitem.html#paintFocus">Q3ListViewItem::paintFocus</a>().</p>
<p>Draws the focus rectangle <i>r</i> using the color group <i>cg</i> on the painter <i>p</i>.</p>
<!-- @@@paintFocus -->
<!-- $$$rtti[overload1]$$$rtti -->
<h3 class="fn"><a name="rtti"></a><span class="type">int</span> Q3CheckListItem::<span class="name">rtti</span> () const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="q3listviewitem.html#rtti">Q3ListViewItem::rtti</a>().</p>
<p>Returns 1.</p>
<p>Make your derived classes return their own values for rtti(), and you can distinguish between list view items. You should use values greater than 1000, to allow for extensions to this class.</p>
<!-- @@@rtti -->
<!-- $$$setOn[overload1]$$$setOnbool -->
<h3 class="fn"><a name="setOn"></a><span class="type">void</span> Q3CheckListItem::<span class="name">setOn</span> ( <span class="type">bool</span> <i>b</i> )<tt> [virtual]</tt></h3>
<p>Sets the button on if <i>b</i> is true, otherwise sets it off. Maintains radio button exclusivity.</p>
<p><b>See also </b><a href="q3checklistitem.html#isOn">isOn</a>().</p>
<!-- @@@setOn -->
<!-- $$$setState[overload1]$$$setStateToggleState -->
<h3 class="fn"><a name="setState"></a><span class="type">void</span> Q3CheckListItem::<span class="name">setState</span> ( <span class="type"><a href="q3checklistitem.html#ToggleState-enum">ToggleState</a></span> <i>s</i> )</h3>
<p>Sets the toggle state of the checklistitem to <i>s</i>. <i>s</i> can be <tt>Off</tt>, <tt>NoChange</tt> or <tt>On</tt>.</p>
<p>Tristate can only be enabled for <tt>CheckBox</tt> or <tt>CheckBoxController</tt>, therefore the <tt>NoChange</tt> only applies to them.</p>
<p>Setting the state to <tt>On</tt> or <tt>Off</tt> on a <tt>CheckBoxController</tt> will recursivly set the states of its children to the same state.</p>
<p>Setting the state to <tt>NoChange</tt> on a <tt>CheckBoxController</tt> will make it recursivly recall the previous stored state of its children. If there was no previous stored state the children are all set to <tt>On</tt>.</p>
<p><b>See also </b><a href="q3checklistitem.html#state">state</a>().</p>
<!-- @@@setState -->
<!-- $$$setTristate[overload1]$$$setTristatebool -->
<h3 class="fn"><a name="setTristate"></a><span class="type">void</span> Q3CheckListItem::<span class="name">setTristate</span> ( <span class="type">bool</span> <i>b</i> )</h3>
<p>Sets tristate to <i>b</i> if the <tt>Type</tt> is either a <tt>CheckBoxController</tt> or a <tt>CheckBox</tt>.</p>
<p><tt>CheckBoxControllers</tt> are tristate by default.</p>
<p><b>See also </b><a href="q3checklistitem.html#state">state</a>() and <a href="q3checklistitem.html#isTristate">isTristate</a>().</p>
<!-- @@@setTristate -->
<!-- $$$setup[overload1]$$$setup -->
<h3 class="fn"><a name="setup"></a><span class="type">void</span> Q3CheckListItem::<span class="name">setup</span> ()<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="q3listviewitem.html#setup">Q3ListViewItem::setup</a>().</p>
<!-- @@@setup -->
<!-- $$$state[overload1]$$$state -->
<h3 class="fn"><a name="state"></a><span class="type"><a href="q3checklistitem.html#ToggleState-enum">ToggleState</a></span> Q3CheckListItem::<span class="name">state</span> () const</h3>
<p>Returns the state of the item.</p>
<p><b>See also </b><a href="q3checklistitem.html#setState">setState</a>() and <a href="q3checklistitem.html#ToggleState-enum">Q3CheckListItem::ToggleState</a>.</p>
<!-- @@@state -->
<!-- $$$stateChange[overload1]$$$stateChangebool -->
<h3 class="fn"><a name="stateChange"></a><span class="type">void</span> Q3CheckListItem::<span class="name">stateChange</span> ( <span class="type">bool</span> <i>b</i> )<tt> [virtual protected]</tt></h3>
<p>This virtual function is called when the item changes its state. <i>b</i> is true if the state is <tt>On</tt>; otherwise the state is <tt>Off</tt>. <tt>NoChange</tt> (if tristate is enabled and the type is either <tt>CheckBox</tt> or <tt>CheckBoxController</tt>) reports the same as <tt>Off</tt>, so use <a href="q3checklistitem.html#state">state</a>() to determine if the state is actually <tt>Off</tt> or <tt>NoChange</tt>.</p>
<!-- @@@stateChange -->
<!-- $$$text[overload1]$$$text -->
<h3 class="fn"><a name="text"></a><span class="type"><a href="qstring.html">QString</a></span> Q3CheckListItem::<span class="name">text</span> () const</h3>
<p>Returns the item's text.</p>
<!-- @@@text -->
<!-- $$$text$$$textint -->
<h3 class="fn"><a name="text-2"></a><span class="type"><a href="qstring.html">QString</a></span> Q3CheckListItem::<span class="name">text</span> ( <span class="type">int</span> <i>n</i> ) const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="q3listviewitem.html#text">Q3ListViewItem::text</a>().</p>
<!-- @@@text -->
<!-- $$$turnOffChild[overload1]$$$turnOffChild -->
<h3 class="fn"><a name="turnOffChild"></a><span class="type">void</span> Q3CheckListItem::<span class="name">turnOffChild</span> ()<tt> [protected]</tt></h3>
<p>If this is a <tt>RadioButtonController</tt> that has <tt>RadioButton</tt> children, turn off the child that is on.</p>
<!-- @@@turnOffChild -->
<!-- $$$type[overload1]$$$type -->
<h3 class="fn"><a name="type"></a><span class="type"><a href="q3checklistitem.html#Type-enum">Type</a></span> Q3CheckListItem::<span class="name">type</span> () const</h3>
<p>Returns the type of this item.</p>
<!-- @@@type -->
<!-- $$$width[overload1]$$$widthconstQFontMetrics&constQ3ListView*int -->
<h3 class="fn"><a name="width"></a><span class="type">int</span> Q3CheckListItem::<span class="name">width</span> ( const <span class="type"><a href="qfontmetrics.html">QFontMetrics</a></span> &amp; <i>fm</i>, const <span class="type"><a href="q3listview.html">Q3ListView</a></span> * <i>lv</i>, <span class="type">int</span> <i>column</i> ) const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="q3listviewitem.html#width">Q3ListViewItem::width</a>().</p>
<!-- @@@width -->
</div>
      </div>
    </div>
    </div> 
    <div class="ft">
      <span></span>
    </div>
  </div> 
  <div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2015 The Qt Company Ltd.
      Documentation contributions included herein are the copyrights of
      their respective owners.</p>
    <br />
    <p>
      The documentation provided herein is licensed under the terms of the
      <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
      License version 1.3</a> as published by the Free Software Foundation.</p>
    <p>
      Documentation sources may be obtained from <a href="http://www.qt-project.org">
      www.qt-project.org</a>.</p>
    <br />
    <p>
      Qt and respective logos are trademarks of The Qt Company Ltd 
      in Finland and/or other countries worldwide. All other trademarks are property
      of their respective owners. <a title="Privacy Policy"
      href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
  </div>

  <script src="scripts/functions.js" type="text/javascript"></script>
</body>
</html>