Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > d2229253b8f3127ab89b179a82cc8466 > files > 564

libqxt-devel-0.6.1-2.fc15.i686.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /builddir/build/BUILD/libqxt/src/gui/qxtprogresslabel.cpp -->
<head>
  <title>QxtProgressLabel Class Reference</title>
  <link href="stylesheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://libqxt.org"><img src="images/qxt-logo.png" width="50" height="40" align="left" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">Classes</font></a>&nbsp;&middot; <a href="namespaces.html"><font color="#004faf">Namespaces</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230"></td></tr></table><h1 class="title">QxtProgressLabel Class Reference<br /><span class="small-subtitle">[<a href="qxtgui.html">QxtGui</a> module]</span>
</h1>
<p>The QxtProgressLabel widget is a label showing progress related time values. <a href="#details">More...</a></p>
<pre>    #include &lt;QxtProgressLabel&gt;</pre><p>Inherits <a href="http://doc.qtsoftware.com/4.5/qlabel.html">QLabel</a>.</p>
<ul>
<li><a href="qxtprogresslabel-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h3>Public Functions</h3>
<ul>
<li><div class="fn"></div><b><a href="qxtprogresslabel.html#QxtProgressLabel">QxtProgressLabel</a></b> ( QWidget * <i>parent</i> = 0, Qt::WindowFlags <i>flags</i> = 0 )</li>
<li><div class="fn"></div><b><a href="qxtprogresslabel.html#QxtProgressLabel-2">QxtProgressLabel</a></b> ( const QString &amp; <i>text</i>, QWidget * <i>parent</i> = 0, Qt::WindowFlags <i>flags</i> = 0 )</li>
<li><div class="fn"></div>virtual <b><a href="qxtprogresslabel.html#dtor.QxtProgressLabel">~QxtProgressLabel</a></b> ()</li>
<li><div class="fn"></div>QString <b><a href="qxtprogresslabel.html#contentFormat">contentFormat</a></b> () const</li>
<li><div class="fn"></div>void <b><a href="qxtprogresslabel.html#setContentFormat">setContentFormat</a></b> ( const QString &amp; <i>format</i> )</li>
<li><div class="fn"></div>void <b><a href="qxtprogresslabel.html#setTimeFormat">setTimeFormat</a></b> ( const QString &amp; <i>format</i> )</li>
<li><div class="fn"></div>void <b><a href="qxtprogresslabel.html#setUpdateInterval">setUpdateInterval</a></b> ( int <i>msecs</i> )</li>
<li><div class="fn"></div>QString <b><a href="qxtprogresslabel.html#timeFormat">timeFormat</a></b> () const</li>
<li><div class="fn"></div>int <b><a href="qxtprogresslabel.html#updateInterval">updateInterval</a></b> () const</li>
</ul>
<ul>
<li><div class="fn"></div>22 public functions inherited from <a href="http://doc.qtsoftware.com/4.5/qlabel.html#public-functions">QLabel</a></li>
<li><div class="fn"></div>13 public functions inherited from <a href="http://doc.qtsoftware.com/4.5/qframe.html#public-functions">QFrame</a></li>
<li><div class="fn"></div>207 public functions inherited from <a href="http://doc.qtsoftware.com/4.5/qwidget.html#public-functions">QWidget</a></li>
<li><div class="fn"></div>12 public functions inherited from <a href="http://doc.qtsoftware.com/4.5/qpaintdevice.html#public-functions">QPaintDevice</a></li>
<li><div class="fn"></div>29 public functions inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#public-functions">QObject</a></li>
</ul>
<a name="public-slots"></a>
<h3>Public Slots</h3>
<ul>
<li><div class="fn"></div>void <b><a href="qxtprogresslabel.html#refresh">refresh</a></b> ()</li>
<li><div class="fn"></div>void <b><a href="qxtprogresslabel.html#restart">restart</a></b> ()</li>
<li><div class="fn"></div>void <b><a href="qxtprogresslabel.html#setValue">setValue</a></b> ( int <i>value</i> )</li>
</ul>
<ul>
<li><div class="fn"></div>7 public slots inherited from <a href="http://doc.qtsoftware.com/4.5/qlabel.html#public-slots">QLabel</a></li>
<li><div class="fn"></div>19 public slots inherited from <a href="http://doc.qtsoftware.com/4.5/qwidget.html#public-slots">QWidget</a></li>
<li><div class="fn"></div>1 public slot inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#public-slots">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li><div class="fn"></div>10 properties inherited from <a href="http://doc.qtsoftware.com/4.5/qlabel.html#properties">QLabel</a></li>
<li><div class="fn"></div>6 properties inherited from <a href="http://doc.qtsoftware.com/4.5/qframe.html#properties">QFrame</a></li>
<li><div class="fn"></div>57 properties inherited from <a href="http://doc.qtsoftware.com/4.5/qwidget.html#properties">QWidget</a></li>
<li><div class="fn"></div>1 property inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#properties">QObject</a></li>
<li><div class="fn"></div>2 signals inherited from <a href="http://doc.qtsoftware.com/4.5/qlabel.html#signals">QLabel</a></li>
<li><div class="fn"></div>1 signal inherited from <a href="http://doc.qtsoftware.com/4.5/qwidget.html#signals">QWidget</a></li>
<li><div class="fn"></div>1 signal inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#signals">QObject</a></li>
<li><div class="fn"></div>1 public type inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#public-variables">QObject</a></li>
<li><div class="fn"></div>4 static public members inherited from <a href="http://doc.qtsoftware.com/4.5/qwidget.html#static-public-members">QWidget</a></li>
<li><div class="fn"></div>1 static public member inherited from <a href="http://doc.qtsoftware.com/4.5/qpaintdevice.html#static-public-members">QPaintDevice</a></li>
<li><div class="fn"></div>4 static public members inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#static-public-members">QObject</a></li>
<li><div class="fn"></div>37 protected functions inherited from <a href="http://doc.qtsoftware.com/4.5/qwidget.html#protected-functions">QWidget</a></li>
<li><div class="fn"></div>1 protected function inherited from <a href="http://doc.qtsoftware.com/4.5/qpaintdevice.html#protected-functions">QPaintDevice</a></li>
<li><div class="fn"></div>7 protected functions inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#protected-functions">QObject</a></li>
<li><div class="fn"></div>1 protected slot inherited from <a href="http://doc.qtsoftware.com/4.5/qwidget.html#protected-slots">QWidget</a></li>
<li><div class="fn"></div>1 protected type inherited from <a href="http://doc.qtsoftware.com/4.5/qpaintdevice.html#protected-variables">QPaintDevice</a></li>
<li><div class="fn"></div>2 protected variables inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#protected-variables">QObject</a></li>
</ul>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>The QxtProgressLabel widget is a label showing progress related time values.</p>
<p>QxtProgressLabel is a label widget able to show elapsed and remaining time of a progress. Usage is as simple as connecting signal <a href="http://doc.qtsoftware.com/4.5/qprogressbar.html#valueChanged">QProgressBar::valueChanged</a>() to slot <a href="qxtprogresslabel.html#setValue">QxtProgressLabel::setValue</a>().</p>
<p>Example usage:</p>
<pre>    QProgressBar* bar = new QProgressBar(this);
    QxtProgressLabel* label = new QxtProgressLabel(this);
    connect(bar, SIGNAL(valueChanged(int)), label, SLOT(setValue(int)));</pre>
<p align="center"><img src="images/qxtprogresslabel.png" alt="&quot;QxtProgressLabel in action.&quot;" /></p><hr />
<h2>Member Function Documentation</h2>
<h3 class="fn"><a name="QxtProgressLabel"></a>QxtProgressLabel::QxtProgressLabel ( <a href="http://doc.qtsoftware.com/4.5/qwidget.html">QWidget</a> * <i>parent</i> = 0, <a href="http://doc.qtsoftware.com/4.5/qt.html#WindowFlags-typedef">Qt::WindowFlags</a> <i>flags</i> = 0 )</h3>
<p>Constructs a new <a href="qxtprogresslabel.html">QxtProgressLabel</a> with <i>parent</i> and <i>flags</i>.</p>
<h3 class="fn"><a name="QxtProgressLabel-2"></a>QxtProgressLabel::QxtProgressLabel ( const <a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a> &amp; <i>text</i>, <a href="http://doc.qtsoftware.com/4.5/qwidget.html">QWidget</a> * <i>parent</i> = 0, <a href="http://doc.qtsoftware.com/4.5/qt.html#WindowFlags-typedef">Qt::WindowFlags</a> <i>flags</i> = 0 )</h3>
<p>Constructs a new <a href="qxtprogresslabel.html">QxtProgressLabel</a> with <i>text</i>, <i>parent</i> and <i>flags</i>.</p>
<h3 class="fn"><a name="dtor.QxtProgressLabel"></a>QxtProgressLabel::~QxtProgressLabel ()&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Destructs the progress label.</p>
<h3 class="fn"><a name="contentFormat"></a><a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a> QxtProgressLabel::contentFormat () const</h3>
<p>See also <a href="qxtprogresslabel.html#setContentFormat">setContentFormat</a>().</p>
<h3 class="fn"><a name="refresh"></a>void QxtProgressLabel::refresh ()&nbsp;&nbsp;<tt> [slot]</tt></h3>
<p>Refreshes the content.</p>
<h3 class="fn"><a name="restart"></a>void QxtProgressLabel::restart ()&nbsp;&nbsp;<tt> [slot]</tt></h3>
<p>Restarts the calculation of elapsed and remaining times.</p>
<h3 class="fn"><a name="setContentFormat"></a>void QxtProgressLabel::setContentFormat ( const <a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a> &amp; <i>format</i> )</h3>
<p>See also <a href="qxtprogresslabel.html#contentFormat">contentFormat</a>().</p>
<h3 class="fn"><a name="setTimeFormat"></a>void QxtProgressLabel::setTimeFormat ( const <a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a> &amp; <i>format</i> )</h3>
<p>See also <a href="qxtprogresslabel.html#timeFormat">timeFormat</a>().</p>
<h3 class="fn"><a name="setUpdateInterval"></a>void QxtProgressLabel::setUpdateInterval ( int <i>msecs</i> )</h3>
<p>See also <a href="qxtprogresslabel.html#updateInterval">updateInterval</a>().</p>
<h3 class="fn"><a name="setValue"></a>void QxtProgressLabel::setValue ( int <i>value</i> )&nbsp;&nbsp;<tt> [slot]</tt></h3>
<p>Sets the current value to <i>value</i>.</p>
<p><b>Note:</b> Calling this slot by hand has no effect. Connect this slot to QProgressBar::valueChange().</p>
<h3 class="fn"><a name="timeFormat"></a><a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a> QxtProgressLabel::timeFormat () const</h3>
<p>See also <a href="qxtprogresslabel.html#setTimeFormat">setTimeFormat</a>().</p>
<h3 class="fn"><a name="updateInterval"></a>int QxtProgressLabel::updateInterval () const</h3>
<p>See also <a href="qxtprogresslabel.html#setUpdateInterval">setUpdateInterval</a>().</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td align="left">Copyright &copy; 2007-2010
<a href="mailto:foundation@libqxt.org">Qxt Foundation</a></td>
<td align="right"><div align="right">
<a href="http://libqxt.org">Qxt</a> 0.6.1</div></td>
</tr></table></div></address></body>
</html>