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

« back to all changes in this revision

Viewing changes to doc/html/q3sqleditorfactory.html

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-11-02 18:30:08 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (15.2.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 88.
  • Revision ID: james.westby@ubuntu.com-20091102183008-b6a4gcs128mvfb3m
Tags: upstream-4.6.0~beta1
ImportĀ upstreamĀ versionĀ 4.6.0~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
<!DOCTYPE html
3
3
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
 
<!-- /fasttmp/mkdist-qt-4.5.2-1245473805/qt-x11-opensource-src-4.5.2/src/qt3support/sql/q3sqleditorfactory.cpp -->
 
5
<!-- q3sqleditorfactory.cpp -->
6
6
<head>
7
 
  <title>Qt 4.5: Q3SqlEditorFactory Class Reference</title>
 
7
  <title>Qt 4.6: Q3SqlEditorFactory Class Reference</title>
8
8
  <link href="classic.css" rel="stylesheet" type="text/css" />
9
9
</head>
10
10
<body>
 
11
<a name="//apple_ref/cpp/cl//Q3SqlEditorFactory" />
11
12
<table border="0" cellpadding="0" cellspacing="0" width="100%">
12
13
<tr>
13
 
<td align="left" valign="top" width="32"><a href="http://qtsoftware.com/products/qt"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
14
 
<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="namespaces.html"><font color="#004faf">All&nbsp;Namespaces</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="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
15
 
<td align="right" valign="top" width="230"></td></tr></table><h1 class="title">Q3SqlEditorFactory Class Reference<br /><span class="small-subtitle">[<a href="qt3support.html">Qt3Support</a> module]</span>
 
14
<td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
 
15
<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="functions.html"><font color="#004faf">All&nbsp;Functions</font></a>&nbsp;&middot; <a href="overviews.html"><font color="#004faf">Overviews</font></a></td><td class="searchBar" align="right" valign="center"><form action="http://www.google.com/cse" id="cse-search-box"><div><input type="hidden" name="cx" value="000136343326384750312:dhbxnqlakyu" /><input type="hidden" name="ie" value="UTF-8" /><input type="text" name="q" size="31" /><input type="submit" name="sa" value="Search" /></div></form></td>
 
16
</tr></table><h1 class="title">Q3SqlEditorFactory Class Reference<br /><span class="small-subtitle">[<a href="qt3support.html">Qt3Support</a> module]</span>
16
17
</h1>
17
18
<p>The Q3SqlEditorFactory class is used to create the editors used by <a href="q3datatable.html">Q3DataTable</a> and <a href="q3sqlform.html">Q3SqlForm</a>. <a href="#details">More...</a></p>
18
19
<pre> #include &lt;Q3SqlEditorFactory&gt;</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#qsqleditorfactory">Porting to Qt 4</a> for more information.</p>
19
 
<p><b>Note to Qt Desktop Light Edition users:</b> This class is only available in the Qt Desktop Edition.</p>
 
20
<p><b>This class is not part of the Qt GUI Framework Edition.</b></p>
20
21
<p>Inherits <a href="q3editorfactory.html">Q3EditorFactory</a>.</p>
21
22
<ul>
22
23
<li><a href="q3sqleditorfactory-members.html">List of all members, including inherited members</a></li>
23
24
</ul>
 
25
<hr />
24
26
<a name="public-functions"></a>
25
 
<h3>Public Functions</h3>
26
 
<ul>
27
 
<li><div class="fn"></div><b><a href="q3sqleditorfactory.html#Q3SqlEditorFactory">Q3SqlEditorFactory</a></b> ( QObject * <i>parent</i> = 0 )</li>
28
 
<li><div class="fn"></div><b><a href="q3sqleditorfactory.html#dtor.Q3SqlEditorFactory">~Q3SqlEditorFactory</a></b> ()</li>
29
 
<li><div class="fn"></div>virtual QWidget * <b><a href="q3sqleditorfactory.html#createEditor">createEditor</a></b> ( QWidget * <i>parent</i>, const QVariant &amp; <i>variant</i> )</li>
30
 
<li><div class="fn"></div>virtual QWidget * <b><a href="q3sqleditorfactory.html#createEditor-2">createEditor</a></b> ( QWidget * <i>parent</i>, const QSqlField * <i>field</i> )</li>
31
 
</ul>
32
 
<ul>
33
 
<li><div class="fn"></div>1 public function inherited from <a href="q3editorfactory.html#public-functions">Q3EditorFactory</a></li>
34
 
<li><div class="fn"></div>29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
35
 
</ul>
 
27
<h2>Public Functions</h2>
 
28
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
29
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="q3sqleditorfactory.html#Q3SqlEditorFactory">Q3SqlEditorFactory</a></b> ( QObject * <i>parent</i> = 0 )</td></tr>
 
30
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="q3sqleditorfactory.html#dtor.Q3SqlEditorFactory">~Q3SqlEditorFactory</a></b> ()</td></tr>
 
31
<tr><td class="memItemLeft" align="right" valign="top">virtual QWidget * </td><td class="memItemRight" valign="bottom"><b><a href="q3sqleditorfactory.html#createEditor-2">createEditor</a></b> ( QWidget * <i>parent</i>, const QSqlField * <i>field</i> )</td></tr>
 
32
</table>
 
33
<hr />
 
34
<a name="reimplemented-public-functions"></a>
 
35
<h2>Reimplemented Public Functions</h2>
 
36
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
37
<tr><td class="memItemLeft" align="right" valign="top">virtual QWidget * </td><td class="memItemRight" valign="bottom"><b><a href="q3sqleditorfactory.html#createEditor">createEditor</a></b> ( QWidget * <i>parent</i>, const QVariant &amp; <i>variant</i> )</td></tr>
 
38
</table>
 
39
<ul>
 
40
<li><div bar="2" class="fn"></div>1 public function inherited from <a href="q3editorfactory.html#public-functions">Q3EditorFactory</a></li>
 
41
<li><div bar="2" class="fn"></div>29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
 
42
</ul>
 
43
<hr />
36
44
<a name="static-public-members"></a>
37
 
<h3>Static Public Members</h3>
38
 
<ul>
39
 
<li><div class="fn"></div>Q3SqlEditorFactory * <b><a href="q3sqleditorfactory.html#defaultFactory">defaultFactory</a></b> ()</li>
40
 
<li><div class="fn"></div>void <b><a href="q3sqleditorfactory.html#installDefaultFactory">installDefaultFactory</a></b> ( Q3SqlEditorFactory * <i>factory</i> )</li>
41
 
</ul>
42
 
<ul>
43
 
<li><div class="fn"></div>2 static public members inherited from <a href="q3editorfactory.html#static-public-members">Q3EditorFactory</a></li>
44
 
<li><div class="fn"></div>5 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
 
45
<h2>Static Public Members</h2>
 
46
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
47
<tr><td class="memItemLeft" align="right" valign="top">Q3SqlEditorFactory * </td><td class="memItemRight" valign="bottom"><b><a href="q3sqleditorfactory.html#defaultFactory">defaultFactory</a></b> ()</td></tr>
 
48
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3sqleditorfactory.html#installDefaultFactory">installDefaultFactory</a></b> ( Q3SqlEditorFactory * <i>factory</i> )</td></tr>
 
49
</table>
 
50
<ul>
 
51
<li><div bar="2" class="fn"></div>2 static public members inherited from <a href="q3editorfactory.html#static-public-members">Q3EditorFactory</a></li>
 
52
<li><div bar="2" class="fn"></div>5 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
45
53
</ul>
46
54
<h3>Additional Inherited Members</h3>
47
55
<ul>
59
67
<p>See also <a href="q3datatable.html">Q3DataTable</a> and <a href="q3sqlform.html">Q3SqlForm</a>.</p>
60
68
<hr />
61
69
<h2>Member Function Documentation</h2>
 
70
<a name="//apple_ref/cpp/instm/Q3SqlEditorFactory/Q3SqlEditorFactory" />
62
71
<h3 class="fn"><a name="Q3SqlEditorFactory"></a>Q3SqlEditorFactory::Q3SqlEditorFactory ( <a href="qobject.html">QObject</a> * <i>parent</i> = 0 )</h3>
63
72
<p>Constructs a SQL editor factory with parent <i>parent</i>.</p>
 
73
<a name="//apple_ref/cpp/instm/Q3SqlEditorFactory/~Q3SqlEditorFactory" />
64
74
<h3 class="fn"><a name="dtor.Q3SqlEditorFactory"></a>Q3SqlEditorFactory::~Q3SqlEditorFactory ()</h3>
65
75
<p>Destroys the object and frees any allocated resources.</p>
 
76
<a name="//apple_ref/cpp/instm/Q3SqlEditorFactory/createEditor" />
66
77
<h3 class="fn"><a name="createEditor"></a><a href="qwidget.html">QWidget</a> * Q3SqlEditorFactory::createEditor ( <a href="qwidget.html">QWidget</a> * <i>parent</i>, const <a href="qvariant.html">QVariant</a> &amp; <i>variant</i> )&nbsp;&nbsp;<tt> [virtual]</tt></h3>
 
78
<p>Reimplemented from <a href="q3editorfactory.html#createEditor">Q3EditorFactory::createEditor</a>().</p>
67
79
<p>Creates and returns the appropriate editor widget for the <a href="qvariant.html">QVariant</a> <i>variant</i>.</p>
68
80
<p>The widget that is returned has the parent <i>parent</i> (which may be zero). If <i>variant</i> is invalid, 0 is returned.</p>
69
 
<p>Reimplemented from <a href="q3editorfactory.html#createEditor">Q3EditorFactory</a>.</p>
70
81
<h3 class="fn"><a name="createEditor-2"></a><a href="qwidget.html">QWidget</a> * Q3SqlEditorFactory::createEditor ( <a href="qwidget.html">QWidget</a> * <i>parent</i>, const <a href="qsqlfield.html">QSqlField</a> * <i>field</i> )&nbsp;&nbsp;<tt> [virtual]</tt></h3>
71
82
<p>This is an overloaded function.</p>
72
83
<p>Creates and returns the appropriate editor for the <a href="qsqlfield.html">QSqlField</a> <i>field</i>.</p>
 
84
<a name="//apple_ref/cpp/clm/Q3SqlEditorFactory/defaultFactory" />
73
85
<h3 class="fn"><a name="defaultFactory"></a>Q3SqlEditorFactory * Q3SqlEditorFactory::defaultFactory ()&nbsp;&nbsp;<tt> [static]</tt></h3>
74
86
<p>Returns an instance of a default editor factory.</p>
 
87
<a name="//apple_ref/cpp/clm/Q3SqlEditorFactory/installDefaultFactory" />
75
88
<h3 class="fn"><a name="installDefaultFactory"></a>void Q3SqlEditorFactory::installDefaultFactory ( Q3SqlEditorFactory * <i>factory</i> )&nbsp;&nbsp;<tt> [static]</tt></h3>
76
 
<p>Replaces the default editor factory with <i>factory</i>. All <a href="q3datatable.html">Q3DataTable</a> and <a href="q3sqlform.html">Q3SqlForm</a> instantiations will use this new factory for creating field editors. <i><a href="q3sqleditorfactory.html">Q3SqlEditorFactory</a> takes ownership of <i>factory</i>, and destroys it when it is no longer needed.</i></p>
 
89
<p>Replaces the default editor factory with <i>factory</i>. All <a href="q3datatable.html" class="compat">Q3DataTable</a> and <a href="q3sqlform.html" class="compat">Q3SqlForm</a> instantiations will use this new factory for creating field editors. <i><a href="q3sqleditorfactory.html" class="compat">Q3SqlEditorFactory</a> takes ownership of <i>factory</i>, and destroys it when it is no longer needed.</i></p>
77
90
<p /><address><hr /><div align="center">
78
91
<table width="100%" cellspacing="0" border="0"><tr class="address">
79
 
<td width="30%" align="left">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies)</td>
80
 
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
81
 
<td width="30%" align="right"><div align="right">Qt 4.5.2</div></td>
82
 
</tr></table></div></address></body>
 
92
<td width="40%" align="left">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies)</td>
 
93
<td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td>
 
94
<td width="40%" align="right"><div align="right">Qt 4.6.0</div></td>
 
95
<script type="text/javascript" src="http://www.google.com/jsapi"></script><script type="text/javascript">google.load("elements", "1", {packages: "transliteration"});</script><script type="text/javascript" src="http://www.google.com/coop/cse/t13n?form=cse-search-box&t13n_langs=en"></script><script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script></tr></table></div></address></body>
83
96
</html>