Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 1f9eb832ba1e4b88d9a5c2b384813bb4 > files > 3412

kdelibs3-apidocs-3.5.10-31.fc15.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US">

<head>
  <title>kdeui: KLed Class Reference (kdeui)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <meta http-equiv="Content-Style-Type" content="text/css" />

  <meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" comment "ICRAonline DE v2.0" l gen true for "http://www.kde.org"  r (nz 1 vz 1 lz 1 oz 1 cb 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.kde.org"  r (n 0 s 0 v 0 l 0))' />

  <meta name="trademark" content="KDE e.V." />
  <meta name="description" content="K Desktop Environment Homepage, KDE.org" />
  <meta name="MSSmartTagsPreventParsing" content="true" />
  <meta name="robots" content="all" />

  <link rel="shortcut icon" href="../../favicon.ico" />

<link rel="stylesheet" media="screen" type="text/css" title="APIDOX" href="doxygen.css" />



</head>

<body>

<div id="nav_header_top" align="right">
  <a href="#content" class="doNotDisplay" accesskey="2">Skip to main content ::</a>

  <a href="../.."><img id="nav_header_logo" alt="Home" align="left" src="../../kde_gear_64.png" border="0" /></a>
  <span class="doNotDisplay">::</span>

  <div id="nav_header_title" align="left">KDE API Reference</div>


</div>

<div id="nav_header_bottom" align="right">
  <span class="doNotDisplay">:: <a href="#navigation" accesskey="5">Skip to Link Menu</a><br/></span>
  <div id="nav_header_bottom_right" style="text-align: left;">
/ <a href="../..">API Reference</a>
 / <a href=".">kdeui</a>
  </div>
</div>


<table id="main" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
      <td valign="top" class="menuheader" height="0"></td>

  <td id="contentcolumn" valign="top" rowspan="2" >
    <div id="content" style="padding-top: 0px;"><div style="width:100%; margin: 0px; padding: 0px;">
    <a name="content"></a>


<!-- Generated by Doxygen 1.7.4 -->
</div>
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-slots">Public Slots</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#properties">Properties</a>  </div>
  <div class="headertitle">
<div class="title">KLed Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="KLed" --><!-- doxytag: inherits="QWidget" -->
<p>An LED widget.  
 <a href="classKLed.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="kled_8h_source.html">kled.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for KLed:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classKLed.png" usemap="#KLed_map" alt=""/>
  <map id="KLed_map" name="KLed_map">
<area href="qwidget.html" alt="QWidget" shape="rect" coords="0,0,60,24"/>
</map>
 </div></div>

<p><a href="classKLed-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#a14ea238119f6332b71c1ac4ec9ac0d0c">State</a> { <b>Off</b>, 
<b>On</b>
 }</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#a22a9c2354515733cd4aa2c6efabc147f">Shape</a> { <b>Rectangular</b>, 
<b>Circular</b>
 }</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#a92553d6cca9c224b0aaaeafee0d9a8d6">Look</a> { <b>Flat</b>, 
<b>Raised</b>, 
<b>Sunken</b>
 }</td></tr>
<tr><td colspan="2"><h2><a name="pub-slots"></a>
Public Slots</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#abd1dc18cd0e3b34f120d1a1ad9d9b338">toggle</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#a0a4a6589bf59312552edabdeef61f2aa">on</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#aa789f647307cdfdb95a91811ad82afde">off</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#aa4d64ff7cfd1489f8e4299b03017af3f">KLed</a> (<a class="elRef" href="qwidget.html">QWidget</a> *parent=0, const char *name=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#ac0314b5effbffc23f66a3e28572df6c6">KLed</a> (const <a class="elRef" href="qcolor.html">QColor</a> &amp;col, <a class="elRef" href="qwidget.html">QWidget</a> *parent=0, const char *name=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#a6ccdfe01d393fc0e4c124d3bf4d9cb4e">KLed</a> (const <a class="elRef" href="qcolor.html">QColor</a> &amp;col, <a class="el" href="classKLed.html#a14ea238119f6332b71c1ac4ec9ac0d0c">KLed::State</a> state, <a class="el" href="classKLed.html#a92553d6cca9c224b0aaaeafee0d9a8d6">KLed::Look</a> look, <a class="el" href="classKLed.html#a22a9c2354515733cd4aa2c6efabc147f">KLed::Shape</a> shape, <a class="elRef" href="qwidget.html">QWidget</a> *parent=0, const char *name=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#a5bfea352cb40b0a357e8eedb75b3e454">~KLed</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKLed.html#a14ea238119f6332b71c1ac4ec9ac0d0c">State</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#a4e47155baec3f3b273be74abcd00b87b">state</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a974a44e7f2acc9423ec726c5647b2fb9"></a><!-- doxytag: member="KLed::shape" ref="a974a44e7f2acc9423ec726c5647b2fb9" args="() const " -->
<a class="el" href="classKLed.html#a22a9c2354515733cd4aa2c6efabc147f">Shape</a>&#160;</td><td class="memItemRight" valign="bottom"><b>shape</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="qcolor.html">QColor</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#a5175e6360a05a6f80c346b7f7aa10ca9">color</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classKLed.html#a92553d6cca9c224b0aaaeafee0d9a8d6">Look</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#ab55c2fa488b7ac8198c300a3e6914fb3">look</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#addcc357b678c2b93dc8ff39e33bb7127">darkFactor</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#aad596242e5b38ec7844e0950527c9749">setState</a> (<a class="el" href="classKLed.html#a14ea238119f6332b71c1ac4ec9ac0d0c">State</a> state)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#ad1e35ba9d0c0cd489df18abb356b0e71">setShape</a> (<a class="el" href="classKLed.html#a22a9c2354515733cd4aa2c6efabc147f">Shape</a> s)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#acf690d7e5ac98df6fb00ecaef611f754">toggleState</a> () KDE_DEPRECATED</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#a0d3b459618ad0b544dd3568ba26f3b73">setColor</a> (const <a class="elRef" href="qcolor.html">QColor</a> &amp;color)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#a4eb630fa27022acc7069734af855b26c">setDarkFactor</a> (int darkfactor)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#ac9ac9d738e8e78ca263f4397bd75cde1">setLook</a> (<a class="el" href="classKLed.html#a92553d6cca9c224b0aaaeafee0d9a8d6">Look</a> look)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad03199b9c1d80f5097de2e887ab1f983"></a><!-- doxytag: member="KLed::sizeHint" ref="ad03199b9c1d80f5097de2e887ab1f983" args="() const " -->
virtual <a class="elRef" href="qsize.html">QSize</a>&#160;</td><td class="memItemRight" valign="bottom"><b>sizeHint</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4e13e9edd8a7c000cee600ab8f6a6f80"></a><!-- doxytag: member="KLed::minimumSizeHint" ref="a4e13e9edd8a7c000cee600ab8f6a6f80" args="() const " -->
virtual <a class="elRef" href="qsize.html">QSize</a>&#160;</td><td class="memItemRight" valign="bottom"><b>minimumSizeHint</b> () const </td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#ab08c0b53a31d0a82762aa562fe2b3daa">paintFlat</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#aa40d4ab649743b0dbf7728582670a812">paintRound</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#ab751779a22df119cce5f1a43936fa8f8">paintSunken</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#a556f27e6d6dda8d8bbe0abc54fab0d5b">paintRect</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#a2aaed6689d668e34ce35c11c2bd8cfc2">paintRectFrame</a> (bool raised)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6d0756398ada7875f0efd92917382115"></a><!-- doxytag: member="KLed::paintEvent" ref="a6d0756398ada7875f0efd92917382115" args="(QPaintEvent *)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>paintEvent</b> (<a class="elRef" href="qpaintevent.html">QPaintEvent</a> *)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#a8aa64dd030cb6a79c2e353b1cd1de3b5">ensureRoundLed</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classKLed.html#ae51eb5329ed7d531ccf4d6ff54f95e30">paintCachedPixmap</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="affb972bbae0ad69b4cc954ba96bae6de"></a><!-- doxytag: member="KLed::virtual_hook" ref="affb972bbae0ad69b4cc954ba96bae6de" args="(int id, void *data)" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>virtual_hook</b> (int id, void *data)</td></tr>
<tr><td colspan="2"><h2><a name="properties"></a>
Properties</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab63d3adf358377b0b8d43cba7f15384f"></a><!-- doxytag: member="KLed::state" ref="ab63d3adf358377b0b8d43cba7f15384f" args="" -->
<a class="el" href="classKLed.html#a14ea238119f6332b71c1ac4ec9ac0d0c">State</a>&#160;</td><td class="memItemRight" valign="bottom"><b>state</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9bdfb293a7ebab8567a7eb6b9840a11b"></a><!-- doxytag: member="KLed::shape" ref="a9bdfb293a7ebab8567a7eb6b9840a11b" args="" -->
<a class="el" href="classKLed.html#a22a9c2354515733cd4aa2c6efabc147f">Shape</a>&#160;</td><td class="memItemRight" valign="bottom"><b>shape</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afc4dee308f8477afadf828159735d80c"></a><!-- doxytag: member="KLed::look" ref="afc4dee308f8477afadf828159735d80c" args="" -->
<a class="el" href="classKLed.html#a92553d6cca9c224b0aaaeafee0d9a8d6">Look</a>&#160;</td><td class="memItemRight" valign="bottom"><b>look</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a839b20399215cdd2f7a358a7da4de39b"></a><!-- doxytag: member="KLed::color" ref="a839b20399215cdd2f7a358a7da4de39b" args="" -->
<a class="elRef" href="qcolor.html">QColor</a>&#160;</td><td class="memItemRight" valign="bottom"><b>color</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a091fdecd863aa637d8c66da18f039820"></a><!-- doxytag: member="KLed::darkFactor" ref="a091fdecd863aa637d8c66da18f039820" args="" -->
int&#160;</td><td class="memItemRight" valign="bottom"><b>darkFactor</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>An LED widget. </p>
<p>Displays a round or rectangular light emitting diode.</p>
<p>It is configurable to five colors, the two on/off states and three styles (or "looks");</p>
<p>It may display itself in a performant flat view, a round view with light spot or a round view sunken in the screen.</p>
<div class="image">
<img src="kled.png" alt="kled.png"/>
<div class="caption">
KDE LED Widget</div></div>
 <dl class="author"><dt><b>Author:</b></dt><dd>Joerg Habenicht, Richard J. Moore (<a href="mailto:rich@kde.org">rich@kde.org</a>) 1998, 1999 </dd></dl>

<p>Definition at line <a class="el" href="kled_8h_source.html#l00045">45</a> of file <a class="el" href="kled_8h_source.html">kled.h</a>.</p>
</div><hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a92553d6cca9c224b0aaaeafee0d9a8d6"></a><!-- doxytag: member="KLed::Look" ref="a92553d6cca9c224b0aaaeafee0d9a8d6" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classKLed.html#a92553d6cca9c224b0aaaeafee0d9a8d6">KLed::Look</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Displays a flat, round or sunken LED. </p>
<p>Displaying the LED flat is less time and color consuming, but not so nice to see.</p>
<p>The sunken LED itself is (certainly) smaller than the round LED because of the 3 shading circles and is most time consuming. Makes sense for LED &gt; 15x15 pixels.</p>
<p><b>Timings:</b> <br/>
 ( AMD K5/133, Diamond Stealth 64 PCI Graphics, widgetsize 29x29 ) </p>
<ul>
<li>flat Approximately 0.7 msec per paint </li>
<li>round Approximately 2.9 msec per paint </li>
<li>sunken Approximately 3.3 msec per paint</li>
</ul>
<p>The widget will be updated on the next repaining event.</p>
<p>LED look. </p>

<p>Definition at line <a class="el" href="kled_8h_source.html#l00089">89</a> of file <a class="el" href="kled_8h_source.html">kled.h</a>.</p>

</div>
</div>
<a class="anchor" id="a22a9c2354515733cd4aa2c6efabc147f"></a><!-- doxytag: member="KLed::Shape" ref="a22a9c2354515733cd4aa2c6efabc147f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classKLed.html#a22a9c2354515733cd4aa2c6efabc147f">KLed::Shape</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Shades of the lamp. </p>
<p>LED shape </p>

<p>Definition at line <a class="el" href="kled_8h_source.html#l00067">67</a> of file <a class="el" href="kled_8h_source.html">kled.h</a>.</p>

</div>
</div>
<a class="anchor" id="a14ea238119f6332b71c1ac4ec9ac0d0c"></a><!-- doxytag: member="KLed::State" ref="a14ea238119f6332b71c1ac4ec9ac0d0c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classKLed.html#a14ea238119f6332b71c1ac4ec9ac0d0c">KLed::State</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Status of the light is on/off. </p>
<p>LED on/off. </p>

<p>Definition at line <a class="el" href="kled_8h_source.html#l00061">61</a> of file <a class="el" href="kled_8h_source.html">kled.h</a>.</p>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aa4d64ff7cfd1489f8e4299b03017af3f"></a><!-- doxytag: member="KLed::KLed" ref="aa4d64ff7cfd1489f8e4299b03017af3f" args="(QWidget *parent=0, const char *name=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KLed::KLed </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" href="qwidget.html">QWidget</a> *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a green, round LED widget which will initially be turned on. </p>

<p>Definition at line <a class="el" href="kled_8cpp_source.html#l00050">50</a> of file <a class="el" href="kled_8cpp_source.html">kled.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ac0314b5effbffc23f66a3e28572df6c6"></a><!-- doxytag: member="KLed::KLed" ref="ac0314b5effbffc23f66a3e28572df6c6" args="(const QColor &amp;col, QWidget *parent=0, const char *name=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KLed::KLed </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qcolor.html">QColor</a> &amp;&#160;</td>
          <td class="paramname"><em>col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="qwidget.html">QWidget</a> *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructor with the ledcolor, the parent widget, and the name. </p>
<p>The State will be defaulted On and the Look round.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">col</td><td>Initial color of the LED. </td></tr>
    <tr><td class="paramname">parent</td><td>Will be handed over to <a class="elRef" href="qwidget.html">QWidget</a>. </td></tr>
    <tr><td class="paramname">name</td><td>Will be handed over to <a class="elRef" href="qwidget.html">QWidget</a>. Constructor </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kled_8cpp_source.html#l00067">67</a> of file <a class="el" href="kled_8cpp_source.html">kled.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a6ccdfe01d393fc0e4c124d3bf4d9cb4e"></a><!-- doxytag: member="KLed::KLed" ref="a6ccdfe01d393fc0e4c124d3bf4d9cb4e" args="(const QColor &amp;col, KLed::State state, KLed::Look look, KLed::Shape shape, QWidget *parent=0, const char *name=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KLed::KLed </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qcolor.html">QColor</a> &amp;&#160;</td>
          <td class="paramname"><em>col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classKLed.html#a14ea238119f6332b71c1ac4ec9ac0d0c">KLed::State</a>&#160;</td>
          <td class="paramname"><em>state</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classKLed.html#a92553d6cca9c224b0aaaeafee0d9a8d6">KLed::Look</a>&#160;</td>
          <td class="paramname"><em>look</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classKLed.html#a22a9c2354515733cd4aa2c6efabc147f">KLed::Shape</a>&#160;</td>
          <td class="paramname"><em>shape</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="elRef" href="qwidget.html">QWidget</a> *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructor with the ledcolor, ledstate, ledlook, the parent widget, and the name. </p>
<p>Differs from above only in the parameters, which configure all settings.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">col</td><td>Initial color of the LED. </td></tr>
    <tr><td class="paramname">state</td><td>Sets the State. </td></tr>
    <tr><td class="paramname">look</td><td>Sets the Look. </td></tr>
    <tr><td class="paramname">shape</td><td>Sets the Shape (rectangular or circular) </td></tr>
    <tr><td class="paramname">parent</td><td>Will be handed over to <a class="elRef" href="qwidget.html">QWidget</a>. </td></tr>
    <tr><td class="paramname">name</td><td>Will be handed over to <a class="elRef" href="qwidget.html">QWidget</a>. Constructor </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kled_8cpp_source.html#l00083">83</a> of file <a class="el" href="kled_8cpp_source.html">kled.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a5bfea352cb40b0a357e8eedb75b3e454"></a><!-- doxytag: member="KLed::~KLed" ref="a5bfea352cb40b0a357e8eedb75b3e454" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">KLed::~KLed </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destructor. </p>
<p>Destructor </p>

<p>Definition at line <a class="el" href="kled_8cpp_source.html#l00101">101</a> of file <a class="el" href="kled_8cpp_source.html">kled.cpp</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a5175e6360a05a6f80c346b7f7aa10ca9"></a><!-- doxytag: member="KLed::color" ref="a5175e6360a05a6f80c346b7f7aa10ca9" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="qcolor.html">QColor</a> KLed::color </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the color of the widget. </p>
<dl class="see"><dt><b>See also:</b></dt><dd>Color Returns LED color. </dd></dl>

</div>
</div>
<a class="anchor" id="addcc357b678c2b93dc8ff39e33bb7127"></a><!-- doxytag: member="KLed::darkFactor" ref="addcc357b678c2b93dc8ff39e33bb7127" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KLed::darkFactor </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the factor to darken the LED. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKLed.html#a4eb630fa27022acc7069734af855b26c" title="Sets the factor to darken the LED in OFF state.">setDarkFactor()</a> Returns dark factor </dd></dl>

</div>
</div>
<a class="anchor" id="a8aa64dd030cb6a79c2e353b1cd1de3b5"></a><!-- doxytag: member="KLed::ensureRoundLed" ref="a8aa64dd030cb6a79c2e353b1cd1de3b5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int KLed::ensureRoundLed </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Compute LED width. </p>

<p>Definition at line <a class="el" href="kled_8cpp_source.html#l00163">163</a> of file <a class="el" href="kled_8cpp_source.html">kled.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ab55c2fa488b7ac8198c300a3e6914fb3"></a><!-- doxytag: member="KLed::look" ref="ab55c2fa488b7ac8198c300a3e6914fb3" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKLed.html#a92553d6cca9c224b0aaaeafee0d9a8d6">Look</a> KLed::look </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the look of the widget. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKLed.html#a92553d6cca9c224b0aaaeafee0d9a8d6" title="Displays a flat, round or sunken LED.">Look</a> Returns LED look. </dd></dl>

</div>
</div>
<a class="anchor" id="aa789f647307cdfdb95a91811ad82afde"></a><!-- doxytag: member="KLed::off" ref="aa789f647307cdfdb95a91811ad82afde" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KLed::off </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the state of the widget to Off. </p>
<p>The widget will be painted immediately. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKLed.html#a0a4a6589bf59312552edabdeef61f2aa" title="Sets the state of the widget to On.">on()</a> <a class="el" href="classKLed.html#abd1dc18cd0e3b34f120d1a1ad9d9b338" title="Toggles the state of the led from Off to On or vice versa.">toggle()</a> <a class="el" href="classKLed.html#acf690d7e5ac98df6fb00ecaef611f754" title="Toggle the state of the LED from Off to On and vice versa.">toggleState()</a> <a class="el" href="classKLed.html#aad596242e5b38ec7844e0950527c9749" title="Sets the state of the widget to On or Off.">setState()</a> </dd></dl>

<p>Definition at line <a class="el" href="kled_8cpp_source.html#l00624">624</a> of file <a class="el" href="kled_8cpp_source.html">kled.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a0a4a6589bf59312552edabdeef61f2aa"></a><!-- doxytag: member="KLed::on" ref="a0a4a6589bf59312552edabdeef61f2aa" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KLed::on </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the state of the widget to On. </p>
<p>The widget will be painted immediately. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKLed.html#aa789f647307cdfdb95a91811ad82afde" title="Sets the state of the widget to Off.">off()</a> <a class="el" href="classKLed.html#abd1dc18cd0e3b34f120d1a1ad9d9b338" title="Toggles the state of the led from Off to On or vice versa.">toggle()</a> <a class="el" href="classKLed.html#acf690d7e5ac98df6fb00ecaef611f754" title="Toggle the state of the LED from Off to On and vice versa.">toggleState()</a> <a class="el" href="classKLed.html#aad596242e5b38ec7844e0950527c9749" title="Sets the state of the widget to On or Off.">setState()</a> </dd></dl>

<p>Definition at line <a class="el" href="kled_8cpp_source.html#l00618">618</a> of file <a class="el" href="kled_8cpp_source.html">kled.cpp</a>.</p>

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

<p>Paint the cached antialiased pixmap corresponding to the state if any. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the pixmap was painted, false if it hasn't been created yet </dd></dl>

<p>Definition at line <a class="el" href="kled_8cpp_source.html#l00179">179</a> of file <a class="el" href="kled_8cpp_source.html">kled.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ab08c0b53a31d0a82762aa562fe2b3daa"></a><!-- doxytag: member="KLed::paintFlat" ref="ab08c0b53a31d0a82762aa562fe2b3daa" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KLed::paintFlat </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Paints a circular, flat LED. </p>

<p>Definition at line <a class="el" href="kled_8cpp_source.html#l00199">199</a> of file <a class="el" href="kled_8cpp_source.html">kled.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a556f27e6d6dda8d8bbe0abc54fab0d5b"></a><!-- doxytag: member="KLed::paintRect" ref="a556f27e6d6dda8d8bbe0abc54fab0d5b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KLed::paintRect </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Paints a rectangular, flat LED. </p>

<p>Definition at line <a class="el" href="kled_8cpp_source.html#l00459">459</a> of file <a class="el" href="kled_8cpp_source.html">kled.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a2aaed6689d668e34ce35c11c2bd8cfc2"></a><!-- doxytag: member="KLed::paintRectFrame" ref="a2aaed6689d668e34ce35c11c2bd8cfc2" args="(bool raised)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KLed::paintRectFrame </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>raised</em></td><td>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Paints a rectangular LED, either raised or sunken, depending on its argument. </p>

<p>Definition at line <a class="el" href="kled_8cpp_source.html#l00490">490</a> of file <a class="el" href="kled_8cpp_source.html">kled.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aa40d4ab649743b0dbf7728582670a812"></a><!-- doxytag: member="KLed::paintRound" ref="aa40d4ab649743b0dbf7728582670a812" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KLed::paintRound </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Paints a circular, raised LED. </p>

<p>Definition at line <a class="el" href="kled_8cpp_source.html#l00257">257</a> of file <a class="el" href="kled_8cpp_source.html">kled.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ab751779a22df119cce5f1a43936fa8f8"></a><!-- doxytag: member="KLed::paintSunken" ref="ab751779a22df119cce5f1a43936fa8f8" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KLed::paintSunken </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Paints a circular, sunken LED. </p>

<p>Definition at line <a class="el" href="kled_8cpp_source.html#l00352">352</a> of file <a class="el" href="kled_8cpp_source.html">kled.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a0d3b459618ad0b544dd3568ba26f3b73"></a><!-- doxytag: member="KLed::setColor" ref="a0d3b459618ad0b544dd3568ba26f3b73" args="(const QColor &amp;color)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KLed::setColor </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="qcolor.html">QColor</a> &amp;&#160;</td>
          <td class="paramname"><em>color</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the color of the widget. </p>
<p>The Color is shown with the KLed::On state. The KLed::Off state is shown with <a class="elRef" href="qcolor.html#dark">QColor.dark()</a> method</p>
<p>The widget calls the <a class="elRef" href="qwidget.html#update">update()</a> method, so it will be updated when entering the main event loop.</p>
<dl class="see"><dt><b>See also:</b></dt><dd>Color</dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">color</td><td>New color of the LED. Sets the LED color. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kled_8cpp_source.html#l00572">572</a> of file <a class="el" href="kled_8cpp_source.html">kled.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a4eb630fa27022acc7069734af855b26c"></a><!-- doxytag: member="KLed::setDarkFactor" ref="a4eb630fa27022acc7069734af855b26c" args="(int darkfactor)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KLed::setDarkFactor </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>darkfactor</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the factor to darken the LED in OFF state. </p>
<p>Same as <a class="elRef" href="qcolor.html#dark">QColor::dark()</a>. "darkfactor should be greater than 100, else the LED gets lighter in OFF state. Defaults to 300.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="elRef" href="qcolor.html">QColor</a></dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">darkfactor</td><td>sets the factor to darken the LED. sets the factor to darken the LED. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kled_8cpp_source.html#l00584">584</a> of file <a class="el" href="kled_8cpp_source.html">kled.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ac9ac9d738e8e78ca263f4397bd75cde1"></a><!-- doxytag: member="KLed::setLook" ref="ac9ac9d738e8e78ca263f4397bd75cde1" args="(Look look)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KLed::setLook </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classKLed.html#a92553d6cca9c224b0aaaeafee0d9a8d6">Look</a>&#160;</td>
          <td class="paramname"><em>look</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the color of the widget. </p>
<p>The Color is shown with the KLed::On state. darkcolor is explicidly used for the off state of the LED. Normally you don't have to use this method, the <a class="el" href="classKLed.html#a0d3b459618ad0b544dd3568ba26f3b73" title="Set the color of the widget.">setColor(const QColor&amp; color)</a> is sufficient for the task.</p>
<p>The widget calls the <a class="elRef" href="qwidget.html#update">update()</a> method, so it will be updated when entering the main event loop.</p>
<dl class="see"><dt><b>See also:</b></dt><dd>Color <a class="el" href="classKLed.html#a0d3b459618ad0b544dd3568ba26f3b73" title="Set the color of the widget.">setColor()</a></dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">color</td><td>New color of the LED used for on state. </td></tr>
    <tr><td class="paramname">darkcolor</td><td>Dark color of the LED used for off state. Sets the light and dark LED color.</td></tr>
  </table>
  </dd>
</dl>
<p>void setColor(const QColor&amp; color, const QColor&amp; darkcolor); Sets the look of the widget.</p>
<p>The look may be flat, round or sunken. The widget calls the <a class="elRef" href="qwidget.html#update">update()</a> method, so it will be updated when entering the main event loop.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKLed.html#a92553d6cca9c224b0aaaeafee0d9a8d6" title="Displays a flat, round or sunken LED.">Look</a></dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">look</td><td>New look of the LED. Sets LED look. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kled_8cpp_source.html#l00600">600</a> of file <a class="el" href="kled_8cpp_source.html">kled.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ad1e35ba9d0c0cd489df18abb356b0e71"></a><!-- doxytag: member="KLed::setShape" ref="ad1e35ba9d0c0cd489df18abb356b0e71" args="(Shape s)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KLed::setShape </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classKLed.html#a22a9c2354515733cd4aa2c6efabc147f">KLed::Shape</a>&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the shape of the LED to <code>s</code>. </p>

<p>Definition at line <a class="el" href="kled_8cpp_source.html#l00562">562</a> of file <a class="el" href="kled_8cpp_source.html">kled.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aad596242e5b38ec7844e0950527c9749"></a><!-- doxytag: member="KLed::setState" ref="aad596242e5b38ec7844e0950527c9749" args="(State state)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KLed::setState </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classKLed.html#a14ea238119f6332b71c1ac4ec9ac0d0c">State</a>&#160;</td>
          <td class="paramname"><em>state</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the state of the widget to On or Off. </p>
<p>The widget will be painted immediately. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKLed.html#a0a4a6589bf59312552edabdeef61f2aa" title="Sets the state of the widget to On.">on()</a> <a class="el" href="classKLed.html#aa789f647307cdfdb95a91811ad82afde" title="Sets the state of the widget to Off.">off()</a> <a class="el" href="classKLed.html#abd1dc18cd0e3b34f120d1a1ad9d9b338" title="Toggles the state of the led from Off to On or vice versa.">toggle()</a> <a class="el" href="classKLed.html#acf690d7e5ac98df6fb00ecaef611f754" title="Toggle the state of the LED from Off to On and vice versa.">toggleState()</a></dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">state</td><td>The LED state: on or off. Set LED state. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="kled_8cpp_source.html#l00546">546</a> of file <a class="el" href="kled_8cpp_source.html">kled.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a4e47155baec3f3b273be74abcd00b87b"></a><!-- doxytag: member="KLed::state" ref="a4e47155baec3f3b273be74abcd00b87b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classKLed.html#a14ea238119f6332b71c1ac4ec9ac0d0c">State</a> KLed::state </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the current state of the widget (on/off). </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classKLed.html#a14ea238119f6332b71c1ac4ec9ac0d0c" title="Status of the light is on/off.">State</a> Returns LED state. </dd></dl>

</div>
</div>
<a class="anchor" id="abd1dc18cd0e3b34f120d1a1ad9d9b338"></a><!-- doxytag: member="KLed::toggle" ref="abd1dc18cd0e3b34f120d1a1ad9d9b338" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KLed::toggle </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Toggles the state of the led from Off to On or vice versa. </p>
<p>The widget repaints itself immediately. </p>

<p>Definition at line <a class="el" href="kled_8cpp_source.html#l00610">610</a> of file <a class="el" href="kled_8cpp_source.html">kled.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="acf690d7e5ac98df6fb00ecaef611f754"></a><!-- doxytag: member="KLed::toggleState" ref="acf690d7e5ac98df6fb00ecaef611f754" args="() KDE_DEPRECATED" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void KLed::toggleState </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Toggle the state of the LED from Off to On and vice versa. </p>
<p>The widget will be repainted when returning to the main event loop. Toggles LED on-&gt;off / off-&gt;on. </p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000043">Deprecated:</a></b></dt><dd>, use <a class="el" href="classKLed.html#abd1dc18cd0e3b34f120d1a1ad9d9b338" title="Toggles the state of the led from Off to On or vice versa.">toggle()</a> instead. </dd></dl>

<p>Definition at line <a class="el" href="kled_8cpp_source.html#l00556">556</a> of file <a class="el" href="kled_8cpp_source.html">kled.cpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="kled_8h_source.html">kled.h</a></li>
<li><a class="el" href="kled_8cpp_source.html">kled.cpp</a></li>
</ul>
</div>
    </div></div>


      </td>
  </tr>
  <tr>
    <td valign="top" id="leftmenu" width="25%">
      <a name="navigation"></a>
      <div class="menu_box"><h2>kdeui</h2>
<div class="nav_list">
<ul><li><a href="index.html">Main Page</a></li><li><a href="namespaces.html">Namespace List</a></li><li><a href="hierarchy.html">Class Hierarchy</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="files.html">File List</a></li><li><a href="namespacemembers.html">Namespace Members</a></li><li><a href="functions.html">Class Members</a></li><li><a href="pages.html">Related Pages</a></li></ul>
<!--
<h2>Class Picker</h2>
<div style="text-align: center;">
<form name="guideform">
<select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value">
<option value="annotated.html">-- Choose --</option>
  <option value="classKAboutApplication.html">kaboutapplication</option>,  <option value="classKAboutContainer.html">kaboutcontainer</option>,  <option value="classKAboutContainerBase.html">kaboutcontainerbase</option>,  <option value="classKAboutContributor.html">kaboutcontributor</option>,  <option value="classKAboutDialog.html">kaboutdialog</option>,  <option value="classKAboutKDE.html">kaboutkde</option>,  <option value="classKAboutWidget.html">kaboutwidget</option>,  <option value="classKAccelGen_1_1Deref.html">kaccelgen::deref</option>,  <option value="classKAccelGen_1_1Deref__Key.html">kaccelgen::deref__key</option>,  <option value="classKAction.html">kaction</option>,  <option value="classKActionCollection.html">kactioncollection</option>,  <option value="classKActionMenu.html">kactionmenu</option>,  <option value="classKActionSelector.html">kactionselector</option>,  <option value="classKActiveLabel.html">kactivelabel</option>,  <option value="classKAnimWidget.html">kanimwidget</option>,  <option value="classKArrowButton.html">karrowbutton</option>,  <option value="classKAuthIcon.html">kauthicon</option>,  <option value="classKBugReport.html">kbugreport</option>,  <option value="classKButtonBox.html">kbuttonbox</option>,  <option value="classKCharSelect.html">kcharselect</option>,  <option value="classKCharSelectTable.html">kcharselecttable</option>,  <option value="classKCModule.html">kcmodule</option>,  <option value="classKColor.html">kcolor</option>,  <option value="classKColorButton.html">kcolorbutton</option>,  <option value="classKColorCells.html">kcolorcells</option>,  <option value="classKColorCombo.html">kcolorcombo</option>,  <option value="classKColorDialog.html">kcolordialog</option>,  <option value="classKColorDrag.html">kcolordrag</option>,  <option value="classKColorPatch.html">kcolorpatch</option>,  <option value="classKComboBox.html">kcombobox</option>,  <option value="classKCommand.html">kcommand</option>,  <option value="classKCommandHistory.html">kcommandhistory</option>,  <option value="classKCompletionBox.html">kcompletionbox</option>,  <option value="classKConfigDialog.html">kconfigdialog</option>,  <option value="classKContextMenuManager.html">kcontextmenumanager</option>,  <option value="classKCursor.html">kcursor</option>,  <option value="classKCursorPrivate.html">kcursorprivate</option>,  <option value="classKCursorPrivateAutoHideEventFilter.html">kcursorprivateautohideeventfilter</option>,  <option value="classKDateInternalMonthPicker.html">kdateinternalmonthpicker</option>,  <option value="classKDateInternalWeekSelector.html">kdateinternalweekselector</option>,  <option value="classKDateInternalYearSelector.html">kdateinternalyearselector</option>,  <option value="classKDatePicker.html">kdatepicker</option>,  <option value="classKDateTable.html">kdatetable</option>,  <option value="classKDateTimeWidget.html">kdatetimewidget</option>,  <option value="classKDateValidator.html">kdatevalidator</option>,  <option value="classKDateWidget.html">kdatewidget</option>,  <option value="classKDCOPActionProxy.html">kdcopactionproxy</option>,  <option value="classKDEPrivate_1_1ToolBarHandler.html">kdeprivate::toolbarhandler</option>,  <option value="classKDialog.html">kdialog</option>,  <option value="classKDialogBase.html">kdialogbase</option>,  <option value="classKDialogBaseButton.html">kdialogbasebutton</option>,  <option value="classKDialogBaseTile.html">kdialogbasetile</option>,  <option value="classKDictSpellingHighlighter.html">kdictspellinghighlighter</option>,  <option value="classKDockButton__Private.html">kdockbutton__private</option>,  <option value="classKDockMainWindow.html">kdockmainwindow</option>,  <option value="classKDockManager.html">kdockmanager</option>,  <option value="classKDockSplitter.html">kdocksplitter</option>,  <option value="classKDockTabGroup.html">kdocktabgroup</option>,  <option value="classKDockWidget.html">kdockwidget</option>,  <option value="classKDockWidgetAbstractHeader.html">kdockwidgetabstractheader</option>,  <option value="classKDockWidgetAbstractHeaderDrag.html">kdockwidgetabstractheaderdrag</option>,  <option value="classKDockWidgetHeader.html">kdockwidgetheader</option>,  <option value="classKDockWidgetHeaderDrag.html">kdockwidgetheaderdrag</option>,  <option value="classKDockWidgetPrivate.html">kdockwidgetprivate</option>,  <option value="classKDockWindow.html">kdockwindow</option>,  <option value="classKDoubleNumInput.html">kdoublenuminput</option>,  <option value="classKDoubleSpinBox.html">kdoublespinbox</option>,  <option value="classKDoubleValidator.html">kdoublevalidator</option>,  <option value="classKDualColorButton.html">kdualcolorbutton</option>,  <option value="classKEdit.html">kedit</option>,  <option value="classKEditListBox.html">keditlistbox</option>,  <option value="classKEditListBox_1_1CustomEditor.html">keditlistbox::customeditor</option>,  <option value="classKEditToolbar.html">kedittoolbar</option>,  <option value="classKEditToolbarWidget.html">kedittoolbarwidget</option>,  <option value="classKFloatValidator.html">kfloatvalidator</option>,  <option value="classKFontChooser.html">kfontchooser</option>,  <option value="classKFontCombo.html">kfontcombo</option>,  <option value="classKFontDialog.html">kfontdialog</option>,  <option value="classKFontRequester.html">kfontrequester</option>,  <option value="classKGradientSelector.html">kgradientselector</option>,  <option value="classKGuiItem.html">kguiitem</option>,  <option value="classKHelpMenu.html">khelpmenu</option>,  <option value="classKHistoryCombo.html">khistorycombo</option>,  <option value="classKHSSelector.html">khsselector</option>,  <option value="classKIconView.html">kiconview</option>,  <option value="classKIconViewItem.html">kiconviewitem</option>,  <option value="classKIconViewSearchLine.html">kiconviewsearchline</option>,  <option value="classKImageTrackLabel.html">kimagetracklabel</option>,  <option value="classKInputDialog.html">kinputdialog</option>,  <option value="classKIntNumInput.html">kintnuminput</option>,  <option value="classKIntSpinBox.html">kintspinbox</option>,  <option value="classKIntValidator.html">kintvalidator</option>,  <option value="classKJanusWidget.html">kjanuswidget</option>,  <option value="classKKeyButton.html">kkeybutton</option>,  <option value="classKKeyChooser.html">kkeychooser</option>,  <option value="classKKeyDialog.html">kkeydialog</option>,  <option value="classKLanguageButton.html">klanguagebutton</option>,  <option value="classKLed.html">kled</option>,  <option value="classKLineEdit.html">klineedit</option>,  <option value="classKLineEditDlg.html">klineeditdlg</option>,  <option value="classKListAction.html">klistaction</option>,  <option value="classKListBox.html">klistbox</option>,  <option value="classKListView.html">klistview</option>,  <option value="classKListViewItem.html">klistviewitem</option>,  <option value="classKListViewLineEdit.html">klistviewlineedit</option>,  <option value="classKListViewSearchLine.html">klistviewsearchline</option>,  <option value="classKListViewSearchLineWidget.html">klistviewsearchlinewidget</option>,  <option value="classKMacroCommand.html">kmacrocommand</option>,  <option value="classKMainWindow.html">kmainwindow</option>,  <option value="classKMainWindowInterface.html">kmainwindowinterface</option>,  <option value="classKMenuBar.html">kmenubar</option>,  <option value="classKMessageBox.html">kmessagebox</option>,  <option value="classKMimeTypeValidator.html">kmimetypevalidator</option>,  <option value="classKNamedCommand.html">knamedcommand</option>,  <option value="classKNumInput.html">knuminput</option>,  <option value="classKPaletteTable.html">kpalettetable</option>,  <option value="classKPanelApplet.html">kpanelapplet</option>,  <option value="classKPanelAppMenu.html">kpanelappmenu</option>,  <option value="classKPanelExtension.html">kpanelextension</option>,  <option value="classKPanelMenu.html">kpanelmenu</option>,  <option value="classKPassivePopup.html">kpassivepopup</option>,  <option value="classKPasswordDialog.html">kpassworddialog</option>,  <option value="classKPasswordEdit.html">kpasswordedit</option>,  <option value="classKPasteTextAction.html">kpastetextaction</option>,  <option value="classKPixmapIO.html">kpixmapio</option>,  <option value="classKPixmapRegionSelectorDialog.html">kpixmapregionselectordialog</option>,  <option value="classKPixmapRegionSelectorWidget.html">kpixmapregionselectorwidget</option>,  <option value="classKPopupFrame.html">kpopupframe</option>,  <option value="classKPopupMenu.html">kpopupmenu</option>,  <option value="classKPopupTitle.html">kpopuptitle</option>,  <option value="classKProgress.html">kprogress</option>,  <option value="classKProgressDialog.html">kprogressdialog</option>,  <option value="classKPushButton.html">kpushbutton</option>,  <option value="classKRadioAction.html">kradioaction</option>,  <option value="classKRecentFilesAction.html">krecentfilesaction</option>,  <option value="classKRestrictedLine.html">krestrictedline</option>,  <option value="classKRootPermsIcon.html">krootpermsicon</option>,  <option value="classKRootPixmap.html">krootpixmap</option>,  <option value="classKRuler.html">kruler</option>,  <option value="classKScrollView.html">kscrollview</option>,  <option value="classKSelectAction.html">kselectaction</option>,  <option value="classKSelector.html">kselector</option>,  <option value="classKSeparator.html">kseparator</option>,  <option value="classKShortcutDialog.html">kshortcutdialog</option>,  <option value="classKSpell.html">kspell</option>,  <option value="classKSpellConfig.html">kspellconfig</option>,  <option value="classKSplashScreen.html">ksplashscreen</option>,  <option value="classKSqueezedTextLabel.html">ksqueezedtextlabel</option>,  <option value="classKStatusBar.html">kstatusbar</option>,  <option value="classKStatusBarLabel.html">kstatusbarlabel</option>,  <option value="classKStdGuiItem.html">kstdguiitem</option>,  <option value="classKStringListValidator.html">kstringlistvalidator</option>,  <option value="classKSwitchLanguageDialog.html">kswitchlanguagedialog</option>,  <option value="classKSyntaxHighlighter.html">ksyntaxhighlighter</option>,  <option value="classKSystemTray.html">ksystemtray</option>,  <option value="classKTabBar.html">ktabbar</option>,  <option value="classKTabCtl.html">ktabctl</option>,  <option value="classKTabWidget.html">ktabwidget</option>,  <option value="classKTextBrowser.html">ktextbrowser</option>,  <option value="classKTextEdit.html">ktextedit</option>,  <option value="classKTimeWidget.html">ktimewidget</option>,  <option value="classKTimezoneWidget.html">ktimezonewidget</option>,  <option value="classKTipDatabase.html">ktipdatabase</option>,  <option value="classKTipDialog.html">ktipdialog</option>,  <option value="classKToggleAction.html">ktoggleaction</option>,  <option value="classKToggleFullScreenAction.html">ktogglefullscreenaction</option>,  <option value="classKToggleToolBarAction.html">ktoggletoolbaraction</option>,  <option value="classKToolBar.html">ktoolbar</option>,  <option value="classKToolBarButton.html">ktoolbarbutton</option>,  <option value="classKToolBarButtonList.html">ktoolbarbuttonlist</option>,  <option value="classKToolBarLabelAction.html">ktoolbarlabelaction</option>,  <option value="classKToolBarPopupAction.html">ktoolbarpopupaction</option>,  <option value="classKToolBarRadioGroup.html">ktoolbarradiogroup</option>,  <option value="classKURLLabel.html">kurllabel</option>,  <option value="classKValueSelector.html">kvalueselector</option>,  <option value="classKWidgetAction.html">kwidgetaction</option>,  <option value="classKWindowInfo.html">kwindowinfo</option>,  <option value="classKWizard.html">kwizard</option>,  <option value="classKWordWrap.html">kwordwrap</option>,  <option value="classKWritePermsIcon.html">kwritepermsicon</option>,  <option value="classKXMLGUIBuilder.html">kxmlguibuilder</option>,  <option value="classKXMLGUIClient.html">kxmlguiclient</option>,  <option value="classKXMLGUIFactory.html">kxmlguifactory</option>,  <option value="classKXYSelector.html">kxyselector</option>,
</select>
</form>
</div>
-->
</div></div>
<div class="menu_box"><h2>API Dox</h2>
<div class="nav_list">
<ul>
<li><a href="../../arts/html/index.html">arts</a></li><li><a href="../../dcop/html/index.html">dcop</a></li><li><a href="../../dnssd/html/index.html">dnssd</a></li><li><a href="../../interfaces/html/index.html">interfaces</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../interfaces/kimproxy/interface/html/index.html">interface</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../interfaces/kimproxy/library/html/index.html">library</a></li><li>&nbsp;&nbsp;<a href="../../interfaces/kspeech/html/index.html">kspeech</a></li><li>&nbsp;&nbsp;<a href="../../interfaces/ktexteditor/html/index.html">ktexteditor</a></li><li><a href="../../kabc/html/index.html">kabc</a></li><li><a href="../../kate/html/index.html">kate</a></li><li><a href="../../kcmshell/html/index.html">kcmshell</a></li><li><a href="../../kdecore/html/index.html">kdecore</a></li><li><a href="../../kded/html/index.html">kded</a></li><li><a href="../../kdefx/html/index.html">kdefx</a></li><li><a href="../../kdeprint/html/index.html">kdeprint</a></li><li><a href="../../kdesu/html/index.html">kdesu</a></li><li><a href="../../kdeui/html/index.html">kdeui</a></li><li><a href="../../kdoctools/html/index.html">kdoctools</a></li><li><a href="../../khtml/html/index.html">khtml</a></li><li><a href="../../kimgio/html/index.html">kimgio</a></li><li><a href="../../kinit/html/index.html">kinit</a></li><li><a href="../../kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../kio/bookmarks/html/index.html">bookmarks</a></li><li>&nbsp;&nbsp;<a href="../../kio/httpfilter/html/index.html">httpfilter</a></li><li>&nbsp;&nbsp;<a href="../../kio/kfile/html/index.html">kfile</a></li><li>&nbsp;&nbsp;<a href="../../kio/kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../kio/kioexec/html/index.html">kioexec</a></li><li>&nbsp;&nbsp;<a href="../../kio/kpasswdserver/html/index.html">kpasswdserver</a></li><li>&nbsp;&nbsp;<a href="../../kio/kssl/html/index.html">kssl</a></li><li><a href="../../kioslave/html/index.html">kioslave</a></li><li>&nbsp;&nbsp;<a href="../../kioslave/http/html/index.html">http</a></li><li><a href="../../kjs/html/index.html">kjs</a></li><li><a href="../../kmdi/html/index.html">kmdi</a></li><li>&nbsp;&nbsp;<a href="../../kmdi/kmdi/html/index.html">kmdi</a></li><li><a href="../../knewstuff/html/index.html">knewstuff</a></li><li><a href="../../kparts/html/index.html">kparts</a></li><li><a href="../../kresources/html/index.html">kresources</a></li><li><a href="../../kspell2/html/index.html">kspell2</a></li><li><a href="../../kunittest/html/index.html">kunittest</a></li><li><a href="../../kutils/html/index.html">kutils</a></li><li><a href="../../kwallet/html/index.html">kwallet</a></li><li><a href="../../libkmid/html/index.html">libkmid</a></li><li><a href="../../libkscreensaver/html/index.html">libkscreensaver</a></li>
</ul></div></div>


        </td>
</tr>
</table>

<span class="doNotDisplay">
  <a href="http://www.kde.org/" accesskey="8">KDE Home</a> |
  <a href="http://accessibility.kde.org/" accesskey="9">KDE Accessibility Home</a> |
  <a href="http://www.kde.org/media/accesskeys.php" accesskey="0">Description of Access Keys</a>
</span>


<div style="height: 8px"></div>

<div id="footer">
  <div id="footer_left">
    Maintained by <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;groo&#116;&#64;kde&#46;or&#x67;">Adriaan de Groot</a>
and
<a href="&#109;a&#105;&#108;&#116;&#111;&#58;w&#105;nter&#64;kde&#46;or&#x67">Allen Winter</a>.
<br/>
    KDE and K Desktop Environment are trademarks of <a href="http://www.kde.org/areas/kde-ev/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> |
    <a href="http://www.kde.org/contact/impressum.php">Legal</a>
  </div>
  <div id="footer_right"><img src="/media/images/footer_right.png" style="margin: 0px" alt="" /></div>
</div>

<!--
WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL
BE BLOCKED INSTANTLY AND PERMANENTLY!
<a href="mailto:aaaatrap-425acc3b5374943f@kde.org">Block me</a>
WARNING END
-->

</body>
</html>