~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to doc/html/qitemeditorfactory.html

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-08-24 04:09:09 UTC
  • Revision ID: james.westby@ubuntu.com-20050824040909-xmxe9jfr4a0w5671
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="iso-8859-1"?>
 
2
<!DOCTYPE html
 
3
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
 
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
5
<!-- /tmp/qt-4.0.0-espenr-1119621036935/qt-x11-opensource-desktop-4.0.0/src/gui/itemviews/qitemeditorfactory.cpp -->
 
6
<head>
 
7
    <title>Qt 4.0: QItemEditorFactory Class Reference</title>
 
8
    <style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
 
9
a:link { color: #004faf; text-decoration: none }
 
10
a:visited { color: #672967; text-decoration: none }
 
11
td.postheader { font-family: sans-serif }
 
12
tr.address { font-family: sans-serif }
 
13
body { background: #ffffff; color: black; }</style>
 
14
</head>
 
15
<body>
 
16
<table border="0" cellpadding="0" cellspacing="0" width="100%">
 
17
<tr>
 
18
<td align="left" valign="top" width="32"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></td>
 
19
<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="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="annotated.html"><font color="#004faf">Annotated</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
 
20
<td align="right" valign="top" width="230"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></td></tr></table><h1 align="center">QItemEditorFactory Class Reference</h1>
 
21
<p>The QItemEditorFactory class provides widgets for editing item data in views and delegates. <a href="#details">More...</a></p>
 
22
<pre>#include &lt;QItemEditorFactory&gt;</pre><p>Part of the <a href="qtgui.html">QtGui</a> module.</p>
 
23
<ul>
 
24
<li><a href="qitemeditorfactory-members.html">List of all members, including inherited members</a></li>
 
25
</ul>
 
26
<a name="public-functions"></a>
 
27
<h3>Public Functions</h3>
 
28
<ul>
 
29
<li><div class="fn"/><b><a href="qitemeditorfactory.html#QItemEditorFactory">QItemEditorFactory</a></b> ()</li>
 
30
<li><div class="fn"/>virtual <b><a href="qitemeditorfactory.html#dtor.QItemEditorFactory">~QItemEditorFactory</a></b> ()</li>
 
31
<li><div class="fn"/>virtual QWidget * <b><a href="qitemeditorfactory.html#createEditor">createEditor</a></b> ( QVariant::Type <i>type</i>, QWidget * <i>parent</i> ) const</li>
 
32
<li><div class="fn"/>void <b><a href="qitemeditorfactory.html#registerEditor">registerEditor</a></b> ( QVariant::Type <i>type</i>, QItemEditorCreatorBase * <i>creator</i> )</li>
 
33
<li><div class="fn"/>virtual QByteArray <b><a href="qitemeditorfactory.html#valuePropertyName">valuePropertyName</a></b> ( QVariant::Type <i>type</i> ) const</li>
 
34
</ul>
 
35
<a name="static-public-members"></a>
 
36
<h3>Static Public Members</h3>
 
37
<ul>
 
38
<li><div class="fn"/>const QItemEditorFactory * <b><a href="qitemeditorfactory.html#defaultFactory">defaultFactory</a></b> ()</li>
 
39
<li><div class="fn"/>void <b><a href="qitemeditorfactory.html#setDefaultFactory">setDefaultFactory</a></b> ( QItemEditorFactory * <i>factory</i> )</li>
 
40
</ul>
 
41
<a name="details"></a>
 
42
<hr />
 
43
<h2>Detailed Description</h2>
 
44
<p>The QItemEditorFactory class provides widgets for editing item data in views and delegates.</p>
 
45
<p>When editing the data shown by an item delegate, the <a href="qitemdelegate.html">QItemDelegate</a> responsible requests an editor widget from its item editor factory. The default factory is provided by this class, but it is possible to implement subclasses that provide specialized editing behavior, such as row or column-specific editors, or editors for certain types of data.</p>
 
46
<p>See also <a href="qitemdelegate.html">QItemDelegate</a>.</p>
 
47
<hr />
 
48
<h2>Member Function Documentation</h2>
 
49
<h3 class="fn"><a name="QItemEditorFactory"></a>QItemEditorFactory::QItemEditorFactory ()</h3>
 
50
<p>Constructs a new item editor factory.</p>
 
51
<h3 class="fn"><a name="dtor.QItemEditorFactory"></a>QItemEditorFactory::~QItemEditorFactory ()&nbsp;&nbsp;<tt> [virtual]</tt></h3>
 
52
<p>Destroys the item editor factory.</p>
 
53
<h3 class="fn"><a name="createEditor"></a><a href="qwidget.html">QWidget</a> * QItemEditorFactory::createEditor ( <a href="qvariant.html#Type-enum">QVariant::Type</a> <i>type</i>, <a href="qwidget.html">QWidget</a> * <i>parent</i> ) const&nbsp;&nbsp;<tt> [virtual]</tt></h3>
 
54
<p>Creates an editor widget with the given <i>parent</i> for the specified <i>type</i> of data, and returns it as a <a href="qwidget.html">QWidget</a>.</p>
 
55
<p>See also <a href="qitemeditorfactory.html#registerEditor">registerEditor</a>().</p>
 
56
<h3 class="fn"><a name="defaultFactory"></a>const QItemEditorFactory * QItemEditorFactory::defaultFactory ()&nbsp;&nbsp;<tt> [static]</tt></h3>
 
57
<p>Returns the default item editor factory.</p>
 
58
<p>See also <a href="qitemeditorfactory.html#setDefaultFactory">setDefaultFactory</a>().</p>
 
59
<h3 class="fn"><a name="registerEditor"></a>void QItemEditorFactory::registerEditor ( <a href="qvariant.html#Type-enum">QVariant::Type</a> <i>type</i>, <a href="qitemeditorcreatorbase.html">QItemEditorCreatorBase</a> * <i>creator</i> )</h3>
 
60
<p>Registers an item editor creator specified by <i>creator</i> for the given <i>type</i> of data.</p>
 
61
<p>See also <a href="qitemeditorfactory.html#createEditor">createEditor</a>().</p>
 
62
<h3 class="fn"><a name="setDefaultFactory"></a>void QItemEditorFactory::setDefaultFactory ( QItemEditorFactory * <i>factory</i> )&nbsp;&nbsp;<tt> [static]</tt></h3>
 
63
<p>Sets the default item editor factory to the given <i>factory</i>.</p>
 
64
<p>See also <a href="qitemeditorfactory.html#defaultFactory">defaultFactory</a>().</p>
 
65
<h3 class="fn"><a name="valuePropertyName"></a><a href="qbytearray.html">QByteArray</a> QItemEditorFactory::valuePropertyName ( <a href="qvariant.html#Type-enum">QVariant::Type</a> <i>type</i> ) const&nbsp;&nbsp;<tt> [virtual]</tt></h3>
 
66
<p>Returns the property name used to identify the given <i>type</i> of data.</p>
 
67
<p /><address><hr /><div align="center">
 
68
<table width="100%" cellspacing="0" border="0"><tr class="address">
 
69
<td width="30%">Copyright &copy; 2005 <a href="trolltech.html">Trolltech</a></td>
 
70
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
 
71
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
 
72
</tr></table></div></address></body>
 
73
</html>