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

« back to all changes in this revision

Viewing changes to doc/html/q3datetimeedit.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/widgets/q3datetimeedit.cpp -->
 
5
<!-- q3datetimeedit.cpp -->
6
6
<head>
7
 
  <title>Qt 4.5: Q3DateTimeEdit Class Reference</title>
 
7
  <title>Qt 4.6: Q3DateTimeEdit 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//Q3DateTimeEdit" />
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">Q3DateTimeEdit 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">Q3DateTimeEdit Class Reference<br /><span class="small-subtitle">[<a href="qt3support.html">Qt3Support</a> module]</span>
16
17
</h1>
17
18
<p>The Q3DateTimeEdit class combines a <a href="q3dateedit.html">Q3DateEdit</a> and <a href="q3timeedit.html">Q3TimeEdit</a> widget into a single widget for editing datetimes. <a href="#details">More...</a></p>
18
19
<pre> #include &lt;Q3DateTimeEdit&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#qdatetimeedit">Porting to Qt 4</a> for more information.</p>
20
21
<ul>
21
22
<li><a href="q3datetimeedit-members.html">List of all members, including inherited members</a></li>
22
23
</ul>
 
24
<hr />
23
25
<a name="properties"></a>
24
 
<h3>Properties</h3>
25
 
<ul>
26
 
<li><div class="fn"></div><b><a href="q3datetimeedit.html#dateTime-prop">dateTime</a></b> : QDateTime</li>
27
 
</ul>
28
 
<ul>
29
 
<li><div class="fn"></div>57 properties inherited from <a href="qwidget.html#properties">QWidget</a></li>
30
 
<li><div class="fn"></div>1 property inherited from <a href="qobject.html#properties">QObject</a></li>
31
 
</ul>
 
26
<h2>Properties</h2>
 
27
<ul>
 
28
<li><div class="fn"><b><a href="q3datetimeedit.html#dateTime-prop">dateTime</a></b> : QDateTime</div></li>
 
29
</ul>
 
30
<ul>
 
31
<li><div bar="2" class="fn"></div>58 properties inherited from <a href="qwidget.html#properties">QWidget</a></li>
 
32
<li><div bar="2" class="fn"></div>1 property inherited from <a href="qobject.html#properties">QObject</a></li>
 
33
</ul>
 
34
<hr />
32
35
<a name="public-functions"></a>
33
 
<h3>Public Functions</h3>
34
 
<ul>
35
 
<li><div class="fn"></div><b><a href="q3datetimeedit.html#Q3DateTimeEdit">Q3DateTimeEdit</a></b> ( QWidget * <i>parent</i> = 0, const char * <i>name</i> = 0 )</li>
36
 
<li><div class="fn"></div><b><a href="q3datetimeedit.html#Q3DateTimeEdit-2">Q3DateTimeEdit</a></b> ( const QDateTime &amp; <i>datetime</i>, QWidget * <i>parent</i> = 0, const char * <i>name</i> = 0 )</li>
37
 
<li><div class="fn"></div><b><a href="q3datetimeedit.html#dtor.Q3DateTimeEdit">~Q3DateTimeEdit</a></b> ()</li>
38
 
<li><div class="fn"></div>bool <b><a href="q3datetimeedit.html#autoAdvance">autoAdvance</a></b> () const</li>
39
 
<li><div class="fn"></div>Q3DateEdit * <b><a href="q3datetimeedit.html#dateEdit">dateEdit</a></b> ()</li>
40
 
<li><div class="fn"></div>QDateTime <b><a href="q3datetimeedit.html#dateTime-prop">dateTime</a></b> () const</li>
41
 
<li><div class="fn"></div>virtual void <b><a href="q3datetimeedit.html#setAutoAdvance">setAutoAdvance</a></b> ( bool <i>advance</i> )</li>
42
 
<li><div class="fn"></div>Q3TimeEdit * <b><a href="q3datetimeedit.html#timeEdit">timeEdit</a></b> ()</li>
43
 
</ul>
44
 
<ul>
45
 
<li><div class="fn"></div>207 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
46
 
<li><div class="fn"></div>29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
47
 
<li><div class="fn"></div>12 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
48
 
</ul>
 
36
<h2>Public Functions</h2>
 
37
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
38
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="q3datetimeedit.html#Q3DateTimeEdit">Q3DateTimeEdit</a></b> ( QWidget * <i>parent</i> = 0, const char * <i>name</i> = 0 )</td></tr>
 
39
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="q3datetimeedit.html#Q3DateTimeEdit-2">Q3DateTimeEdit</a></b> ( const QDateTime &amp; <i>datetime</i>, QWidget * <i>parent</i> = 0, const char * <i>name</i> = 0 )</td></tr>
 
40
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="q3datetimeedit.html#dtor.Q3DateTimeEdit">~Q3DateTimeEdit</a></b> ()</td></tr>
 
41
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3datetimeedit.html#autoAdvance">autoAdvance</a></b> () const</td></tr>
 
42
<tr><td class="memItemLeft" align="right" valign="top">Q3DateEdit * </td><td class="memItemRight" valign="bottom"><b><a href="q3datetimeedit.html#dateEdit">dateEdit</a></b> ()</td></tr>
 
43
<tr><td class="memItemLeft" align="right" valign="top">QDateTime </td><td class="memItemRight" valign="bottom"><b><a href="q3datetimeedit.html#dateTime-prop">dateTime</a></b> () const</td></tr>
 
44
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3datetimeedit.html#setAutoAdvance">setAutoAdvance</a></b> ( bool <i>advance</i> )</td></tr>
 
45
<tr><td class="memItemLeft" align="right" valign="top">Q3TimeEdit * </td><td class="memItemRight" valign="bottom"><b><a href="q3datetimeedit.html#timeEdit">timeEdit</a></b> ()</td></tr>
 
46
</table>
 
47
<hr />
 
48
<a name="reimplemented-public-functions"></a>
 
49
<h2>Reimplemented Public Functions</h2>
 
50
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
51
<tr><td class="memItemLeft" align="right" valign="top">virtual QSize </td><td class="memItemRight" valign="bottom"><b><a href="q3datetimeedit.html#minimumSizeHint">minimumSizeHint</a></b> () const</td></tr>
 
52
<tr><td class="memItemLeft" align="right" valign="top">virtual QSize </td><td class="memItemRight" valign="bottom"><b><a href="q3datetimeedit.html#sizeHint">sizeHint</a></b> () const</td></tr>
 
53
</table>
 
54
<ul>
 
55
<li><div bar="2" class="fn"></div>215 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
 
56
<li><div bar="2" class="fn"></div>29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
 
57
<li><div bar="2" class="fn"></div>12 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
 
58
</ul>
 
59
<hr />
49
60
<a name="public-slots"></a>
50
 
<h3>Public Slots</h3>
51
 
<ul>
52
 
<li><div class="fn"></div>virtual void <b><a href="q3datetimeedit.html#dateTime-prop">setDateTime</a></b> ( const QDateTime &amp; <i>dt</i> )</li>
53
 
</ul>
54
 
<ul>
55
 
<li><div class="fn"></div>19 public slots inherited from <a href="qwidget.html#public-slots">QWidget</a></li>
56
 
<li><div class="fn"></div>1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
57
 
</ul>
 
61
<h2>Public Slots</h2>
 
62
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
63
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3datetimeedit.html#dateTime-prop">setDateTime</a></b> ( const QDateTime &amp; <i>dt</i> )</td></tr>
 
64
</table>
 
65
<ul>
 
66
<li><div bar="2" class="fn"></div>19 public slots inherited from <a href="qwidget.html#public-slots">QWidget</a></li>
 
67
<li><div bar="2" class="fn"></div>1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
 
68
</ul>
 
69
<hr />
58
70
<a name="signals"></a>
59
 
<h3>Signals</h3>
 
71
<h2>Signals</h2>
 
72
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
73
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="q3datetimeedit.html#valueChanged">valueChanged</a></b> ( const QDateTime &amp; <i>datetime</i> )</td></tr>
 
74
</table>
60
75
<ul>
61
 
<li><div class="fn"></div>void <b><a href="q3datetimeedit.html#valueChanged">valueChanged</a></b> ( const QDateTime &amp; <i>datetime</i> )</li>
 
76
<li><div bar="2" class="fn"></div>1 signal inherited from <a href="qwidget.html#signals">QWidget</a></li>
 
77
<li><div bar="2" class="fn"></div>1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
62
78
</ul>
 
79
<hr />
 
80
<a name="reimplemented-protected-functions"></a>
 
81
<h2>Reimplemented Protected Functions</h2>
 
82
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
83
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="q3datetimeedit.html#resizeEvent">resizeEvent</a></b> ( QResizeEvent * <i>event</i> )</td></tr>
 
84
</table>
63
85
<ul>
64
 
<li><div class="fn"></div>1 signal inherited from <a href="qwidget.html#signals">QWidget</a></li>
65
 
<li><div class="fn"></div>1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
 
86
<li><div bar="2" class="fn"></div>37 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
 
87
<li><div bar="2" class="fn"></div>7 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
 
88
<li><div bar="2" class="fn"></div>1 protected function inherited from <a href="qpaintdevice.html#protected-functions">QPaintDevice</a></li>
66
89
</ul>
67
90
<h3>Additional Inherited Members</h3>
68
91
<ul>
88
111
<p align="center"><img src="images/datetimewidgets.png" alt="Date Time Widgets" /></p><p>See also <a href="q3dateedit.html">Q3DateEdit</a> and <a href="q3timeedit.html">Q3TimeEdit</a>.</p>
89
112
<hr />
90
113
<h2>Property Documentation</h2>
 
114
<a name="//apple_ref/cpp/instm/Q3DateTimeEdit/dateTime" />
 
115
<a name="//apple_ref/cpp/instm/Q3DateTimeEdit/setDateTime" />
91
116
<h3 class="fn"><a name="dateTime-prop"></a>dateTime : <a href="qdatetime.html">QDateTime</a></h3>
92
117
<p>This property holds the editor's datetime value.</p>
93
118
<p>The datetime edit's datetime which may be an invalid datetime.</p>
94
 
<p>Access functions:</p>
95
 
<ul>
96
 
<li><div class="fn"></div><b>QDateTime dateTime () const</b></li>
97
 
<li><div class="fn"></div><b>virtual void setDateTime ( const QDateTime &amp; <i>dt</i> )</b></li>
98
 
</ul>
 
119
<p><b>Access functions:</b></p>
 
120
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
121
<tr><td class="memItemLeft" align="right" valign="top">QDateTime </td><td class="memItemRight" valign="bottom"><b>dateTime</b> () const</td></tr>
 
122
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b>setDateTime</b> ( const QDateTime &amp; <i>dt</i> )</td></tr>
 
123
</table>
99
124
<hr />
100
125
<h2>Member Function Documentation</h2>
 
126
<a name="//apple_ref/cpp/instm/Q3DateTimeEdit/Q3DateTimeEdit" />
101
127
<h3 class="fn"><a name="Q3DateTimeEdit"></a>Q3DateTimeEdit::Q3DateTimeEdit ( <a href="qwidget.html">QWidget</a> * <i>parent</i> = 0, const char * <i>name</i> = 0 )</h3>
102
128
<p>Constructs an empty datetime edit with parent <i>parent</i> and called <i>name</i>.</p>
103
129
<h3 class="fn"><a name="Q3DateTimeEdit-2"></a>Q3DateTimeEdit::Q3DateTimeEdit ( const <a href="qdatetime.html">QDateTime</a> &amp; <i>datetime</i>, <a href="qwidget.html">QWidget</a> * <i>parent</i> = 0, const char * <i>name</i> = 0 )</h3>
104
130
<p>This is an overloaded function.</p>
105
131
<p>Constructs a datetime edit with the initial value <i>datetime</i>, parent <i>parent</i> and called <i>name</i>.</p>
 
132
<a name="//apple_ref/cpp/instm/Q3DateTimeEdit/~Q3DateTimeEdit" />
106
133
<h3 class="fn"><a name="dtor.Q3DateTimeEdit"></a>Q3DateTimeEdit::~Q3DateTimeEdit ()</h3>
107
134
<p>Destroys the object and frees any allocated resources.</p>
 
135
<a name="//apple_ref/cpp/instm/Q3DateTimeEdit/autoAdvance" />
108
136
<h3 class="fn"><a name="autoAdvance"></a>bool Q3DateTimeEdit::autoAdvance () const</h3>
109
137
<p>Returns true if auto-advance is enabled, otherwise returns false.</p>
110
138
<p>See also <a href="q3datetimeedit.html#setAutoAdvance">setAutoAdvance</a>().</p>
 
139
<a name="//apple_ref/cpp/instm/Q3DateTimeEdit/dateEdit" />
111
140
<h3 class="fn"><a name="dateEdit"></a><a href="q3dateedit.html">Q3DateEdit</a> * Q3DateTimeEdit::dateEdit ()</h3>
112
141
<p>Returns the internal widget used for editing the date part of the datetime.</p>
 
142
<a name="//apple_ref/cpp/instm/Q3DateTimeEdit/minimumSizeHint" />
 
143
<h3 class="fn"><a name="minimumSizeHint"></a><a href="qsize.html">QSize</a> Q3DateTimeEdit::minimumSizeHint () const&nbsp;&nbsp;<tt> [virtual]</tt></h3>
 
144
<p>Reimplemented from <a href="qwidget.html#minimumSizeHint-prop">QWidget::minimumSizeHint</a>().</p>
 
145
<a name="//apple_ref/cpp/instm/Q3DateTimeEdit/resizeEvent" />
 
146
<h3 class="fn"><a name="resizeEvent"></a>void Q3DateTimeEdit::resizeEvent ( <a href="qresizeevent.html">QResizeEvent</a> * <i>event</i> )&nbsp;&nbsp;<tt> [virtual protected]</tt></h3>
 
147
<p>Reimplemented from <a href="qwidget.html#resizeEvent">QWidget::resizeEvent</a>().</p>
 
148
<p>Intercepts and handles the resize <i>event</i>, which hase a special meaning for the <a href="q3datetimeedit.html" class="compat">Q3DateTimeEdit</a>.</p>
 
149
<a name="//apple_ref/cpp/instm/Q3DateTimeEdit/setAutoAdvance" />
113
150
<h3 class="fn"><a name="setAutoAdvance"></a>void Q3DateTimeEdit::setAutoAdvance ( bool <i>advance</i> )&nbsp;&nbsp;<tt> [virtual]</tt></h3>
114
151
<p>Sets the auto advance property of the editor to <i>advance</i>. If set to true, the editor will automatically advance focus to the next date or time section if the user has completed a section.</p>
115
152
<p>See also <a href="q3datetimeedit.html#autoAdvance">autoAdvance</a>().</p>
 
153
<a name="//apple_ref/cpp/instm/Q3DateTimeEdit/sizeHint" />
 
154
<h3 class="fn"><a name="sizeHint"></a><a href="qsize.html">QSize</a> Q3DateTimeEdit::sizeHint () const&nbsp;&nbsp;<tt> [virtual]</tt></h3>
 
155
<p>Reimplemented from <a href="qwidget.html#sizeHint-prop">QWidget::sizeHint</a>().</p>
 
156
<a name="//apple_ref/cpp/instm/Q3DateTimeEdit/timeEdit" />
116
157
<h3 class="fn"><a name="timeEdit"></a><a href="q3timeedit.html">Q3TimeEdit</a> * Q3DateTimeEdit::timeEdit ()</h3>
117
158
<p>Returns the internal widget used for editing the time part of the datetime.</p>
 
159
<a name="//apple_ref/cpp/instm/Q3DateTimeEdit/valueChanged" />
118
160
<h3 class="fn"><a name="valueChanged"></a>void Q3DateTimeEdit::valueChanged ( const <a href="qdatetime.html">QDateTime</a> &amp; <i>datetime</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
119
161
<p>This signal is emitted every time the date or time changes. The <i>datetime</i> argument is the new datetime.</p>
120
162
<p /><address><hr /><div align="center">
121
163
<table width="100%" cellspacing="0" border="0"><tr class="address">
122
 
<td width="30%" align="left">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies)</td>
123
 
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
124
 
<td width="30%" align="right"><div align="right">Qt 4.5.2</div></td>
125
 
</tr></table></div></address></body>
 
164
<td width="40%" align="left">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies)</td>
 
165
<td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td>
 
166
<td width="40%" align="right"><div align="right">Qt 4.6.0</div></td>
 
167
<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>
126
168
</html>