Sophie

Sophie

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

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/qxtitemdelegate.cpp -->
<head>
  <title>QxtItemDelegate 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">QxtItemDelegate Class Reference<br /><span class="small-subtitle">[<a href="qxtgui.html">QxtGui</a> module]</span>
</h1>
<p>The QxtItemDelegate class is an extended <a href="http://doc.qtsoftware.com/4.5/qitemdelegate.html">QItemDelegate</a> <a href="#details">More...</a></p>
<pre>    #include &lt;QxtItemDelegate&gt;</pre><p>Inherits <a href="http://doc.qtsoftware.com/4.5/qitemdelegate.html">QItemDelegate</a>.</p>
<ul>
<li><a href="qxtitemdelegate-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h3>Public Types</h3>
<ul>
<li><div class="fn"></div>enum <b><a href="qxtitemdelegate.html#Role-enum">Role</a></b> { ProgressValueRole, ProgressMinimumRole, ProgressMaximumRole }</li>
</ul>
<a name="public-functions"></a>
<h3>Public Functions</h3>
<ul>
<li><div class="fn"></div><b><a href="qxtitemdelegate.html#QxtItemDelegate">QxtItemDelegate</a></b> ( QObject * <i>parent</i> = 0 )</li>
<li><div class="fn"></div>virtual <b><a href="qxtitemdelegate.html#dtor.QxtItemDelegate">~QxtItemDelegate</a></b> ()</li>
<li><div class="fn"></div>Qxt::DecorationStyle <b><a href="qxtitemdelegate.html#decorationStyle">decorationStyle</a></b> () const</li>
<li><div class="fn"></div>Qt::TextElideMode <b><a href="qxtitemdelegate.html#elideMode">elideMode</a></b> () const</li>
<li><div class="fn"></div>bool <b><a href="qxtitemdelegate.html#isProgressTextVisible">isProgressTextVisible</a></b> () const</li>
<li><div class="fn"></div>QString <b><a href="qxtitemdelegate.html#progressTextFormat">progressTextFormat</a></b> () const</li>
<li><div class="fn"></div>void <b><a href="qxtitemdelegate.html#setDecorationStyle">setDecorationStyle</a></b> ( Qxt::DecorationStyle <i>style</i> )</li>
<li><div class="fn"></div>void <b><a href="qxtitemdelegate.html#setElideMode">setElideMode</a></b> ( Qt::TextElideMode <i>mode</i> )</li>
<li><div class="fn"></div>void <b><a href="qxtitemdelegate.html#setProgressTextFormat">setProgressTextFormat</a></b> ( const QString &amp; <i>format</i> )</li>
<li><div class="fn"></div>void <b><a href="qxtitemdelegate.html#setProgressTextVisible">setProgressTextVisible</a></b> ( bool <i>visible</i> )</li>
</ul>
<ul>
<li><div class="fn"></div>10 public functions inherited from <a href="http://doc.qtsoftware.com/4.5/qitemdelegate.html#public-functions">QItemDelegate</a></li>
<li><div class="fn"></div>7 public functions inherited from <a href="http://doc.qtsoftware.com/4.5/qabstractitemdelegate.html#public-functions">QAbstractItemDelegate</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="signals"></a>
<h3>Signals</h3>
<ul>
<li><div class="fn"></div>void <b><a href="qxtitemdelegate.html#editingFinished">editingFinished</a></b> ( const QModelIndex &amp; <i>index</i> )</li>
<li><div class="fn"></div>void <b><a href="qxtitemdelegate.html#editingStarted">editingStarted</a></b> ( const QModelIndex &amp; <i>index</i> )</li>
</ul>
<ul>
<li><div class="fn"></div>3 signals inherited from <a href="http://doc.qtsoftware.com/4.5/qabstractitemdelegate.html#signals">QAbstractItemDelegate</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>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li><div class="fn"></div>1 property inherited from <a href="http://doc.qtsoftware.com/4.5/qitemdelegate.html#properties">QItemDelegate</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>1 public slot inherited from <a href="http://doc.qtsoftware.com/4.5/qabstractitemdelegate.html#public-slots">QAbstractItemDelegate</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>
<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/qobject.html#static-public-members">QObject</a></li>
<li><div class="fn"></div>6 protected functions inherited from <a href="http://doc.qtsoftware.com/4.5/qitemdelegate.html#protected-functions">QItemDelegate</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>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 QxtItemDelegate class is an extended <a href="http://doc.qtsoftware.com/4.5/qitemdelegate.html">QItemDelegate</a></p>
<p>QxtItemDelegate provides signals for starting and finishing of editing and an optional decoration of top level items in a <a href="http://doc.qtsoftware.com/4.5/qtreeview.html">QTreeView</a>.</p>
<p>QxtItemDelegate can also draw a progress bar for items providing appropriate progress data. Just like <a href="http://doc.qtsoftware.com/4.5/qprogressbar.html">QProgressBar</a>, QxtItemDelegate can show a busy indicator. If minimum and maximum both are set to <tt>0</tt>, a busy indicator is shown instead of a percentage of steps.</p>
<hr />
<h2>Member Type Documentation</h2>
<h3 class="fn"><a name="Role-enum"></a>enum QxtItemDelegate::Role</h3>
<p>This enum defines custom roles used by <a href="qxtitemdelegate.html">QxtItemDelegate</a>.</p>
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>QxtItemDelegate::ProgressValueRole</tt></td><td align="center" valign="top"><tt>Qt::UserRole + 328</tt></td><td valign="top">The progress value.</td></tr>
<tr><td valign="top"><tt>QxtItemDelegate::ProgressMinimumRole</tt></td><td align="center" valign="top">?</td><td valign="top">The minimum progress value. The default value <tt>0</tt> is used if no value is provided for ProgressMinimumRole.</td></tr>
<tr><td valign="top"><tt>QxtItemDelegate::ProgressMaximumRole</tt></td><td align="center" valign="top">?</td><td valign="top">The maximum progress value. The default value <tt>100</tt> is used if no value is provided for ProgressMaximumRole.</td></tr>
</table></p>
<hr />
<h2>Member Function Documentation</h2>
<h3 class="fn"><a name="QxtItemDelegate"></a>QxtItemDelegate::QxtItemDelegate ( <a href="http://doc.qtsoftware.com/4.5/qobject.html">QObject</a> * <i>parent</i> = 0 )</h3>
<p>Constructs a new <a href="qxtitemdelegate.html">QxtItemDelegate</a> with <i>parent</i>.</p>
<h3 class="fn"><a name="dtor.QxtItemDelegate"></a>QxtItemDelegate::~QxtItemDelegate ()&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Destructs the item delegate.</p>
<h3 class="fn"><a name="decorationStyle"></a><a href="qxt.html#DecorationStyle-enum">Qxt::DecorationStyle</a> QxtItemDelegate::decorationStyle () const</h3>
<p>See also <a href="qxtitemdelegate.html#setDecorationStyle">setDecorationStyle</a>().</p>
<h3 class="fn"><a name="editingFinished"></a>void QxtItemDelegate::editingFinished ( const <a href="http://doc.qtsoftware.com/4.5/qmodelindex.html">QModelIndex</a> &amp; <i>index</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted after the editing of <i>index</i> has been finished.</p>
<p>See also <a href="qxtitemdelegate.html#editingStarted">editingStarted</a>().</p>
<h3 class="fn"><a name="editingStarted"></a>void QxtItemDelegate::editingStarted ( const <a href="http://doc.qtsoftware.com/4.5/qmodelindex.html">QModelIndex</a> &amp; <i>index</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>This signal is emitted after the editing of <i>index</i> has been started.</p>
<p>See also <a href="qxtitemdelegate.html#editingFinished">editingFinished</a>().</p>
<h3 class="fn"><a name="elideMode"></a><a href="http://doc.qtsoftware.com/4.5/qt.html#TextElideMode-enum">Qt::TextElideMode</a> QxtItemDelegate::elideMode () const</h3>
<p>See also <a href="qxtitemdelegate.html#setElideMode">setElideMode</a>().</p>
<h3 class="fn"><a name="isProgressTextVisible"></a>bool QxtItemDelegate::isProgressTextVisible () const</h3>
<h3 class="fn"><a name="progressTextFormat"></a><a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a> QxtItemDelegate::progressTextFormat () const</h3>
<p>See also <a href="qxtitemdelegate.html#setProgressTextFormat">setProgressTextFormat</a>().</p>
<h3 class="fn"><a name="setDecorationStyle"></a>void QxtItemDelegate::setDecorationStyle ( <a href="qxt.html#DecorationStyle-enum">Qxt::DecorationStyle</a> <i>style</i> )</h3>
<p>See also <a href="qxtitemdelegate.html#decorationStyle">decorationStyle</a>().</p>
<h3 class="fn"><a name="setElideMode"></a>void QxtItemDelegate::setElideMode ( <a href="http://doc.qtsoftware.com/4.5/qt.html#TextElideMode-enum">Qt::TextElideMode</a> <i>mode</i> )</h3>
<p>See also <a href="qxtitemdelegate.html#elideMode">elideMode</a>().</p>
<h3 class="fn"><a name="setProgressTextFormat"></a>void QxtItemDelegate::setProgressTextFormat ( const <a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a> &amp; <i>format</i> )</h3>
<p>See also <a href="qxtitemdelegate.html#progressTextFormat">progressTextFormat</a>().</p>
<h3 class="fn"><a name="setProgressTextVisible"></a>void QxtItemDelegate::setProgressTextVisible ( bool <i>visible</i> )</h3>
<p>See also <a href="qxtitemdelegate.html#isProgressTextVisible">isProgressTextVisible</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>