<trbgcolor=#f0f0f0><td><b><ahref="ntqdatetimeedit.html">TQDateTimeEdit</a></b><td>Combines a TQDateEdit and TQTimeEdit widget into a single widget for editing datetimes
<trbgcolor=#f0f0f0><td><b><ahref="tqdatetimeedit.html">TQDateTimeEdit</a></b><td>Combines a TQDateEdit and TQTimeEdit widget into a single widget for editing datetimes
<trbgcolor=#f0f0f0><td><b><ahref="ntqdesktopwidget.html">TQDesktopWidget</a></b><td>Access to screen information on multi-head systems
<trbgcolor=#f0f0f0><td><b><ahref="ntqheader.html">TQHeader</a></b><td>Header row or column, e.g. for tables and listviews
<trbgcolor=#f0f0f0><td><b><ahref="tqiconfactory.html">TQIconFactory</a></b><td>Used to create pixmaps for a TQIconSet
<trbgcolor=#f0f0f0><td><b><ahref="ntqdatetime.html">TQDateTime</a></b><td>Date and time functions
<trbgcolor=#f0f0f0><td><b><ahref="ntqdatetimeedit.html">TQDateTimeEdit</a></b><td>Combines a TQDateEdit and TQTimeEdit widget into a single widget for editing datetimes
<trbgcolor=#f0f0f0><td><b><ahref="qdatetimeeditbase.html">TQDateTimeEditBase</a></b><td>Abstraction for date and edit editors
<trbgcolor=#f0f0f0><td><b><ahref="tqdatetime.html">TQDateTime</a></b><td>Date and time functions
<trbgcolor=#f0f0f0><td><b><ahref="tqdatetimeedit.html">TQDateTimeEdit</a></b><td>Combines a TQDateEdit and TQTimeEdit widget into a single widget for editing datetimes
<trbgcolor=#f0f0f0><td><b><ahref="tqdatetimeeditbase.html">TQDateTimeEditBase</a></b><td>Abstraction for date and edit editors
<trbgcolor=#f0f0f0><td><b><ahref="ntqdeepcopy.html">TQDeepCopy</a></b><td>Template class which ensures that <ahref="shclass.html#implicitly-shared">implicitly shared</a> and <ahref="shclass.html#explicitly-shared">explicitly shared</a> classes reference unique data
<trbgcolor=#f0f0f0><td><b><ahref="ntqdesktopwidget.html">TQDesktopWidget</a></b><td>Access to screen information on multi-head systems
<trbgcolor=#f0f0f0><td><b><ahref="ntqdial.html">TQDial</a></b><td>Rounded range control (like a speedometer or potentiometer)
<trbgcolor=#f0f0f0><td><b><ahref="tqtimer.html">TQTimer</a></b><td>Timer signals and single-shot timers
<trbgcolor=#f0f0f0><td><b><ahref="tqtimerevent.html">TQTimerEvent</a></b><td>Parameters that describe a timer event
<trbgcolor=#f0f0f0><td><b><ahref="ntqtoolbar.html">TQToolBar</a></b><td>Movable panel containing widgets such as tool buttons
<trbgcolor=#f0f0f0><td><b><ahref="ntqtoolbox.html">TQToolBox</a></b><td>Column of tabbed widget items
<trbgcolor=#f0f0f0><td><b><ahref="ntqtoolbutton.html">TQToolButton</a></b><td>Quick-access button to commands or options, usually used inside a TQToolBar
@ -804,7 +804,7 @@ can be used before calling exec(), because modal widgets call
exec() to start a local event loop.
<p> To make your application perform idle processing, i.e. executing a
special function whenever there are no pending events, use a
<ahref="ntqtimer.html">TQTimer</a> with 0 timeout. More advanced idle processing schemes can
<ahref="tqtimer.html">TQTimer</a> with 0 timeout. More advanced idle processing schemes can
be achieved using <ahref="#processEvents">processEvents</a>().
<p><p>See also <ahref="#quit">quit</a>(), <ahref="#exit">exit</a>(), <ahref="#processEvents">processEvents</a>(), and <ahref="#setMainWidget">setMainWidget</a>().
@ -1086,7 +1086,7 @@ Processes pending events, for 3 seconds or until there are no more
events to process, whichever is shorter.
<p> You can call this function occasionally when your program is busy
performing a long operation (e.g. copying a file).
<p><p>See also <ahref="#exec">exec</a>(), <ahref="ntqtimer.html">TQTimer</a>, and <ahref="ntqeventloop.html#processEvents">TQEventLoop::processEvents</a>().
<p><p>See also <ahref="#exec">exec</a>(), <ahref="tqtimer.html">TQTimer</a>, and <ahref="ntqeventloop.html#processEvents">TQEventLoop::processEvents</a>().
<p>Examples: <ahref="fileiconview-example.html#x808">fileiconview/qfileiconview.cpp</a> and <ahref="ftpclient-example.html#x778">network/ftpclient/main.cpp</a>.
@ -1096,7 +1096,7 @@ This is an overloaded member function, provided for convenience. It behaves esse
there are no more events to process, whichever is shorter.
<p> You can call this function occasionally when you program is busy
doing a long operation (e.g. copying a file).
<p><p>See also <ahref="#exec">exec</a>(), <ahref="ntqtimer.html">TQTimer</a>, and <ahref="ntqeventloop.html#processEvents">TQEventLoop::processEvents</a>().
<p><p>See also <ahref="#exec">exec</a>(), <ahref="tqtimer.html">TQTimer</a>, and <ahref="ntqeventloop.html#processEvents">TQEventLoop::processEvents</a>().
@ -163,7 +163,7 @@ can be used before calling exec(), because modal widgets call
exec() to start a local event loop.
<p> To make your application perform idle processing, i.e. executing a
special function whenever there are no pending events, use a
<ahref="ntqtimer.html">TQTimer</a> with 0 timeout. More advanced idle processing schemes can
<ahref="tqtimer.html">TQTimer</a> with 0 timeout. More advanced idle processing schemes can
be achieved using <ahref="#processEvents">processEvents</a>().
<p><p>See also <ahref="ntqapplication.html#quit">TQApplication::quit</a>(), <ahref="#exit">exit</a>(), and <ahref="#processEvents">processEvents</a>().
<p> A modeless progress dialog is suitable for operations that take
place in the background, where the user is able to interact with the
application. Such operations are typically based on <ahref="ntqtimer.html">TQTimer</a> (or
application. Such operations are typically based on <ahref="tqtimer.html">TQTimer</a> (or
<ahref="tqobject.html#timerEvent">TQObject::timerEvent</a>()), <ahref="ntqsocketnotifier.html">TQSocketNotifier</a>, or <ahref="ntqurloperator.html">TQUrlOperator</a>; or performed
in a separate thread. A <ahref="ntqprogressbar.html">TQProgressBar</a> in the status bar of your main window
is often an alternative to a modeless progress dialog.
@ -96,7 +96,7 @@ after having emitting the first activated() signal (and no "would
block" error has occurred) is undefined. Depending on the
operating system, it may fire on every pass of the event loop or
not at all.
<p> If you need a time-out for your sockets you can use either <ahref="tqobject.html#startTimer">timer events</a> or the <ahref="ntqtimer.html">TQTimer</a> class.
<p> If you need a time-out for your sockets you can use either <ahref="tqobject.html#startTimer">timer events</a> or the <ahref="tqtimer.html">TQTimer</a> class.
<p> Socket action is detected in the <ahref="ntqapplication.html#exec">main
event loop</a> of TQt. The X11 version of TQt has a single UNIX
select() call that incorporates all socket notifiers and the X
Constructs a TQUrlInfo object by specifying all the URL's
information.
@ -140,7 +140,7 @@ information.
passed is the <em>lastModified</em> date/time and the <em>lastRead</em>
date/time. Flags are also passed, specifically, <em>isDir</em>, <em>isFile</em>, <em>isSymLink</em>, <em>isWritable</em>, <em>isReadable</em> and <em>isExecutable</em>.
<li><ahref="qcolorgroup.html#TQColorGroup">TQColorGroup::TQColorGroup</a>( const <ahref="ntqcolor.html">TQColor</a>& foreground, const TQColor & background, const TQColor & light, const TQColor & dark, const TQColor & mid, const TQColor & text, const TQColor & base )
@ -430,18 +430,18 @@ names are no longer avaialable.
<em>radio</em> button (<ahref="ntqradiobutton.html">TQRadioButton</a>). In TQt 3.0, it returns the selected <em>toggle</em> button (<ahref="ntqbutton.html#toggleButton-prop">TQButton::toggleButton</a>), a more general concept.
This might affect programs that use TQButtonGroups that contain a
mixture of radio buttons and non-radio (e.g. <ahref="ntqcheckbox.html">TQCheckBox</a>) toggle buttons.
<p><h2><ahref="qdate.html">TQDate</a>
<p><h2><ahref="tqdate.html">TQDate</a>
</h2>
<aname="8"></a><p> Two TQDate member functions that were virtual in TQt 2.0 are not virtual
in TQt 3.0. This is only relevant if you subclassed TQDate and
reimplemented these functions:
<p><ul>
<li><ahref="tqstring.html">TQString</a><ahref="qdate.html#monthName">TQDate::monthName</a>( int month ) const
<li> TQString <ahref="qdate.html#dayName">TQDate::dayName</a>( int weekday ) const
<li><ahref="tqstring.html">TQString</a><ahref="tqdate.html#monthName">TQDate::monthName</a>( int month ) const
<li> TQString <ahref="tqdate.html#dayName">TQDate::dayName</a>( int weekday ) const
</ul>
<p> In addition to no longer being virtual, TQDate::monthName() and
TQDate::dayName() have been renamed <ahref="qdate.html#shortMonthName">TQDate::shortMonthName</a>() and
<ahref="qdate.html#shortDayName">TQDate::shortDayName</a>() and have been made static (as they should had
TQDate::dayName() have been renamed <ahref="tqdate.html#shortMonthName">TQDate::shortMonthName</a>() and
<ahref="tqdate.html#shortDayName">TQDate::shortDayName</a>() and have been made static (as they should had
been in the first place). The old names are still provided for source
@ -772,72 +772,72 @@ table. The default value is "True".
</doc>
</property>
<property>
<name>QDateEdit::autoAdvance</name>
<doc href="qdateedit.html#autoAdvance-prop">
<name>TQDateEdit::autoAdvance</name>
<doc href="tqdateedit.html#autoAdvance-prop">
<p>This property holds whether the editor automatically advances to the next section.
<p>If autoAdvance is TRUE, the editor will automatically advance
focus to the next date section if a user has completed a section.
The default is FALSE.
<p>Set this property's value with <a href="qdateedit.html#setAutoAdvance">setAutoAdvance</a>() and get this property's value with <a href="qdateedit.html#autoAdvance">autoAdvance</a>().
<p>Set this property's value with <a href="tqdateedit.html#setAutoAdvance">setAutoAdvance</a>() and get this property's value with <a href="tqdateedit.html#autoAdvance">autoAdvance</a>().
</doc>
</property>
<property>
<name>QDateEdit::date</name>
<doc href="qdateedit.html#date-prop">
<name>TQDateEdit::date</name>
<doc href="tqdateedit.html#date-prop">
<p>This property holds the editor's date value.
<p>If the date property is not valid, the editor displays all zeroes
and <a href="qdateedit.html#date">QDateEdit::date</a>() will return an invalid date. It is strongly
and <a href="tqdateedit.html#date">TQDateEdit::date</a>() will return an invalid date. It is strongly
recommended that the editor is given a default date value (e.g.
currentDate()). That way, attempts to set the date property to an
invalid date will fail.
<p> When changing the date property, if the date is less than
<a href="qdateedit.html#minValue">minValue</a>(), or is greater than <a href="qdateedit.html#maxValue">maxValue</a>(), nothing happens.
<a href="tqdateedit.html#minValue">minValue</a>(), or is greater than <a href="tqdateedit.html#maxValue">maxValue</a>(), nothing happens.
<p>Set this property's value with <a href="qdateedit.html#setDate">setDate</a>() and get this property's value with <a href="qdateedit.html#date">date</a>().
<p>Set this property's value with <a href="tqdateedit.html#setDate">setDate</a>() and get this property's value with <a href="tqdateedit.html#date">date</a>().
</doc>
</property>
<property>
<name>QDateEdit::maxValue</name>
<doc href="qdateedit.html#maxValue-prop">
<name>TQDateEdit::maxValue</name>
<doc href="tqdateedit.html#maxValue-prop">
<p>This property holds the editor's maximum value.
<p>Setting the maximum date value for the editor is equivalent to
calling <a href="qdateedit.html#setRange">QDateEdit::setRange</a>( <a href="qdateedit.html#minValue">minValue</a>(), <em>d</em> ), where <em>d</em> is the
calling <a href="tqdateedit.html#setRange">TQDateEdit::setRange</a>( <a href="tqdateedit.html#minValue">minValue</a>(), <em>d</em> ), where <em>d</em> is the
maximum date. The default maximum date is 8000-12-31.
<p> <p>See also <a href="qdateedit.html#minValue-prop">minValue</a> and <a href="qdateedit.html#setRange">setRange</a>().
<p> <p>See also <a href="tqdateedit.html#minValue-prop">minValue</a> and <a href="tqdateedit.html#setRange">setRange</a>().
<p>Set this property's value with <a href="qdateedit.html#setMaxValue">setMaxValue</a>() and get this property's value with <a href="qdateedit.html#maxValue">maxValue</a>().
<p>Set this property's value with <a href="tqdateedit.html#setMaxValue">setMaxValue</a>() and get this property's value with <a href="tqdateedit.html#maxValue">maxValue</a>().
</doc>
</property>
<property>
<name>QDateEdit::minValue</name>
<doc href="qdateedit.html#minValue-prop">
<name>TQDateEdit::minValue</name>
<doc href="tqdateedit.html#minValue-prop">
<p>This property holds the editor's minimum value.
<p>Setting the minimum date value is equivalent to calling
<a href="qdateedit.html#setRange">QDateEdit::setRange</a>( <em>d</em>, <a href="qdateedit.html#maxValue">maxValue</a>() ), where <em>d</em> is the minimum
<a href="tqdateedit.html#setRange">TQDateEdit::setRange</a>( <em>d</em>, <a href="tqdateedit.html#maxValue">maxValue</a>() ), where <em>d</em> is the minimum
date. The default minimum date is 1752-09-14.
<p> <p>See also <a href="qdateedit.html#maxValue-prop">maxValue</a> and <a href="qdateedit.html#setRange">setRange</a>().
<p> <p>See also <a href="tqdateedit.html#maxValue-prop">maxValue</a> and <a href="tqdateedit.html#setRange">setRange</a>().
<p>Set this property's value with <a href="qdateedit.html#setMinValue">setMinValue</a>() and get this property's value with <a href="qdateedit.html#minValue">minValue</a>().
<p>Set this property's value with <a href="tqdateedit.html#setMinValue">setMinValue</a>() and get this property's value with <a href="tqdateedit.html#minValue">minValue</a>().
</doc>
</property>
<property>
<name>QDateEdit::order</name>
<doc href="qdateedit.html#order-prop">
<name>TQDateEdit::order</name>
<doc href="tqdateedit.html#order-prop">
<p>This property holds the order in which the year, month and day appear.
<p>The default order is locale dependent.
<p> <p>See also <a href="qdateedit.html#Order-enum">Order</a>.
<p> <p>See also <a href="tqdateedit.html#Order-enum">Order</a>.
<p>Set this property's value with <a href="qdateedit.html#setOrder">setOrder</a>() and get this property's value with <a href="qdateedit.html#order">order</a>().
<p>Set this property's value with <a href="tqdateedit.html#setOrder">setOrder</a>() and get this property's value with <a href="tqdateedit.html#order">order</a>().
</doc>
</property>
<property>
<name>QDateTimeEdit::dateTime</name>
<doc href="ntqdatetimeedit.html#dateTime-prop">
<name>TQDateTimeEdit::dateTime</name>
<doc href="tqdatetimeedit.html#dateTime-prop">
<p>This property holds the editor's datetime value.
<p>The datetime edit's datetime which may be an invalid datetime.
<p>Set this property's value with <a href="ntqdatetimeedit.html#setDateTime">setDateTime</a>() and get this property's value with <a href="ntqdatetimeedit.html#dateTime">dateTime</a>().
<p>Set this property's value with <a href="tqdatetimeedit.html#setDateTime">setDateTime</a>() and get this property's value with <a href="tqdatetimeedit.html#dateTime">dateTime</a>().
</doc>
</property>
<property>
@ -4048,58 +4048,58 @@ text edit at which text should be wrapped.
</doc>
</property>
<property>
<name>QTimeEdit::autoAdvance</name>
<doc href="qtimeedit.html#autoAdvance-prop">
<name>TQTimeEdit::autoAdvance</name>
<doc href="tqtimeedit.html#autoAdvance-prop">
<p>This property holds whether the editor automatically advances to the next section.
<p>If autoAdvance is TRUE, the editor will automatically advance
focus to the next time section if a user has completed a section.
The default is FALSE.
<p>Set this property's value with <a href="qtimeedit.html#setAutoAdvance">setAutoAdvance</a>() and get this property's value with <a href="qtimeedit.html#autoAdvance">autoAdvance</a>().
<p>Set this property's value with <a href="tqtimeedit.html#setAutoAdvance">setAutoAdvance</a>() and get this property's value with <a href="tqtimeedit.html#autoAdvance">autoAdvance</a>().
</doc>
</property>
<property>
<name>QTimeEdit::display</name>
<doc href="qtimeedit.html#display-prop">
<name>TQTimeEdit::display</name>
<doc href="tqtimeedit.html#display-prop">
<p>This property holds the sections that are displayed in the time edit.
<p>The value can be any combination of the values in the Display enum.
By default, the widget displays hours, minutes and seconds.
<p>Set this property's value with <a href="qtimeedit.html#setDisplay">setDisplay</a>() and get this property's value with <a href="qtimeedit.html#display">display</a>().
<p>Set this property's value with <a href="tqtimeedit.html#setDisplay">setDisplay</a>() and get this property's value with <a href="tqtimeedit.html#display">display</a>().
</doc>
</property>
<property>
<name>QTimeEdit::maxValue</name>
<doc href="qtimeedit.html#maxValue-prop">
<name>TQTimeEdit::maxValue</name>
<doc href="tqtimeedit.html#maxValue-prop">
<p>This property holds the maximum time value.
<p>Setting the maximum time value is equivalent to calling
<a href="qtimeedit.html#setRange">QTimeEdit::setRange</a>( <a href="qtimeedit.html#minValue">minValue</a>(), <em>t</em> ), where <em>t</em> is the maximum
<a href="tqtimeedit.html#setRange">TQTimeEdit::setRange</a>( <a href="tqtimeedit.html#minValue">minValue</a>(), <em>t</em> ), where <em>t</em> is the maximum
time. The default maximum time is 23:59:59.
<p> <p>See also <a href="qtimeedit.html#minValue-prop">minValue</a> and <a href="qtimeedit.html#setRange">setRange</a>().
<p> <p>See also <a href="tqtimeedit.html#minValue-prop">minValue</a> and <a href="tqtimeedit.html#setRange">setRange</a>().
<p>Set this property's value with <a href="qtimeedit.html#setMaxValue">setMaxValue</a>() and get this property's value with <a href="qtimeedit.html#maxValue">maxValue</a>().
<p>Set this property's value with <a href="tqtimeedit.html#setMaxValue">setMaxValue</a>() and get this property's value with <a href="tqtimeedit.html#maxValue">maxValue</a>().
</doc>
</property>
<property>
<name>QTimeEdit::minValue</name>
<doc href="qtimeedit.html#minValue-prop">
<name>TQTimeEdit::minValue</name>
<doc href="tqtimeedit.html#minValue-prop">
<p>This property holds the minimum time value.
<p>Setting the minimum time value is equivalent to calling
<a href="qtimeedit.html#setRange">QTimeEdit::setRange</a>( <em>t</em>, <a href="qtimeedit.html#maxValue">maxValue</a>() ), where <em>t</em> is the minimum
<a href="tqtimeedit.html#setRange">TQTimeEdit::setRange</a>( <em>t</em>, <a href="tqtimeedit.html#maxValue">maxValue</a>() ), where <em>t</em> is the minimum
time. The default minimum time is 00:00:00.
<p> <p>See also <a href="qtimeedit.html#maxValue-prop">maxValue</a> and <a href="qtimeedit.html#setRange">setRange</a>().
<p> <p>See also <a href="tqtimeedit.html#maxValue-prop">maxValue</a> and <a href="tqtimeedit.html#setRange">setRange</a>().
<p>Set this property's value with <a href="qtimeedit.html#setMinValue">setMinValue</a>() and get this property's value with <a href="qtimeedit.html#minValue">minValue</a>().
<p>Set this property's value with <a href="tqtimeedit.html#setMinValue">setMinValue</a>() and get this property's value with <a href="tqtimeedit.html#minValue">minValue</a>().
</doc>
</property>
<property>
<name>QTimeEdit::time</name>
<doc href="qtimeedit.html#time-prop">
<name>TQTimeEdit::time</name>
<doc href="tqtimeedit.html#time-prop">
<p>This property holds the editor's time value.
<p>When changing the time property, if the time is less than
<a href="qtimeedit.html#minValue">minValue</a>(), or is greater than <a href="qtimeedit.html#maxValue">maxValue</a>(), nothing happens.
<a href="tqtimeedit.html#minValue">minValue</a>(), or is greater than <a href="tqtimeedit.html#maxValue">maxValue</a>(), nothing happens.
<p>Set this property's value with <a href="qtimeedit.html#setTime">setTime</a>() and get this property's value with <a href="qtimeedit.html#time">time</a>().
<p>Set this property's value with <a href="tqtimeedit.html#setTime">setTime</a>() and get this property's value with <a href="tqtimeedit.html#time">time</a>().
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQDate</h1>
<p>This is the complete list of member functions for
<ahref="qdate.html">TQDate</a>, including inherited members.
<p><li><em>None</em> of the TQObject based classes included in the TQt library are
<em>reentrant</em>. This includes all widgets (e.g. <ahref="tqwidget.html">TQWidget</a> and
subclasses), OS kernel classes (e.g. <ahref="ntqprocess.html">TQProcess</a>, <ahref="ntqaccel.html">TQAccel</a>, <ahref="ntqtimer.html">TQTimer</a>), and
subclasses), OS kernel classes (e.g. <ahref="ntqprocess.html">TQProcess</a>, <ahref="ntqaccel.html">TQAccel</a>, <ahref="tqtimer.html">TQTimer</a>), and
all networking classes (e.g. <ahref="ntqsocket.html">TQSocket</a>, <ahref="ntqdns.html">TQDns</a>).
<p><li> TQObject and all of its subclasses are <em>not</em><em>thread-safe</em>. This
includes the entire event delivery system. It is important to
@ -254,7 +254,7 @@ are examples of simple GUI operations:
<p> Any operations that generate events must not be called by any thread
other than the GUI thread. Examples of such operations are:
<p><ul>
<li> creating a <ahref="tqwidget.html">TQWidget</a>, <ahref="ntqtimer.html">TQTimer</a>, <ahref="ntqsocketnotifier.html">TQSocketNotifier</a>, <ahref="ntqsocket.html">TQSocket</a> or other network class.
<li> creating a <ahref="tqwidget.html">TQWidget</a>, <ahref="tqtimer.html">TQTimer</a>, <ahref="ntqsocketnotifier.html">TQSocketNotifier</a>, <ahref="ntqsocket.html">TQSocket</a> or other network class.
<li> moving, resizing, showing or hiding a TQWidget.
<trbgcolor=#f0f0f0><td><b><ahref="ntqdatetime.html">TQDateTime</a></b><td>Date and time functions
<trbgcolor=#f0f0f0><td><b><ahref="ntqdatetimeedit.html">TQDateTimeEdit</a></b><td>Combines a TQDateEdit and TQTimeEdit widget into a single widget for editing datetimes
<trbgcolor=#f0f0f0><td><b><ahref="qtime.html">TQTime</a></b><td>Clock time functions
<trbgcolor=#f0f0f0><td><b><ahref="tqdatetime.html">TQDateTime</a></b><td>Date and time functions
<trbgcolor=#f0f0f0><td><b><ahref="tqdatetimeedit.html">TQDateTimeEdit</a></b><td>Combines a TQDateEdit and TQTimeEdit widget into a single widget for editing datetimes
<trbgcolor=#f0f0f0><td><b><ahref="tqtime.html">TQTime</a></b><td>Clock time functions
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQDate</h1>
<p>This is the complete list of member functions for
<ahref="tqdate.html">TQDate</a>, including inherited members.
@ -122,7 +122,7 @@ September 1752 (hence this is the earliest valid TQDate), and
subsequently by most other Western countries, until 1923.
<p> The end of time is reached around the year 8000, by which time we
expect TQt to be obsolete.
<p><p>See also <ahref="qtime.html">TQTime</a>, <ahref="ntqdatetime.html">TQDateTime</a>, <ahref="qdateedit.html">TQDateEdit</a>, <ahref="ntqdatetimeedit.html">TQDateTimeEdit</a>, and <ahref="time.html">Time and Date</a>.
<p><p>See also <ahref="tqtime.html">TQTime</a>, <ahref="tqdatetime.html">TQDateTime</a>, <ahref="tqdateedit.html">TQDateEdit</a>, <ahref="tqdatetimeedit.html">TQDateTimeEdit</a>, and <ahref="time.html">Time and Date</a>.
<hr><h2>Member Function Documentation</h2>
<h3class=fn><aname="TQDate"></a>TQDate::TQDate ()
@ -140,36 +140,36 @@ Constructs a date with year <em>y</em>, month <em>m</em> and day <em>d</em>.
Returns the current date, as reported by the system clock, for the
TimeSpec <em>ts</em>. The default TimeSpec is LocalTime.
<p><p>See also <ahref="qtime.html#currentTime">TQTime::currentTime</a>(), <ahref="ntqdatetime.html#currentDateTime">TQDateTime::currentDateTime</a>(), and <ahref="ntqt.html#TimeSpec-enum">TQt::TimeSpec</a>.
<p><p>See also <ahref="tqtime.html#currentTime">TQTime::currentTime</a>(), <ahref="tqdatetime.html#currentDateTime">TQDateTime::currentDateTime</a>(), and <ahref="ntqt.html#TimeSpec-enum">TQt::TimeSpec</a>.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> Returns the current date, as reported by the system clock.
<p><p>See also <ahref="qtime.html#currentTime">TQTime::currentTime</a>() and <ahref="ntqdatetime.html#currentDateTime">TQDateTime::currentDateTime</a>().
<p><p>See also <ahref="tqtime.html#currentTime">TQTime::currentTime</a>() and <ahref="tqdatetime.html#currentDateTime">TQDateTime::currentDateTime</a>().
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQDateEdit</h1>
<p>This is the complete list of member functions for
<ahref="qdateedit.html">TQDateEdit</a>, including inherited members.
<ahref="tqdateedit.html">TQDateEdit</a>, including inherited members.
@ -112,7 +112,7 @@ advance property is TRUE (as we've set it here) when the user
completes a section of the date, e.g. enters two digits for the
month, they are automatically taken to the next section.
<p> The maximum and minimum values for a date value in the date editor
default to the maximum and minimum values for a <ahref="qdate.html">TQDate</a>. You can
default to the maximum and minimum values for a <ahref="tqdate.html">TQDate</a>. You can
change this by calling <ahref="#setMinValue">setMinValue</a>(), <ahref="#setMaxValue">setMaxValue</a>() or <ahref="#setRange">setRange</a>().
<p> Terminology: A TQDateEdit widget comprises three 'sections', one
each for the year, month and day. You can change the separator
@ -120,7 +120,7 @@ character using TQDateTimeEditor::setSeparator(), by default the
separator will be taken from the systems settings. If that is
not possible, it defaults to "-".
<p><center><imgsrc="datetimewidgets.png"alt="Date Time Widgets"></center>
<p><p>See also <ahref="qdate.html">TQDate</a>, <ahref="qtimeedit.html">TQTimeEdit</a>, <ahref="ntqdatetimeedit.html">TQDateTimeEdit</a>, <ahref="advanced.html">Advanced Widgets</a>, and <ahref="time.html">Time and Date</a>.
<p><p>See also <ahref="tqdate.html">TQDate</a>, <ahref="tqtimeedit.html">TQTimeEdit</a>, <ahref="tqdatetimeedit.html">TQDateTimeEdit</a>, <ahref="advanced.html">Advanced Widgets</a>, and <ahref="time.html">Time and Date</a>.
<p> This signal is emitted whenever the editor's value changes. The <em>date</em> parameter is the new value.
@ -250,7 +250,7 @@ focus to the next date section if a user has completed a section.
The default is FALSE.
<p>Set this property's value with <ahref="#setAutoAdvance">setAutoAdvance</a>() and get this property's value with <ahref="#autoAdvance">autoAdvance</a>().
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQDateTime</h1>
<p>This is the complete list of member functions for
<ahref="ntqdatetime.html">TQDateTime</a>, including inherited members.
<ahref="tqdatetime.html">TQDateTime</a>, including inherited members.
@ -84,7 +84,7 @@ The TQDateTime class provides date and time functions.
<p>
<p> A TQDateTime object contains a calendar date and a clock time (a
"datetime"). It is a combination of the <ahref="qdate.html">TQDate</a> and <ahref="qtime.html">TQTime</a> classes.
"datetime"). It is a combination of the <ahref="tqdate.html">TQDate</a> and <ahref="tqtime.html">TQTime</a> classes.
It can read the current datetime from the system clock. It
provides functions for comparing datetimes and for manipulating a
datetime by adding a number of seconds, days, months or years.
@ -109,8 +109,8 @@ use <a href="#addMonths">addMonths</a>() and <a href="#addYears">addYears</a>().
number of days between two datetimes, and <ahref="#secsTo">secsTo</a>() returns the
number of seconds between two datetimes.
<p> The range of a datetime object is constrained to the ranges of the
<ahref="qdate.html">TQDate</a> and <ahref="qtime.html">TQTime</a> objects which it embodies.
<p><p>See also <ahref="qdate.html">TQDate</a>, <ahref="qtime.html">TQTime</a>, <ahref="ntqdatetimeedit.html">TQDateTimeEdit</a>, and <ahref="time.html">Time and Date</a>.
<ahref="tqdate.html">TQDate</a> and <ahref="tqtime.html">TQTime</a> objects which it embodies.
<p><p>See also <ahref="tqdate.html">TQDate</a>, <ahref="tqtime.html">TQTime</a>, <ahref="tqdatetimeedit.html">TQDateTimeEdit</a>, and <ahref="time.html">Time and Date</a>.
Returns a TQDateTime object containing a datetime <em>ndays</em> days
later than the datetime of this object (or earlier if <em>ndays</em> is
negative).
<p><p>See also <ahref="#daysTo">daysTo</a>(), <ahref="#addMonths">addMonths</a>(), <ahref="#addYears">addYears</a>(), and <ahref="#addSecs">addSecs</a>().
Returns a TQDateTime object containing a datetime <em>nsecs</em> seconds
later than the datetime of this object (or earlier if <em>nsecs</em> is
@ -151,39 +151,39 @@ negative).
<p><p>See also <ahref="#secsTo">secsTo</a>(), <ahref="#addDays">addDays</a>(), <ahref="#addMonths">addMonths</a>(), and <ahref="#addYears">addYears</a>().
Returns a TQDateTime object containing a datetime <em>nyears</em> years
later than the datetime of this object (or earlier if <em>nyears</em> is
negative).
<p><p>See also <ahref="#daysTo">daysTo</a>(), <ahref="#addDays">addDays</a>(), <ahref="#addMonths">addMonths</a>(), and <ahref="#addSecs">addSecs</a>().
Returns the current datetime, as reported by the system clock, for the
TimeSpec <em>ts</em>. The default TimeSpec is LocalTime.
<p><p>See also <ahref="qdate.html#currentDate">TQDate::currentDate</a>(), <ahref="qtime.html#currentTime">TQTime::currentTime</a>(), and <ahref="ntqt.html#TimeSpec-enum">TQt::TimeSpec</a>.
<p><p>See also <ahref="tqdate.html#currentDate">TQDate::currentDate</a>(), <ahref="tqtime.html#currentTime">TQTime::currentTime</a>(), and <ahref="ntqt.html#TimeSpec-enum">TQt::TimeSpec</a>.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQDateTimeEdit</h1>
<p>This is the complete list of member functions for
<ahref="ntqdatetimeedit.html">TQDateTimeEdit</a>, including inherited members.
<ahref="tqdatetimeedit.html">TQDateTimeEdit</a>, including inherited members.
Here we've created a new TQDateTimeEdit set to the current date and
time, and set the date to have a minimum date of now and a maximum
date of a week from now.
<p> Terminology: A <ahref="qdateedit.html">TQDateEdit</a> widget consists of three 'sections', one
each for the year, month and day. Similarly a <ahref="qtimeedit.html">TQTimeEdit</a> consists
<p> Terminology: A <ahref="tqdateedit.html">TQDateEdit</a> widget consists of three 'sections', one
each for the year, month and day. Similarly a <ahref="tqtimeedit.html">TQTimeEdit</a> consists
of three sections, one each for the hour, minute and second. The
character that separates each date section is specified with
setDateSeparator(); similarly setTimeSeparator() is used for the
time sections.
<p><center><imgsrc="datetimewidgets.png"alt="Date Time Widgets"></center>
<p><p>See also <ahref="qdateedit.html">TQDateEdit</a>, <ahref="qtimeedit.html">TQTimeEdit</a>, <ahref="advanced.html">Advanced Widgets</a>, and <ahref="time.html">Time and Date</a>.
<p><p>See also <ahref="tqdateedit.html">TQDateEdit</a>, <ahref="tqtimeedit.html">TQTimeEdit</a>, <ahref="advanced.html">Advanced Widgets</a>, and <ahref="time.html">Time and Date</a>.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQDateTimeEditBase</h1>
<p>This is the complete list of member functions for
<ahref="qdatetimeeditbase.html">TQDateTimeEditBase</a>, including inherited members.
<ahref="tqdatetimeeditbase.html">TQDateTimeEditBase</a>, including inherited members.
<ahref="ntqapplication.html#qDebug">tqDebug</a>( "timer event, id %d", e-><ahref="qtimerevent.html#timerId">timerId</a>() );
<ahref="ntqapplication.html#qDebug">tqDebug</a>( "timer event, id %d", e-><ahref="tqtimerevent.html#timerId">timerId</a>() );
}
</pre>
<p> Note that <ahref="ntqtimer.html">TQTimer</a>'s accuracy depends on the underlying operating
<p> Note that <ahref="tqtimer.html">TQTimer</a>'s accuracy depends on the underlying operating
system and hardware. Most platforms support an accuracy of 20 ms;
some provide more. If TQt is unable to deliver the requested
number of timer clicks, it will silently discard some.
@ -869,11 +869,11 @@ number of timer clicks, it will silently discard some.
one-shot timers and timer signals instead of events.
<p><p>See also <ahref="#timerEvent">timerEvent</a>(), <ahref="#killTimer">killTimer</a>(), <ahref="#killTimers">killTimers</a>(), <ahref="ntqeventloop.html#awake">TQEventLoop::awake</a>(), and <ahref="ntqeventloop.html#aboutToBlock">TQEventLoop::aboutToBlock</a>().
This event handler can be reimplemented in a subclass to receive
timer events for the object.
<p><ahref="ntqtimer.html">TQTimer</a> provides a higher-level interface to the timer
<p><ahref="tqtimer.html">TQTimer</a> provides a higher-level interface to the timer
functionality, and also more general information about timers.
<p><p>See also <ahref="#startTimer">startTimer</a>(), <ahref="#killTimer">killTimer</a>(), <ahref="#killTimers">killTimers</a>(), and <ahref="#event">event</a>().
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQTime</h1>
<p>This is the complete list of member functions for
<ahref="qtime.html">TQTime</a>, including inherited members.
<ahref="tqtime.html">TQTime</a>, including inherited members.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQTimeEdit</h1>
<p>This is the complete list of member functions for
<ahref="qtimeedit.html">TQTimeEdit</a>, including inherited members.
<ahref="tqtimeedit.html">TQTimeEdit</a>, including inherited members.
Here we've created a TQTimeEdit widget set to the current time.
We've also set the minimum value to the current time and the
maximum time to one hour from now.
<p> The maximum and minimum values for a time value in the time editor
default to the maximum and minimum values for a <ahref="qtime.html">TQTime</a>. You can
default to the maximum and minimum values for a <ahref="tqtime.html">TQTime</a>. You can
change this by calling <ahref="#setMinValue">setMinValue</a>(), <ahref="#setMaxValue">setMaxValue</a>() or <ahref="#setRange">setRange</a>().
<p> Terminology: A TQTimeWidget consists of three sections, one each
for the hour, minute and second. You can change the separator
character using <ahref="#setSeparator">setSeparator</a>(), by default the separator is read
from the system's settings.
<p><center><imgsrc="datetimewidgets.png"alt="Date Time Widgets"></center>
<p><p>See also <ahref="qtime.html">TQTime</a>, <ahref="qdateedit.html">TQDateEdit</a>, <ahref="ntqdatetimeedit.html">TQDateTimeEdit</a>, <ahref="advanced.html">Advanced Widgets</a>, and <ahref="time.html">Time and Date</a>.
<p><p>See also <ahref="tqtime.html">TQTime</a>, <ahref="tqdateedit.html">TQDateEdit</a>, <ahref="tqdatetimeedit.html">TQDateTimeEdit</a>, <ahref="advanced.html">Advanced Widgets</a>, and <ahref="time.html">Time and Date</a>.
<p> This signal is emitted whenever the editor's value changes. The <em>time</em> parameter is the new value.
@ -215,13 +215,13 @@ focus to the next time section if a user has completed a section.
The default is FALSE.
<p>Set this property's value with <ahref="#setAutoAdvance">setAutoAdvance</a>() and get this property's value with <ahref="#autoAdvance">autoAdvance</a>().
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQTimer</h1>
<p>This is the complete list of member functions for
<ahref="ntqtimer.html">TQTimer</a>, including inherited members.
<ahref="tqtimer.html">TQTimer</a>, including inherited members.
<tdalign="right"valign="center"><imgsrc="logo32.png"align="right"width="64"height="32"border="0"></td></tr></table><h1align=center>Complete Member List for TQTimerEvent</h1>
<p>This is the complete list of member functions for
<ahref="qtimerevent.html">TQTimerEvent</a>, including inherited members.
<ahref="tqtimerevent.html">TQTimerEvent</a>, including inherited members.
<p> Timer events are sent at regular intervals to objects that have
started one or more timers. Each timer has a unique identifier. A
timer is started with <ahref="tqobject.html#startTimer">TQObject::startTimer</a>().
<p> The <ahref="ntqtimer.html">TQTimer</a> class provides a high-level programming interface that
<p> The <ahref="tqtimer.html">TQTimer</a> class provides a high-level programming interface that
uses signals instead of events. It also provides one-shot timers.
<p> The event handler <ahref="tqobject.html#timerEvent">TQObject::timerEvent</a>() receives timer events.
<p><p>See also <ahref="ntqtimer.html">TQTimer</a>, <ahref="tqobject.html#timerEvent">TQObject::timerEvent</a>(), <ahref="tqobject.html#startTimer">TQObject::startTimer</a>(), <ahref="tqobject.html#killTimer">TQObject::killTimer</a>(), <ahref="tqobject.html#killTimers">TQObject::killTimers</a>(), and <ahref="events.html">Event Classes</a>.
<p><p>See also <ahref="tqtimer.html">TQTimer</a>, <ahref="tqobject.html#timerEvent">TQObject::timerEvent</a>(), <ahref="tqobject.html#startTimer">TQObject::startTimer</a>(), <ahref="tqobject.html#killTimer">TQObject::killTimer</a>(), <ahref="tqobject.html#killTimers">TQObject::killTimers</a>(), and <ahref="events.html">Event Classes</a>.
<p> We initialize our new private variables and connect the <ahref="ntqtimer.html#timeout">TQTimer::timeout</a>() signal to our moveShot() slot. We'll move the
<p> We initialize our new private variables and connect the <ahref="tqtimer.html#timeout">TQTimer::timeout</a>() signal to our moveShot() slot. We'll move the
shot every time the timer times out.
<p><pre> void CannonField::shoot()
{
<aname="x2376"></a> if ( autoShootTimer-><ahref="ntqtimer.html#isActive">isActive</a>() )
<aname="x2376"></a> if ( autoShootTimer-><ahref="tqtimer.html#isActive">isActive</a>() )
<li><ahref="tqtime.html">TQTime</a> - provides time management (within a date)
<li><ahref="tqtimer.html">TQTimer</a> - provides delayed or regular execution of code.
</ul>
<p> All of these classes' external APIs are Year 2000 Compliant: <ahref="qdate.html">TQDate</a> and
<ahref="ntqdatetime.html">TQDateTime</a> offer only four-digit years as output, <ahref="qtime.html">TQTime</a> and <ahref="ntqtimer.html">TQTimer</a> do
<p> All of these classes' external APIs are Year 2000 Compliant: <ahref="tqdate.html">TQDate</a> and
<ahref="tqdatetime.html">TQDateTime</a> offer only four-digit years as output, <ahref="tqtime.html">TQTime</a> and <ahref="tqtimer.html">TQTimer</a> do
@ -875,7 +875,7 @@ It is necessary to call this function to start event handling. The main event lo
.PP
Generally speaking, no user interaction can take place before calling exec(). As a special case, modal widgets like QMessageBox can be used before calling exec(), because modal widgets call exec() to start a local event loop.
.PP
To make your application perform idle processing, i.e. executing a special function whenever there are no pending events, use a QTimer with 0 timeout. More advanced idle processing schemes can be achieved using processEvents().
To make your application perform idle processing, i.e. executing a special function whenever there are no pending events, use a TQTimer with 0 timeout. More advanced idle processing schemes can be achieved using processEvents().
.PP
See also quit(), exit(), processEvents(), and setMainWidget().
.PP
@ -1084,7 +1084,7 @@ Processes pending events, for 3 seconds or until there are no more events to pro
.PP
You can call this function occasionally when your program is busy performing a long operation (e.g. copying a file).
.PP
See also exec(), QTimer, and QEventLoop::processEvents().
See also exec(), TQTimer, and QEventLoop::processEvents().
.PP
Examples:
.)l fileiconview/qfileiconview.cpp and network/ftpclient/main.cpp.
@ -1095,7 +1095,7 @@ Processes pending events for \fImaxtime\fR milliseconds or until there are no mo
.PP
You can call this function occasionally when you program is busy doing a long operation (e.g. copying a file).
.PP
See also exec(), QTimer, and QEventLoop::processEvents().
See also exec(), TQTimer, and QEventLoop::processEvents().
.SH "void QApplication::processOneEvent ()"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
@ -1105,7 +1105,7 @@ This function is useful for adapting TQt to situations where the event processin
.PP
Using this function in new applications may be an indication of design problems.
.PP
See also processEvents(), exec(), and QTimer.
See also processEvents(), exec(), and TQTimer.
.SH "void QApplication::quit ()\fC [slot]\fR"
Tells the application to exit with return code 0 (success). Equivalent to calling QApplication::exit( 0 ).
@ -199,7 +199,7 @@ Example (read binary data from a stream):
.br
.fi
.PP
Each item written to the stream is written in a predefined binary format that varies depending on the item's type. Supported TQt types include QBrush, TQColor, QDateTime, QFont, QPixmap, TQString, QVariant and many others. For the complete list of all TQt types supporting data streaming see the Format of the QDataStream operators.
Each item written to the stream is written in a predefined binary format that varies depending on the item's type. Supported TQt types include QBrush, TQColor, TQDateTime, QFont, QPixmap, TQString, QVariant and many others. For the complete list of all TQt types supporting data streaming see the Format of the QDataStream operators.
.PP
For integers it is best to always cast to a TQt integer type for writing, and to read back into the same TQt integer type. This ensures that you get integers of the size you want and insulates you from compiler and platform differences.
A QDate object contains a calendar date, i.e. year, month, and day numbers, in the modern Western (Gregorian) calendar. It can read the current date from the system clock. It provides functions for comparing dates and for manipulating dates, e.g. by adding a number of days or months or years.
A TQDate object contains a calendar date, i.e. year, month, and day numbers, in the modern Western (Gregorian) calendar. It can read the current date from the system clock. It provides functions for comparing dates and for manipulating dates, e.g. by adding a number of days or months or years.
.PP
A QDate object is typically created either by giving the year, month and day numbers explicitly, or by using the static function currentDate(), which creates a QDate object containing the system clock's date. An explicit date can also be set using setYMD(). The fromString() function returns a QDate given a string and a date format which is used to interpret the date within the string.
A TQDate object is typically created either by giving the year, month and day numbers explicitly, or by using the static function currentDate(), which creates a TQDate object containing the system clock's date. An explicit date can also be set using setYMD(). The fromString() function returns a TQDate given a string and a date format which is used to interpret the date within the string.
.PP
The year(), month(), and day() functions provide access to the year, month, and day numbers. Also, dayOfWeek() and dayOfYear() functions are provided. The same information is provided in textual format by the toString(), shortDayName(), longDayName(), shortMonthName() and longMonthName() functions.
.PP
QDate provides a full set of operators to compare two QDate objects where smaller means earlier and larger means later.
TQDate provides a full set of operators to compare two TQDate objects where smaller means earlier and larger means later.
.PP
You can increment (or decrement) a date by a given number of days using addDays(). Similarly you can use addMonths() and addYears(). The daysTo() function returns the number of days between two dates.
.PP
The daysInMonth() and daysInYear() functions return how many days there are in this date's month and year, respectively. The leapYear() function indicates whether this date is in a leap year.
.PP
Note that QDate should not be used for date calculations for dates prior to the introduction of the Gregorian calendar. This calendar was adopted by England from the 14<sup><small>th</small></sup> September 1752 (hence this is the earliest valid QDate), and subsequently by most other Western countries, until 1923.
Note that TQDate should not be used for date calculations for dates prior to the introduction of the Gregorian calendar. This calendar was adopted by England from the 14<sup><small>th</small></sup> September 1752 (hence this is the earliest valid TQDate), and subsequently by most other Western countries, until 1923.
.PP
The end of time is reached around the year 8000, by which time we expect TQt to be obsolete.
.PP
See also QTime, QDateTime, QDateEdit, QDateTimeEdit, and Time and Date.
See also TQTime, TQDateTime, TQDateEdit, TQDateTimeEdit, and Time and Date.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QDate::QDate ()"
.SH "TQDate::TQDate ()"
Constructs a null date. Null dates are invalid.
.PP
See also isNull() and isValid().
.SH "QDate::QDate ( int y, int m, int d )"
.SH "TQDate::TQDate ( int y, int m, int d )"
Constructs a date with year \fIy\fR, month \fIm\fR and day \fId\fR.
.PP
\fIy\fR must be in the range 1752..8000, \fIm\fR must be in the range 1..12, and \fId\fR must be in the range 1..31.
@ -169,66 +169,66 @@ Constructs a date with year \fIy\fR, month \fIm\fR and day \fId\fR.
\fBWarning:\fR If \fIy\fR is in the range 0..99, it is interpreted as 1900..1999.
.PP
See also isValid().
.SH "QDate QDate::addDays ( int ndays ) const"
Returns a QDate object containing a date \fIndays\fR later than the date of this object (or earlier if \fIndays\fR is negative).
.SH "TQDate TQDate::addDays ( int ndays ) const"
Returns a TQDate object containing a date \fIndays\fR later than the date of this object (or earlier if \fIndays\fR is negative).
.PP
See also addMonths(), addYears(), and daysTo().
.SH "QDate QDate::addMonths ( int nmonths ) const"
Returns a QDate object containing a date \fInmonths\fR later than the date of this object (or earlier if \fInmonths\fR is negative).
.SH "TQDate TQDate::addMonths ( int nmonths ) const"
Returns a TQDate object containing a date \fInmonths\fR later than the date of this object (or earlier if \fInmonths\fR is negative).
.PP
See also addDays() and addYears().
.SH "QDate QDate::addYears ( int nyears ) const"
Returns a QDate object containing a date \fInyears\fR later than the date of this object (or earlier if \fInyears\fR is negative).
.SH "TQDate TQDate::addYears ( int nyears ) const"
Returns a TQDate object containing a date \fInyears\fR later than the date of this object (or earlier if \fInyears\fR is negative).
Returns the TQDate represented by the string \fIs\fR, using the format \fIf\fR, or an invalid date if the string cannot be parsed.
.PP
Note for TQt::TextDate: It is recommended that you use the English short month names (e.g. "Jan"). Although localized month names can also be used, they depend on the user's locale settings.
.PP
\fBWarning:\fR TQt::LocalDate cannot be used here.
.SH "bool QDate::isNull () const"
.SH "bool TQDate::isNull () const"
Returns TRUE if the date is null; otherwise returns FALSE. A null date is invalid.
.PP
See also isValid().
.SH "bool QDate::isValid () const"
.SH "bool TQDate::isValid () const"
Returns TRUE if this date is valid; otherwise returns FALSE.
.PP
See also isNull().
.SH "bool QDate::isValid ( int y, int m, int d )\fC [static]\fR"
.SH "bool TQDate::isValid ( int y, int m, int d )\fC [static]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns TRUE if the specified date (year \fIy\fR, month \fIm\fR and day \fId\fR) is valid; otherwise returns FALSE.
@ -260,22 +260,22 @@ Example:
.PP
.nf
.br
QDate::isValid( 2002, 5, 17 ); // TRUE May 17th 2002 is valid
TQDate::isValid( 2002, 5, 17 ); // TRUE May 17th 2002 is valid
.br
QDate::isValid( 2002, 2, 30 ); // FALSE Feb 30th does not exist
TQDate::isValid( 2002, 2, 30 ); // FALSE Feb 30th does not exist
.br
QDate::isValid( 2004, 2, 29 ); // TRUE 2004 is a leap year
TQDate::isValid( 2004, 2, 29 ); // TRUE 2004 is a leap year
.br
QDate::isValid( 1202, 6, 6 ); // FALSE 1202 is pre-Gregorian
TQDate::isValid( 1202, 6, 6 ); // FALSE 1202 is pre-Gregorian
.br
.fi
.PP
\fBWarning:\fR A \fIy\fR value in the range 00..99 is interpreted as 1900..1999.
.PP
See also isNull() and setYMD().
.SH "bool QDate::leapYear ( int y )\fC [static]\fR"
.SH "bool TQDate::leapYear ( int y )\fC [static]\fR"
Returns TRUE if the specified year \fIy\fR is a leap year; otherwise returns FALSE.
.SH "TQString QDate::longDayName ( int weekday )\fC [static]\fR"
.SH "TQString TQDate::longDayName ( int weekday )\fC [static]\fR"
Returns the long name of the \fIweekday\fR.
.PP
1 = "Monday", 2 = "Tuesday", ... 7 = "Sunday"
@ -283,7 +283,7 @@ Returns the long name of the \fIweekday\fR.
The day names will be localized according to the system's locale settings.
.PP
See also toString(), shortDayName(), shortMonthName(), and longMonthName().
.SH "TQString QDate::longMonthName ( int month )\fC [static]\fR"
.SH "TQString TQDate::longMonthName ( int month )\fC [static]\fR"
@ -291,29 +291,29 @@ Returns the long name of the \fImonth\fR.
The month names will be localized according to the system's locale settings.
.PP
See also toString(), shortMonthName(), shortDayName(), and longDayName().
.SH "int QDate::month () const"
.SH "int TQDate::month () const"
Returns the month (January=1..December=12) of this date.
.PP
See also year() and day().
.PP
Example: dclock/dclock.cpp.
.SH "TQString QDate::monthName ( int month )\fC [static]\fR"
.SH "TQString TQDate::monthName ( int month )\fC [static]\fR"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
Use shortMonthName() instead.
.SH "bool QDate::operator!= ( const QDate & d ) const"
.SH "bool TQDate::operator!= ( const TQDate & d ) const"
Returns TRUE if this date is different from \fId\fR; otherwise returns FALSE.
.SH "bool QDate::operator< ( const QDate & d ) const"
.SH "bool TQDate::operator< ( const TQDate & d ) const"
Returns TRUE if this date is earlier than \fId\fR, otherwise returns FALSE.
.SH "bool QDate::operator<= ( const QDate & d ) const"
.SH "bool TQDate::operator<= ( const TQDate & d ) const"
Returns TRUE if this date is earlier than or equal to \fId\fR, otherwise returns FALSE.
.SH "bool QDate::operator== ( const QDate & d ) const"
.SH "bool TQDate::operator== ( const TQDate & d ) const"
Returns TRUE if this date is equal to \fId\fR; otherwise returns FALSE.
.SH "bool QDate::operator> ( const QDate & d ) const"
.SH "bool TQDate::operator> ( const TQDate & d ) const"
Returns TRUE if this date is later than \fId\fR, otherwise returns FALSE.
.SH "bool QDate::operator>= ( const QDate & d ) const"
.SH "bool TQDate::operator>= ( const TQDate & d ) const"
Returns TRUE if this date is later than or equal to \fId\fR, otherwise returns FALSE.
.SH "bool QDate::setYMD ( int y, int m, int d )"
.SH "bool TQDate::setYMD ( int y, int m, int d )"
Sets the date's year \fIy\fR, month \fIm\fR and day \fId\fR.
.PP
\fIy\fR must be in the range 1752..8000, \fIm\fR must be in the range 1..12, and \fId\fR must be in the range 1..31.
@ -321,7 +321,7 @@ Sets the date's year \fIy\fR, month \fIm\fR and day \fId\fR.
\fBWarning:\fR If \fIy\fR is in the range 0..99, it is interpreted as 1900..1999.
.PP
Returns TRUE if the date is valid; otherwise returns FALSE.
.SH "TQString QDate::shortDayName ( int weekday )\fC [static]\fR"
.SH "TQString TQDate::shortDayName ( int weekday )\fC [static]\fR"
Returns the name of the \fIweekday\fR.
.PP
1 = "Mon", 2 = "Tue", ... 7 = "Sun"
@ -329,7 +329,7 @@ Returns the name of the \fIweekday\fR.
The day names will be localized according to the system's locale settings.
.PP
See also toString(), shortMonthName(), longMonthName(), and longDayName().
.SH "TQString QDate::shortMonthName ( int month )\fC [static]\fR"
.SH "TQString TQDate::shortMonthName ( int month )\fC [static]\fR"
Returns the name of the \fImonth\fR.
.PP
1 = "Jan", 2 = "Feb", ... 12 = "Dec"
@ -337,21 +337,21 @@ Returns the name of the \fImonth\fR.
The month names will be localized according to the system's locale settings.
.PP
See also toString(), longMonthName(), shortDayName(), and longDayName().
.SH "TQString QDate::toString ( const TQString & format ) const"
.SH "TQString TQDate::toString ( const TQString & format ) const"
Returns the date as a string. The \fIformat\fR parameter determines the format of the result string.
.PP
These expressions may be used:
.PP
<center>.nf
.TS
l - l. Expression Output d the day as number without a leading zero (1-31) dd the day as number with a leading zero (01-31) ddd the abbreviated localized day name (e.g. 'Mon'..'Sun'). Uses QDate::shortDayName(). dddd the long localized day name (e.g. 'Monday'..'Sunday'). Uses QDate::longDayName(). M the month as number without a leading zero (1-12) MM the month as number with a leading zero (01-12) MMM the abbreviated localized month name (e.g. 'Jan'..'Dec'). Uses QDate::shortMonthName(). MMMM the long localized month name (e.g. 'January'..'December'). Uses QDate::longMonthName(). yy the year as two digit number (00-99) yyyy
l - l. Expression Output d the day as number without a leading zero (1-31) dd the day as number with a leading zero (01-31) ddd the abbreviated localized day name (e.g. 'Mon'..'Sun'). Uses TQDate::shortDayName(). dddd the long localized day name (e.g. 'Monday'..'Sunday'). Uses TQDate::longDayName(). M the month as number without a leading zero (1-12) MM the month as number with a leading zero (01-12) MMM the abbreviated localized month name (e.g. 'Jan'..'Dec'). Uses TQDate::shortMonthName(). MMMM the long localized month name (e.g. 'January'..'December'). Uses TQDate::longMonthName(). yy the year as two digit number (00-99) yyyy
.TE
.fi
</center>
.PP
All other input characters will be ignored.
.PP
Example format strings (assuming that the QDate is the 20<sup><small>th</small></sup> July 1969): <center>.nf
Example format strings (assuming that the TQDate is the 20<sup><small>th</small></sup> July 1969): <center>.nf
.TS
l - l. Format Result dd.MM.yyyy 20.07.1969 ddd MMMM d yy
.TE
@ -360,8 +360,8 @@ l - l. Format Result dd.MM.yyyy 20.07.1969 ddd MMMM d yy
.PP
If the date is an invalid date, then TQString::null will be returned.
.PP
See also QDateTime::toString() and QTime::toString().
.SH "TQString QDate::toString ( TQt::DateFormat f = TQt::TextDate ) const"
See also TQDateTime::toString() and TQTime::toString().
.SH "TQString TQDate::toString ( TQt::DateFormat f = TQt::TextDate ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns the date as a string. The \fIf\fR parameter determines the format of the string.
@ -375,7 +375,7 @@ If \fIf\fR is TQt::LocalDate, the string format depends on the locale settings o
If the date is an invalid date, then TQString::null will be returned.
Returns the week number (1 to 53), and stores the year in \fI*yearNumber\fR unless \fIyearNumber\fR is null (the default).
.PP
Returns 0 if the date is invalid.
@ -389,22 +389,22 @@ Copyright (c) 1989 The Regents of the University of California. All rights reser
Redistribution and use in source and binary forms are permitted provided that the above copyright notice and this paragraph are duplicated in all such forms and that any documentation, advertising materials, and other materials related to such distribution and use acknowledge that the software was developed by the University of California, Berkeley. The name of the University may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.BI "virtual void \fBsetDate\fR ( const QDate & date )"
.BI "virtual void \fBsetDate\fR ( const TQDate & date )"
.br
.in -1c
.SS "Signals"
.in +1c
.ti -1c
.BI "void \fBvalueChanged\fR ( const QDate & date )"
.BI "void \fBvalueChanged\fR ( const TQDate & date )"
.br
.in -1c
.SS "Properties"
@ -82,13 +82,13 @@ Inherits QDateTimeEditBase.
.BI "bool \fBautoAdvance\fR - whether the editor automatically advances to the next section"
.br
.ti -1c
.BI "QDate \fBdate\fR - the editor's date value"
.BI "TQDate \fBdate\fR - the editor's date value"
.br
.ti -1c
.BI "QDate \fBmaxValue\fR - the editor's maximum value"
.BI "TQDate \fBmaxValue\fR - the editor's maximum value"
.br
.ti -1c
.BI "QDate \fBminValue\fR - the editor's minimum value"
.BI "TQDate \fBminValue\fR - the editor's minimum value"
.br
.ti -1c
.BI "Order \fBorder\fR - the order in which the " "year" ", month and day appear"
@ -119,29 +119,29 @@ Inherits QDateTimeEditBase.
.br
.in -1c
.SH DESCRIPTION
The QDateEdit class provides a date editor.
The TQDateEdit class provides a date editor.
.PP
QDateEdit allows the user to edit dates by using the keyboard or the arrow keys to increase/decrease date values. The arrow keys can be used to move from section to section within the QDateEdit box. Dates appear in accordance with the local date/time settings or in year, month, day order if the system doesn't provide this information. It is recommended that the QDateEdit be initialised with a date, e.g.
TQDateEdit allows the user to edit dates by using the keyboard or the arrow keys to increase/decrease date values. The arrow keys can be used to move from section to section within the TQDateEdit box. Dates appear in accordance with the local date/time settings or in year, month, day order if the system doesn't provide this information. It is recommended that the TQDateEdit be initialised with a date, e.g.
.PP
.nf
.br
QDateEdit *dateEdit = new QDateEdit( QDate::currentDate(), this );
TQDateEdit *dateEdit = new TQDateEdit( TQDate::currentDate(), this );
Here we've created a new QDateEdit object initialised with today's date and restricted the valid date range to today plus or minus 365 days. We've set the order to month, day, year. If the auto advance property is TRUE (as we've set it here) when the user completes a section of the date, e.g. enters two digits for the month, they are automatically taken to the next section.
Here we've created a new TQDateEdit object initialised with today's date and restricted the valid date range to today plus or minus 365 days. We've set the order to month, day, year. If the auto advance property is TRUE (as we've set it here) when the user completes a section of the date, e.g. enters two digits for the month, they are automatically taken to the next section.
.PP
The maximum and minimum values for a date value in the date editor default to the maximum and minimum values for a QDate. You can change this by calling setMinValue(), setMaxValue() or setRange().
The maximum and minimum values for a date value in the date editor default to the maximum and minimum values for a TQDate. You can change this by calling setMinValue(), setMaxValue() or setRange().
.PP
Terminology: A QDateEdit widget comprises three 'sections', one each for the year, month and day. You can change the separator character using QDateTimeEditor::setSeparator(), by default the separator will be taken from the systems settings. If that is not possible, it defaults to "-".
Terminology: A TQDateEdit widget comprises three 'sections', one each for the year, month and day. You can change the separator character using TQDateTimeEditor::setSeparator(), by default the separator will be taken from the systems settings. If that is not possible, it defaults to "-".
.PP
<center>
.ce 1
@ -149,34 +149,34 @@ Terminology: A QDateEdit widget comprises three 'sections', one each for the yea
.PP
</center>
.PP
See also QDate, QTimeEdit, QDateTimeEdit, Advanced Widgets, and Time and Date.
See also TQDate, TQTimeEdit, TQDateTimeEdit, Advanced Widgets, and Time and Date.
.SS "Member Type Documentation"
.SH "QDateEdit::Order"
.SH "TQDateEdit::Order"
This enum defines the order in which the sections that comprise a date appear.
.TP
\fCQDateEdit::MDY\fR - month-day-year
\fCTQDateEdit::MDY\fR - month-day-year
.TP
\fCQDateEdit::DMY\fR - day-month-year
\fCTQDateEdit::DMY\fR - day-month-year
.TP
\fCQDateEdit::YMD\fR - year-month-day (the default)
\fCTQDateEdit::YMD\fR - year-month-day (the default)
.TP
\fCQDateEdit::YDM\fR - year-day-month (included for completeness; but should not be used)
\fCTQDateEdit::YDM\fR - year-day-month (included for completeness; but should not be used)
@ -188,43 +188,43 @@ If the year has two digits, the year will be changed to four digits in the range
If the year has three digits in the range 100..999, the current millennium, i.e. 2000, will be added giving a year in the range 2100..2999.
.TP
If the day or month is 0 then it will be set to 1 or the minimum valid day\\month in the range.
.SH "QDate QDateEdit::maxValue () const"
.SH "TQDate TQDateEdit::maxValue () const"
Returns the editor's maximum value. See the "maxValue" property for details.
.SH "QDate QDateEdit::minValue () const"
.SH "TQDate TQDateEdit::minValue () const"
Returns the editor's minimum value. See the "minValue" property for details.
.SH "Order QDateEdit::order () const"
.SH "Order TQDateEdit::order () const"
Returns the order in which the year, month and day appear. See the "order" property for details.
.SH "TQString QDateEdit::sectionFormattedText ( int sec )\fC [virtual protected]\fR"
.SH "TQString TQDateEdit::sectionFormattedText ( int sec )\fC [virtual protected]\fR"
Returns the formatted number for section \fIsec\fR. This will correspond to either the year, month or day section, depending on the current display order.
Sets the valid input range for the editor to be from \fImin\fR to \fImax\fR inclusive. If \fImin\fR is invalid no minimum date will be set. Similarly, if \fImax\fR is invalid no maximum date will be set.
.SH "void QDateEdit::setSeparator ( const TQString & s )\fC [virtual]\fR"
.SH "void TQDateEdit::setSeparator ( const TQString & s )\fC [virtual]\fR"
Sets the separator to \fIs\fR. Note that currently only the first character of \fIs\fR is used.
.SH "void QDateEdit::setYear ( int year )\fC [virtual protected]\fR"
.SH "void TQDateEdit::setYear ( int year )\fC [virtual protected]\fR"
Sets the year to \fIyear\fR, which must be a valid year. The range currently supported is from 1752 to 8000.
Enables/disables the push buttons according to the min/max date for this widget.
.SH "void QDateEdit::valueChanged ( const QDate & date )\fC [signal]\fR"
.SH "void TQDateEdit::valueChanged ( const TQDate & date )\fC [signal]\fR"
This signal is emitted whenever the editor's value changes. The \fIdate\fR parameter is the new value.
.SS "Property Documentation"
.SH "bool autoAdvance"
@ -233,26 +233,26 @@ This property holds whether the editor automatically advances to the next sectio
If autoAdvance is TRUE, the editor will automatically advance focus to the next date section if a user has completed a section. The default is FALSE.
.PP
Set this property's value with setAutoAdvance() and get this property's value with autoAdvance().
.SH "QDate date"
.SH "TQDate date"
This property holds the editor's date value.
.PP
If the date property is not valid, the editor displays all zeroes and QDateEdit::date() will return an invalid date. It is strongly recommended that the editor is given a default date value (e.g. currentDate()). That way, attempts to set the date property to an invalid date will fail.
If the date property is not valid, the editor displays all zeroes and TQDateEdit::date() will return an invalid date. It is strongly recommended that the editor is given a default date value (e.g. currentDate()). That way, attempts to set the date property to an invalid date will fail.
.PP
When changing the date property, if the date is less than minValue(), or is greater than maxValue(), nothing happens.
.PP
Set this property's value with setDate() and get this property's value with date().
.SH "QDate maxValue"
.SH "TQDate maxValue"
This property holds the editor's maximum value.
.PP
Setting the maximum date value for the editor is equivalent to calling QDateEdit::setRange( minValue(), \fId\fR ), where \fId\fR is the maximum date. The default maximum date is 8000-12-31.
Setting the maximum date value for the editor is equivalent to calling TQDateEdit::setRange( minValue(), \fId\fR ), where \fId\fR is the maximum date. The default maximum date is 8000-12-31.
.PP
See also minValue and setRange().
.PP
Set this property's value with setMaxValue() and get this property's value with maxValue().
.SH "QDate minValue"
.SH "TQDate minValue"
This property holds the editor's minimum value.
.PP
Setting the minimum date value is equivalent to calling QDateEdit::setRange( \fId\fR, maxValue() ), where \fId\fR is the minimum date. The default minimum date is 1752-09-14.
Setting the minimum date value is equivalent to calling TQDateEdit::setRange( \fId\fR, maxValue() ), where \fId\fR is the minimum date. The default minimum date is 1752-09-14.
.PP
See also maxValue and setRange().
.PP
@ -267,7 +267,7 @@ See also Order.
Set this property's value with setOrder() and get this property's value with order().
.SH "SEE ALSO"
.BR http://doc.trolltech.com/qdateedit.html
.BR http://doc.trolltech.com/tqdateedit.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
The QDateTime class provides date and time functions.
The TQDateTime class provides date and time functions.
.PP
A QDateTime object contains a calendar date and a clock time (a" datetime"). It is a combination of the QDate and QTime classes. It can read the current datetime from the system clock. It provides functions for comparing datetimes and for manipulating a datetime by adding a number of seconds, days, months or years.
A TQDateTime object contains a calendar date and a clock time (a" datetime"). It is a combination of the TQDate and TQTime classes. It can read the current datetime from the system clock. It provides functions for comparing datetimes and for manipulating a datetime by adding a number of seconds, days, months or years.
.PP
A QDateTime object is typically created either by giving a date and time explicitly in the constructor, or by using the static function currentDateTime(), which returns a QDateTime object set to the system clock's time. The date and time can be changed with setDate() and setTime(). A datetime can also be set using the setTime_t() function, which takes a POSIX-standard "number of seconds since 00:00:00 on January 1, 1970" value. The fromString() function returns a QDateTime given a string and a date format which is used to interpret the date within the string.
A TQDateTime object is typically created either by giving a date and time explicitly in the constructor, or by using the static function currentDateTime(), which returns a TQDateTime object set to the system clock's time. The date and time can be changed with setDate() and setTime(). A datetime can also be set using the setTime_t() function, which takes a POSIX-standard "number of seconds since 00:00:00 on January 1, 1970" value. The fromString() function returns a TQDateTime given a string and a date format which is used to interpret the date within the string.
.PP
The date() and time() functions provide access to the date and time parts of the datetime. The same information is provided in textual format by the toString() function.
.PP
QDateTime provides a full set of operators to compare two QDateTime objects where smaller means earlier and larger means later.
TQDateTime provides a full set of operators to compare two TQDateTime objects where smaller means earlier and larger means later.
.PP
You can increment (or decrement) a datetime by a given number of seconds using addSecs() or days using addDays(). Similarly you can use addMonths() and addYears(). The daysTo() function returns the number of days between two datetimes, and secsTo() returns the number of seconds between two datetimes.
.PP
The range of a datetime object is constrained to the ranges of the QDate and QTime objects which it embodies.
The range of a datetime object is constrained to the ranges of the TQDate and TQTime objects which it embodies.
.PP
See also QDate, QTime, QDateTimeEdit, and Time and Date.
See also TQDate, TQTime, TQDateTimeEdit, and Time and Date.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QDateTime::QDateTime ()"
.SH "TQDateTime::TQDateTime ()"
Constructs a null datetime (i.e. null date and null time). A null datetime is invalid, since the date is invalid.
.PP
See also isValid().
.SH "QDateTime::QDateTime ( const QDate & date )"
.SH "TQDateTime::TQDateTime ( const TQDate & date )"
Constructs a datetime with date \fIdate\fR and null (but valid) time (00:00:00.000).
Constructs a datetime with date \fIdate\fR and time \fItime\fR.
.SH "QDateTime QDateTime::addDays ( int ndays ) const"
Returns a QDateTime object containing a datetime \fIndays\fR days later than the datetime of this object (or earlier if \fIndays\fR is negative).
.SH "TQDateTime TQDateTime::addDays ( int ndays ) const"
Returns a TQDateTime object containing a datetime \fIndays\fR days later than the datetime of this object (or earlier if \fIndays\fR is negative).
.PP
See also daysTo(), addMonths(), addYears(), and addSecs().
.SH "QDateTime QDateTime::addMonths ( int nmonths ) const"
Returns a QDateTime object containing a datetime \fInmonths\fR months later than the datetime of this object (or earlier if \fInmonths\fR is negative).
.SH "TQDateTime TQDateTime::addMonths ( int nmonths ) const"
Returns a TQDateTime object containing a datetime \fInmonths\fR months later than the datetime of this object (or earlier if \fInmonths\fR is negative).
.PP
See also daysTo(), addDays(), addYears(), and addSecs().
.SH "QDateTime QDateTime::addSecs ( int nsecs ) const"
Returns a QDateTime object containing a datetime \fInsecs\fR seconds later than the datetime of this object (or earlier if \fInsecs\fR is negative).
.SH "TQDateTime TQDateTime::addSecs ( int nsecs ) const"
Returns a TQDateTime object containing a datetime \fInsecs\fR seconds later than the datetime of this object (or earlier if \fInsecs\fR is negative).
.PP
See also secsTo(), addDays(), addMonths(), and addYears().
.PP
Example: listviews/listviews.cpp.
.SH "QDateTime QDateTime::addYears ( int nyears ) const"
Returns a QDateTime object containing a datetime \fInyears\fR years later than the datetime of this object (or earlier if \fInyears\fR is negative).
.SH "TQDateTime TQDateTime::addYears ( int nyears ) const"
Returns a TQDateTime object containing a datetime \fInyears\fR years later than the datetime of this object (or earlier if \fInyears\fR is negative).
.PP
See also daysTo(), addDays(), addMonths(), and addSecs().
Returns the TQDateTime represented by the string \fIs\fR, using the format \fIf\fR, or an invalid datetime if this is not possible.
.PP
Note for TQt::TextDate: It is recommended that you use the English short month names (e.g. "Jan"). Although localized month names can also be used, they depend on the user's locale settings.
.PP
\fBWarning:\fR Note that TQt::LocalDate cannot be used here.
.SH "bool QDateTime::isNull () const"
.SH "bool TQDateTime::isNull () const"
Returns TRUE if both the date and the time are null; otherwise returns FALSE. A null datetime is invalid.
.PP
See also QDate::isNull() and QTime::isNull().
.SH "bool QDateTime::isValid () const"
See also TQDate::isNull() and TQTime::isNull().
.SH "bool TQDateTime::isValid () const"
Returns TRUE if both the date and the time are valid; otherwise returns FALSE.
Sets the date and time to \fIts\fR time (TQt::LocalTime or TQt::UTC) given the number of seconds that have passed since 1970-01-01T00:00:00, Coordinated Universal Time (UTC). On systems that do not support timezones this function will behave as if local time were UTC.
.PP
On Windows, only a subset of \fIsecsSince1Jan1970UTC\fR values are supported, as Windows starts counting from 1980.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Convenience function that sets the date and time to local time based on the given UTC time.
.SH "QTime QDateTime::time () const"
.SH "TQTime TQDateTime::time () const"
Returns the time part of the datetime.
.PP
See also setTime() and date().
.SH "TQString QDateTime::toString ( const TQString & format ) const"
.SH "TQString TQDateTime::toString ( const TQString & format ) const"
Returns the datetime as a string. The \fIformat\fR parameter determines the format of the result string.
.PP
These expressions may be used for the date:
.PP
<center>.nf
.TS
l - l. Expression Output d the day as number without a leading zero (1-31) dd the day as number with a leading zero (01-31) ddd the abbreviated localized day name (e.g. 'Mon'..'Sun'). Uses QDate::shortDayName(). dddd the long localized day name (e.g. 'Monday'..'Sunday'). Uses QDate::longDayName(). M the month as number without a leading zero (1-12) MM the month as number with a leading zero (01-12) MMM the abbreviated localized month name (e.g. 'Jan'..'Dec'). Uses QDate::shortMonthName(). MMMM the long localized month name (e.g. 'January'..'December'). Uses QDate::longMonthName(). yy the year as two digit number (00-99) yyyy
l - l. Expression Output d the day as number without a leading zero (1-31) dd the day as number with a leading zero (01-31) ddd the abbreviated localized day name (e.g. 'Mon'..'Sun'). Uses TQDate::shortDayName(). dddd the long localized day name (e.g. 'Monday'..'Sunday'). Uses TQDate::longDayName(). M the month as number without a leading zero (1-12) MM the month as number with a leading zero (01-12) MMM the abbreviated localized month name (e.g. 'Jan'..'Dec'). Uses TQDate::shortMonthName(). MMMM the long localized month name (e.g. 'January'..'December'). Uses TQDate::longMonthName(). yy the year as two digit number (00-99) yyyy
.TE
.fi
</center>
@ -269,7 +269,7 @@ l - l. Expression Output h the hour without a leading zero (0..23 or 1..12 if AM
.PP
All other input characters will be ignored.
.PP
Example format strings (assumed that the QDateTime is 21<small><sup>st</sup></small> May 2001 14:13:09)
Example format strings (assumed that the TQDateTime is 21<small><sup>st</sup></small> May 2001 14:13:09)
.PP
<center>.nf
.TS
@ -280,13 +280,13 @@ l - l. Format Result dd.MM.yyyy 21.05.2001 ddd MMMM d yy Tue May 21 01 hh:mm:ss.
.PP
If the datetime is an invalid datetime, then TQString::null will be returned.
.PP
See also QDate::toString() and QTime::toString().
.SH "TQString QDateTime::toString ( TQt::DateFormat f = TQt::TextDate ) const"
See also TQDate::toString() and TQTime::toString().
.SH "TQString TQDateTime::toString ( TQt::DateFormat f = TQt::TextDate ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns the datetime as a string. The \fIf\fR parameter determines the format of the string.
.PP
If \fIf\fR is TQt::TextDate, the string format is "Wed May 20 03:40:13 1998" (using QDate::shortDayName(), QDate::shortMonthName(), and QTime::toString() to generate the string, so the day and month names will have localized names).
If \fIf\fR is TQt::TextDate, the string format is "Wed May 20 03:40:13 1998" (using TQDate::shortDayName(), TQDate::shortMonthName(), and TQTime::toString() to generate the string, so the day and month names will have localized names).
.PP
If \fIf\fR is TQt::ISODate, the string format corresponds to the ISO 8601 extended specification for representations of dates and times, which is YYYY-MM-DDTHH:MM:SS.
.PP
@ -294,25 +294,25 @@ If \fIf\fR is TQt::LocalDate, the string format depends on the locale settings o
.PP
If the format \fIf\fR is invalid or the datetime is invalid, toString() returns a null string.
.PP
See also QDate::toString() and QTime::toString().
.SH "uint QDateTime::toTime_t () const"
See also TQDate::toString() and TQTime::toString().
.SH "uint TQDateTime::toTime_t () const"
Returns the datetime as the number of seconds that have passed since 1970-01-01T00:00:00, Coordinated Universal Time (UTC).
.PP
On systems that do not support timezones, this function will behave as if local time were UTC.
.BI "QDateTime \fBdateTime\fR - the editor's datetime value"
.BI "TQDateTime \fBdateTime\fR - the editor's datetime value"
.br
.in -1c
.SH DESCRIPTION
The QDateTimeEdit class combines a QDateEdit and QTimeEdit widget into a single widget for editing datetimes.
The TQDateTimeEdit class combines a TQDateEdit and TQTimeEdit widget into a single widget for editing datetimes.
.PP
QDateTimeEdit consists of a QDateEdit and QTimeEdit widget placed side by side and offers the functionality of both. The user can edit the date and time by using the keyboard or the arrow keys to increase/decrease date or time values. The Tab key can be used to move from section to section within the QDateTimeEdit widget, and the user can be moved automatically when they complete a section using setAutoAdvance(). The datetime can be set with setDateTime().
TQDateTimeEdit consists of a TQDateEdit and TQTimeEdit widget placed side by side and offers the functionality of both. The user can edit the date and time by using the keyboard or the arrow keys to increase/decrease date or time values. The Tab key can be used to move from section to section within the TQDateTimeEdit widget, and the user can be moved automatically when they complete a section using setAutoAdvance(). The datetime can be set with setDateTime().
.PP
The date format is read from the system's locale settings. It is set to year, month, day order if that is not possible. See QDateEdit::setOrder() to change this. Times appear in the order hours, minutes, seconds using the 24 hour clock.
The date format is read from the system's locale settings. It is set to year, month, day order if that is not possible. See TQDateEdit::setOrder() to change this. Times appear in the order hours, minutes, seconds using the 24 hour clock.
.PP
It is recommended that the QDateTimeEdit is initialised with a datetime, e.g.
It is recommended that the TQDateTimeEdit is initialised with a datetime, e.g.
.PP
.nf
.br
QDateTimeEdit *dateTimeEdit = new QDateTimeEdit( QDateTime::currentDateTime(), this );
TQDateTimeEdit *dateTimeEdit = new TQDateTimeEdit( TQDateTime::currentDateTime(), this );
Here we've created a new QDateTimeEdit set to the current date and time, and set the date to have a minimum date of now and a maximum date of a week from now.
Here we've created a new TQDateTimeEdit set to the current date and time, and set the date to have a minimum date of now and a maximum date of a week from now.
.PP
Terminology: A QDateEdit widget consists of three 'sections', one each for the year, month and day. Similarly a QTimeEdit consists of three sections, one each for the hour, minute and second. The character that separates each date section is specified with setDateSeparator(); similarly setTimeSeparator() is used for the time sections.
Terminology: A TQDateEdit widget consists of three 'sections', one each for the year, month and day. Similarly a TQTimeEdit consists of three sections, one each for the hour, minute and second. The character that separates each date section is specified with setDateSeparator(); similarly setTimeSeparator() is used for the time sections.
.PP
<center>
.ce 1
@ -86,34 +86,34 @@ Terminology: A QDateEdit widget consists of three 'sections', one each for the y
.PP
</center>
.PP
See also QDateEdit, QTimeEdit, Advanced Widgets, and Time and Date.
See also TQDateEdit, TQTimeEdit, Advanced Widgets, and Time and Date.
Sets the auto advance property of the editor to \fIadvance\fR. If set to TRUE, the editor will automatically advance focus to the next date or time section if the user has completed a section.
@ -105,7 +105,7 @@ The function returns TRUE if the caller should delete the original copy of the d
.PP
If the drag contains \fIreferences\fR to information (e.g. file names in a QUriDrag are references) then the return value should always be ignored, as the target is expected to manipulate the referred-to content directly. On X11 the return value should always be correct anyway, but on Windows this is not necessarily the case (e.g. the file manager starts a background process to move files, so the source \fImust not\fR delete the files!)
.PP
Note that on Windows the drag operation will spin a blocking modal event loop that will not dispatch any QTimers.
Note that on Windows the drag operation will spin a blocking modal event loop that will not dispatch any TQTimers.
@ -145,7 +145,7 @@ It is necessary to call this function to start event handling. The main event lo
.PP
Generally speaking, no user interaction can take place before calling exec(). As a special case, modal widgets like QMessageBox can be used before calling exec(), because modal widgets call exec() to start a local event loop.
.PP
To make your application perform idle processing, i.e. executing a special function whenever there are no pending events, use a QTimer with 0 timeout. More advanced idle processing schemes can be achieved using processEvents().
To make your application perform idle processing, i.e. executing a special function whenever there are no pending events, use a TQTimer with 0 timeout. More advanced idle processing schemes can be achieved using processEvents().
.PP
See also QApplication::quit(), exit(), and processEvents().
.SH "void QEventLoop::exit ( int retcode = 0 )\fC [virtual]\fR"
@ -533,7 +533,7 @@ If \fIdirOnly\fR is TRUE, then only directories will be shown in the file dialog
.PP
Under Unix/X11, the normal behavior of the file dialog is to resolve and follow symlinks. For example, if /usr/tmp is a symlink to /var/tmp, the file dialog will change to /var/tmp after entering /usr/tmp. If \fIresolveSymlinks\fR is FALSE, the file dialog will treat symlinks as regular directories.
.PP
Under Windows and Mac OS X, this static function will use the native file dialog and not a QFileDialog, unless the style of the application is set to something other than the native style. (Note that on Windows the dialog will spin a blocking modal event loop that will not dispatch any QTimers and if parent is not 0 then it will position the dialog just under the parent's titlebar).
Under Windows and Mac OS X, this static function will use the native file dialog and not a QFileDialog, unless the style of the application is set to something other than the native style. (Note that on Windows the dialog will spin a blocking modal event loop that will not dispatch any TQTimers and if parent is not 0 then it will position the dialog just under the parent's titlebar).
.PP
See also getOpenFileName(), getOpenFileNames(), and getSaveFileName().
@ -561,7 +561,7 @@ The file dialog's working directory will be set to \fIstartWith\fR. If \fIstartW
.PP
The dialog's caption is set to \fIcaption\fR. If \fIcaption\fR is not specified then a default caption will be used.
.PP
Under Windows and Mac OS X, this static function will use the native file dialog and not a QFileDialog, unless the style of the application is set to something other than the native style (Note that on Windows the dialog will spin a blocking modal event loop that will not dispatch any QTimers and if parent is not 0 then it will position the dialog just under the parent's titlebar).
Under Windows and Mac OS X, this static function will use the native file dialog and not a QFileDialog, unless the style of the application is set to something other than the native style (Note that on Windows the dialog will spin a blocking modal event loop that will not dispatch any TQTimers and if parent is not 0 then it will position the dialog just under the parent's titlebar).
.PP
Under Unix/X11, the normal behavior of the file dialog is to resolve and follow symlinks. For example, if /usr/tmp is a symlink to /var/tmp, the file dialog will change to /var/tmp after entering /usr/tmp. If \fIresolveSymlinks\fR is FALSE, the file dialog will treat symlinks as regular directories.
.PP
@ -594,7 +594,7 @@ The file dialog's working directory will be set to \fIdir\fR. If \fIdir\fR inclu
.PP
The dialog's caption is set to \fIcaption\fR. If \fIcaption\fR is not specified then a default caption will be used.
.PP
Under Windows and Mac OS X, this static function will use the native file dialog and not a QFileDialog, unless the style of the application is set to something other than the native style. (Note that on Windows the dialog will spin a blocking modal event loop that will not dispatch any QTimers and if parent is not 0 then it will position the dialog just under the parent's titlebar).
Under Windows and Mac OS X, this static function will use the native file dialog and not a QFileDialog, unless the style of the application is set to something other than the native style. (Note that on Windows the dialog will spin a blocking modal event loop that will not dispatch any TQTimers and if parent is not 0 then it will position the dialog just under the parent's titlebar).
.PP
Under Unix/X11, the normal behavior of the file dialog is to resolve and follow symlinks. For example, if /usr/tmp is a symlink to /var/tmp, the file dialog will change to /var/tmp after entering /usr/tmp. If \fIresolveSymlinks\fR is FALSE, the file dialog will treat symlinks as regular directories.
.PP
@ -642,7 +642,7 @@ The file dialog's working directory will be set to \fIstartWith\fR. If \fIstartW
.PP
The dialog's caption is set to \fIcaption\fR. If \fIcaption\fR is not specified then a default caption will be used.
.PP
Under Windows and Mac OS X, this static function will use the native file dialog and not a QFileDialog, unless the style of the application is set to something other than the native style. (Note that on Windows the dialog will spin a blocking modal event loop that will not dispatch any QTimers and if parent is not 0 then it will position the dialog just under the parent's titlebar.
Under Windows and Mac OS X, this static function will use the native file dialog and not a QFileDialog, unless the style of the application is set to something other than the native style. (Note that on Windows the dialog will spin a blocking modal event loop that will not dispatch any TQTimers and if parent is not 0 then it will position the dialog just under the parent's titlebar.
.PP
Under Unix/X11, the normal behavior of the file dialog is to resolve and follow symlinks. For example, if /usr/tmp is a symlink to /var/tmp, the file dialog will change to /var/tmp after entering /usr/tmp. If \fIresolveSymlinks\fR is FALSE, the file dialog will treat symlinks as regular directories.
The icon view is not redrawn immediately after inserting a new item but after a very small delay using a QTimer. This means that when many items are inserted in a loop the icon view is probably redrawn only once at the end of the loop. This makes the insertions both flicker-free and faster.
The icon view is not redrawn immediately after inserting a new item but after a very small delay using a TQTimer. This means that when many items are inserted in a loop the icon view is probably redrawn only once at the end of the loop. This makes the insertions both flicker-free and faster.
Sorts and rearranges all the items in the icon view. If \fIascending\fR is TRUE, the items are sorted in increasing order, otherwise they are sorted in decreasing order.
@ -73,7 +73,7 @@ This type is used to signify a widget's focus rectangle policy.
.TP
\fCQMacStyle::FocusDisabled\fR - never show a focus rectangle for the widget.
.TP
\fCQMacStyle::FocusDefault\fR - show a focus rectangle when the widget has focus and the widget is a QSpinWidget, QDateTimeEdit, QLineEdit, QListBox, QListView, editable TQTextEdit, or one of their subclasses.
\fCQMacStyle::FocusDefault\fR - show a focus rectangle when the widget has focus and the widget is a QSpinWidget, TQDateTimeEdit, QLineEdit, QListBox, QListView, editable TQTextEdit, or one of their subclasses.
@ -207,7 +207,7 @@ When an object is deleted, it emits a destroyed() signal. You can catch this sig
.PP
TQObjects can receive events through event() and filter the events of other objects. See installEventFilter() and eventFilter() for details. A convenience handler, childEvent(), can be reimplemented to catch child events.
.PP
Last but not least, TQObject provides the basic timer support in Qt; see QTimer for high-level support for timers.
Last but not least, TQObject provides the basic timer support in Qt; see TQTimer for high-level support for timers.
.PP
Notice that the TQ_OBJECT macro is mandatory for any object that implements signals, slots or properties. You also need to run the moc program (Meta Object Compiler) on the source file. We strongly recommend the use of this macro in \fIall\fR subclasses of TQObject regardless of whether or not they actually use signals, slots and properties, since failure to do so may lead certain functions to exhibit undefined behaviour.
.PP
@ -597,9 +597,9 @@ Example:
.PP
.nf
.br
QTimer *t = new QTimer; // QTimer inherits TQObject
TQTimer *t = new TQTimer; // TQTimer inherits TQObject
.br
t->inherits( "QTimer" ); // returns TRUE
t->inherits( "TQTimer" ); // returns TRUE
.br
t->inherits( "TQObject" ); // returns TRUE
.br
@ -713,9 +713,9 @@ Example:
.PP
.nf
.br
QTimer *t = new QTimer; // QTimer inherits TQObject
TQTimer *t = new TQTimer; // TQTimer inherits TQObject
.br
t->isA( "QTimer" ); // returns TRUE
t->isA( "TQTimer" ); // returns TRUE
.br
t->isA( "TQObject" ); // returns FALSE
.br
@ -735,7 +735,7 @@ See also timerEvent(), startTimer(), and killTimers().
.SH "void TQObject::killTimers ()"
Kills all timers that this object has started.
.PP
\fBWarning:\fR Using this function can cause hard-to-find bugs: it kills timers started by sub- and superclasses as well as those started by you, which is often not what you want. We recommend using a QTimer or perhaps killTimer().
\fBWarning:\fR Using this function can cause hard-to-find bugs: it kills timers started by sub- and superclasses as well as those started by you, which is often not what you want. We recommend using a TQTimer or perhaps killTimer().
.PP
See also timerEvent(), startTimer(), and killTimer().
@ -858,9 +858,9 @@ Starts a timer and returns a timer identifier, or returns zero if it could not s
.PP
A timer event will occur every \fIinterval\fR milliseconds until killTimer() or killTimers() is called. If \fIinterval\fR is 0, then the timer event occurs once every time there are no more window system events to process.
.PP
The virtual timerEvent() function is called with the QTimerEvent event parameter class when a timer event occurs. Reimplement this function to get timer events.
The virtual timerEvent() function is called with the TQTimerEvent event parameter class when a timer event occurs. Reimplement this function to get timer events.
.PP
If multiple timers are running, the QTimerEvent::timerId() can be used to find out which timer was activated.
If multiple timers are running, the TQTimerEvent::timerId() can be used to find out which timer was activated.
.PP
Example:
.PP
@ -879,7 +879,7 @@ Example:
.br
protected:
.br
void timerEvent( QTimerEvent * );
void timerEvent( TQTimerEvent * );
.br
};
.br
@ -899,7 +899,7 @@ Example:
}
.br
.br
void MyObject::timerEvent( QTimerEvent *e )
void MyObject::timerEvent( TQTimerEvent *e )
.br
{
.br
@ -909,15 +909,15 @@ Example:
.br
.fi
.PP
Note that QTimer's accuracy depends on the underlying operating system and hardware. Most platforms support an accuracy of 20 ms; some provide more. If TQt is unable to deliver the requested number of timer clicks, it will silently discard some.
Note that TQTimer's accuracy depends on the underlying operating system and hardware. Most platforms support an accuracy of 20 ms; some provide more. If TQt is unable to deliver the requested number of timer clicks, it will silently discard some.
.PP
The QTimer class provides a high-level programming interface with one-shot timers and timer signals instead of events.
The TQTimer class provides a high-level programming interface with one-shot timers and timer signals instead of events.
.PP
See also timerEvent(), killTimer(), killTimers(), QEventLoop::awake(), and QEventLoop::aboutToBlock().
@ -175,7 +175,7 @@ for ( int i = 0; i < numFiles; i++ ) {
progress.setProgress( numFiles );
.fi
.PP
A modeless progress dialog is suitable for operations that take place in the background, where the user is able to interact with the application. Such operations are typically based on QTimer (or TQObject::timerEvent()), QSocketNotifier, or QUrlOperator; or performed in a separate thread. A QProgressBar in the status bar of your main window is often an alternative to a modeless progress dialog.
A modeless progress dialog is suitable for operations that take place in the background, where the user is able to interact with the application. Such operations are typically based on TQTimer (or TQObject::timerEvent()), QSocketNotifier, or QUrlOperator; or performed in a separate thread. A QProgressBar in the status bar of your main window is often an alternative to a modeless progress dialog.
.PP
You need to have an event loop to be running, connect the canceled() signal to a slot that stops the operation, and call setProgress() at intervals. For example:
@ -72,7 +72,7 @@ For write notifiers, immediately disable the notifier after the activated() sign
.PP
The behavior of a write notifier that is left in enabled state after having emitting the first activated() signal (and no "would block" error has occurred) is undefined. Depending on the operating system, it may fire on every pass of the event loop or not at all.
.PP
If you need a time-out for your sockets you can use either timer events or the QTimer class.
If you need a time-out for your sockets you can use either timer events or the TQTimer class.
.PP
Socket action is detected in the main event loop of Qt. The X11 version of TQt has a single UNIX select() call that incorporates all socket notifiers and the X socket.
A QTime object contains a clock time, i.e. the number of hours, minutes, seconds, and milliseconds since midnight. It can read the current time from the system clock and measure a span of elapsed time. It provides functions for comparing times and for manipulating a time by adding a number of (milli)seconds.
A TQTime object contains a clock time, i.e. the number of hours, minutes, seconds, and milliseconds since midnight. It can read the current time from the system clock and measure a span of elapsed time. It provides functions for comparing times and for manipulating a time by adding a number of (milli)seconds.
.PP
QTime uses the 24-hour clock format; it has no concept of AM/PM. It operates in local time; it knows nothing about time zones or daylight savings time.
TQTime uses the 24-hour clock format; it has no concept of AM/PM. It operates in local time; it knows nothing about time zones or daylight savings time.
.PP
A QTime object is typically created either by giving the number of hours, minutes, seconds, and milliseconds explicitly, or by using the static function currentTime(), which creates a QTime object that contains the system's clock time. Note that the accuracy depends on the accuracy of the underlying operating system; not all systems provide 1-millisecond accuracy.
A TQTime object is typically created either by giving the number of hours, minutes, seconds, and milliseconds explicitly, or by using the static function currentTime(), which creates a TQTime object that contains the system's clock time. Note that the accuracy depends on the accuracy of the underlying operating system; not all systems provide 1-millisecond accuracy.
.PP
The hour(), minute(), second(), and msec() functions provide access to the number of hours, minutes, seconds, and milliseconds of the time. The same information is provided in textual format by the toString() function.
.PP
QTime provides a full set of operators to compare two QTime objects. One time is considered smaller than another if it is earlier than the other.
TQTime provides a full set of operators to compare two TQTime objects. One time is considered smaller than another if it is earlier than the other.
.PP
The time a given number of seconds or milliseconds later than a given time can be found using the addSecs() or addMSecs() functions. Correspondingly, the number of (milli)seconds between two times can be found using the secsTo() or msecsTo() functions.
.PP
QTime can be used to measure a span of elapsed time using the start(), restart(), and elapsed() functions.
TQTime can be used to measure a span of elapsed time using the start(), restart(), and elapsed() functions.
.PP
See also QDate, QDateTime, and Time and Date.
See also TQDate, TQDateTime, and Time and Date.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QTime::QTime ()"
.SH "TQTime::TQTime ()"
Constructs the time 0 hours, minutes, seconds and milliseconds, i.e. 00:00:00.000 (midnight). This is a valid time.
.PP
See also isValid().
.SH "QTime::QTime ( int h, int m, int s = 0, int ms = 0 )"
.SH "TQTime::TQTime ( int h, int m, int s = 0, int ms = 0 )"
Constructs a time with hour \fIh\fR, minute \fIm\fR, seconds \fIs\fR and milliseconds \fIms\fR.
.PP
\fIh\fR must be in the range 0..23, \fIm\fR and \fIs\fR must be in the range 0..59, and \fIms\fR must be in the range 0..999.
.PP
See also isValid().
.SH "QTime QTime::addMSecs ( int ms ) const"
Returns a QTime object containing a time \fIms\fR milliseconds later than the time of this object (or earlier if \fIms\fR is negative).
.SH "TQTime TQTime::addMSecs ( int ms ) const"
Returns a TQTime object containing a time \fIms\fR milliseconds later than the time of this object (or earlier if \fIms\fR is negative).
.PP
Note that the time will wrap if it passes midnight. See addSecs() for an example.
.PP
See also addSecs() and msecsTo().
.SH "QTime QTime::addSecs ( int nsecs ) const"
Returns a QTime object containing a time \fInsecs\fR seconds later than the time of this object (or earlier if \fInsecs\fR is negative).
.SH "TQTime TQTime::addSecs ( int nsecs ) const"
Returns a TQTime object containing a time \fInsecs\fR seconds later than the time of this object (or earlier if \fInsecs\fR is negative).
.PP
Note that the time will wrap if it passes midnight.
.PP
@ -156,9 +156,9 @@ Example:
.PP
.nf
.br
QTime n( 14, 0, 0 ); // n == 14:00:00
TQTime n( 14, 0, 0 ); // n == 14:00:00
.br
QTime t;
TQTime t;
.br
t = n.addSecs( 70 ); // t == 14:01:10
.br
@ -170,8 +170,8 @@ Example:
.br
.fi
.PP
See also addMSecs(), secsTo(), and QDateTime::addSecs().
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns the current time as reported by the system clock.
.PP
Note that the accuracy depends on the accuracy of the underlying operating system; not all systems provide 1-millisecond accuracy.
.SH "int QTime::elapsed () const"
.SH "int TQTime::elapsed () const"
Returns the number of milliseconds that have elapsed since the last time start() or restart() was called.
.PP
Note that the counter wraps to zero 24 hours after the last call to start() or restart.
@ -196,24 +196,24 @@ Note that the accuracy depends on the accuracy of the underlying operating syste
\fBWarning:\fR If the system's clock setting has been changed since the last time start() or restart() was called, the result is undefined. This can happen when daylight savings time is turned on or off.
Returns the representation \fIs\fR as a TQTime using the format \fIf\fR, or an invalid time if this is not possible.
.PP
\fBWarning:\fR Note that TQt::LocalDate cannot be used here.
.SH "int QTime::hour () const"
.SH "int TQTime::hour () const"
Returns the hour part (0..23) of the time.
.PP
Examples:
.)l aclock/aclock.cpp and tictac/tictac.cpp.
.SH "bool QTime::isNull () const"
.SH "bool TQTime::isNull () const"
Returns TRUE if the time is equal to 00:00:00.000; otherwise returns FALSE. A null time is valid.
.PP
See also isValid().
.SH "bool QTime::isValid () const"
.SH "bool TQTime::isValid () const"
Returns TRUE if the time is valid; otherwise returns FALSE. The time 23:30:55.746 is valid, whereas 24:12:30 is invalid.
.PP
See also isNull().
.SH "bool QTime::isValid ( int h, int m, int s, int ms = 0 )\fC [static]\fR"
.SH "bool TQTime::isValid ( int h, int m, int s, int ms = 0 )\fC [static]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns TRUE if the specified time is valid; otherwise returns FALSE.
@ -224,37 +224,37 @@ Example:
.PP
.nf
.br
QTime::isValid(21, 10, 30); // returns TRUE
TQTime::isValid(21, 10, 30); // returns TRUE
.br
QTime::isValid(22, 5, 62); // returns FALSE
TQTime::isValid(22, 5, 62); // returns FALSE
.br
.fi
.SH "int QTime::minute () const"
.SH "int TQTime::minute () const"
Returns the minute part (0..59) of the time.
.PP
Examples:
.)l aclock/aclock.cpp and tictac/tictac.cpp.
.SH "int QTime::msec () const"
.SH "int TQTime::msec () const"
Returns the millisecond part (0..999) of the time.
.SH "int QTime::msecsTo ( const QTime & t ) const"
.SH "int TQTime::msecsTo ( const TQTime & t ) const"
Returns the number of milliseconds from this time to \fIt\fR (which is negative if \fIt\fR is earlier than this time).
.PP
Because QTime measures time within a day and there are 86400 seconds in a day, the result is always between -86400000 and 86400000 msec.
Because TQTime measures time within a day and there are 86400 seconds in a day, the result is always between -86400000 and 86400000 msec.
.PP
See also secsTo().
.SH "bool QTime::operator!= ( const QTime & t ) const"
.SH "bool TQTime::operator!= ( const TQTime & t ) const"
Returns TRUE if this time is different from \fIt\fR; otherwise returns FALSE.
.SH "bool QTime::operator< ( const QTime & t ) const"
.SH "bool TQTime::operator< ( const TQTime & t ) const"
Returns TRUE if this time is earlier than \fIt\fR; otherwise returns FALSE.
.SH "bool QTime::operator<= ( const QTime & t ) const"
.SH "bool TQTime::operator<= ( const TQTime & t ) const"
Returns TRUE if this time is earlier than or equal to \fIt\fR; otherwise returns FALSE.
.SH "bool QTime::operator== ( const QTime & t ) const"
.SH "bool TQTime::operator== ( const TQTime & t ) const"
Returns TRUE if this time is equal to \fIt\fR; otherwise returns FALSE.
.SH "bool QTime::operator> ( const QTime & t ) const"
.SH "bool TQTime::operator> ( const TQTime & t ) const"
Returns TRUE if this time is later than \fIt\fR; otherwise returns FALSE.
.SH "bool QTime::operator>= ( const QTime & t ) const"
.SH "bool TQTime::operator>= ( const TQTime & t ) const"
Returns TRUE if this time is later than or equal to \fIt\fR; otherwise returns FALSE.
.SH "int QTime::restart ()"
.SH "int TQTime::restart ()"
Sets this time to the current time and returns the number of milliseconds that have elapsed since the last time start() or restart() was called.
.PP
This function is guaranteed to be atomic and is thus very handy for repeated measurements. Call start() to start the first measurement and then restart() for each later measurement.
@ -264,30 +264,30 @@ Note that the counter wraps to zero 24 hours after the last call to start() or r
\fBWarning:\fR If the system's clock setting has been changed since the last time start() or restart() was called, the result is undefined. This can happen when daylight savings time is turned on or off.
.PP
See also start(), elapsed(), and currentTime().
.SH "int QTime::second () const"
.SH "int TQTime::second () const"
Returns the second part (0..59) of the time.
.PP
Example: tictac/tictac.cpp.
.SH "int QTime::secsTo ( const QTime & t ) const"
.SH "int TQTime::secsTo ( const TQTime & t ) const"
Returns the number of seconds from this time to \fIt\fR (which is negative if \fIt\fR is earlier than this time).
.PP
Because QTime measures time within a day and there are 86400 seconds in a day, the result is always between -86400 and 86400.
Because TQTime measures time within a day and there are 86400 seconds in a day, the result is always between -86400 and 86400.
.PP
See also addSecs() and QDateTime::secsTo().
See also addSecs() and TQDateTime::secsTo().
.PP
Example: t12/cannon.cpp.
.SH "bool QTime::setHMS ( int h, int m, int s, int ms = 0 )"
.SH "bool TQTime::setHMS ( int h, int m, int s, int ms = 0 )"
Sets the time to hour \fIh\fR, minute \fIm\fR, seconds \fIs\fR and milliseconds \fIms\fR.
.PP
\fIh\fR must be in the range 0..23, \fIm\fR and \fIs\fR must be in the range 0..59, and \fIms\fR must be in the range 0..999. Returns TRUE if the set time is valid; otherwise returns FALSE.
.PP
See also isValid().
.SH "void QTime::start ()"
.SH "void TQTime::start ()"
Sets this time to the current time. This is practical for timing:
.PP
.nf
.br
QTime t;
TQTime t;
.br
t.start();
.br
@ -298,7 +298,7 @@ Sets this time to the current time. This is practical for timing:
.fi
.PP
See also restart(), elapsed(), and currentTime().
.SH "TQString QTime::toString ( const TQString & format ) const"
.SH "TQString TQTime::toString ( const TQString & format ) const"
Returns the time as a string. The \fIformat\fR parameter determines the format of the result string.
.PP
These expressions may be used:
@ -312,7 +312,7 @@ l - l. Expression Output h the hour without a leading zero (0..23 or 1..12 if AM
.PP
All other input characters will be ignored.
.PP
Example format strings (assuming that the QTime is 14:13:09.042)
Example format strings (assuming that the TQTime is 14:13:09.042)
.PP
<center>.nf
.TS
@ -323,8 +323,8 @@ l - l. Format Result hh:mm:ss.zzz 14:13:09.042 h:m:s ap
.PP
If the time is an invalid time, then TQString::null will be returned.
.PP
See also QDate::toString() and QDateTime::toString().
.SH "TQString QTime::toString ( TQt::DateFormat f = TQt::TextDate ) const"
See also TQDate::toString() and TQDateTime::toString().
.SH "TQString TQTime::toString ( TQt::DateFormat f = TQt::TextDate ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns the time as a string. Milliseconds are not included. The \fIf\fR parameter determines the format of the string.
@ -337,17 +337,17 @@ If \fIf\fR is TQt::LocalDate, the string format depends on the locale settings o
.PP
If the time is an invalid time, then TQString::null will be returned.
.BI "virtual void \fBsetTime\fR ( const QTime & time )"
.BI "virtual void \fBsetTime\fR ( const TQTime & time )"
.br
.in -1c
.SS "Signals"
.in +1c
.ti -1c
.BI "void \fBvalueChanged\fR ( const QTime & time )"
.BI "void \fBvalueChanged\fR ( const TQTime & time )"
.br
.in -1c
.SS "Properties"
@ -85,13 +85,13 @@ Inherits QDateTimeEditBase.
.BI "Display \fBdisplay\fR - the sections that are displayed in the time edit"
.br
.ti -1c
.BI "QTime \fBmaxValue\fR - the maximum time value"
.BI "TQTime \fBmaxValue\fR - the maximum time value"
.br
.ti -1c
.BI "QTime \fBminValue\fR - the minimum time value"
.BI "TQTime \fBminValue\fR - the minimum time value"
.br
.ti -1c
.BI "QTime \fBtime\fR - the editor's time value"
.BI "TQTime \fBtime\fR - the editor's time value"
.br
.in -1c
.SS "Protected Members"
@ -110,24 +110,24 @@ Inherits QDateTimeEditBase.
.br
.in -1c
.SH DESCRIPTION
The QTimeEdit class provides a time editor.
The TQTimeEdit class provides a time editor.
.PP
QTimeEdit allows the user to edit times by using the keyboard or the arrow keys to increase/decrease time values. The arrow keys can be used to move from section to section within the QTimeEdit box. The user can automatically be moved to the next section once they complete a section using setAutoAdvance(). Times appear in hour, minute, second order. It is recommended that the QTimeEdit is initialised with a time, e.g.
TQTimeEdit allows the user to edit times by using the keyboard or the arrow keys to increase/decrease time values. The arrow keys can be used to move from section to section within the TQTimeEdit box. The user can automatically be moved to the next section once they complete a section using setAutoAdvance(). Times appear in hour, minute, second order. It is recommended that the TQTimeEdit is initialised with a time, e.g.
.PP
.nf
.br
QTime timeNow = QTime::currentTime();
TQTime timeNow = TQTime::currentTime();
.br
QTimeEdit *timeEdit = new QTimeEdit( timeNow, this );
TQTimeEdit *timeEdit = new TQTimeEdit( timeNow, this );
Here we've created a QTimeEdit widget set to the current time. We've also set the minimum value to the current time and the maximum time to one hour from now.
Here we've created a TQTimeEdit widget set to the current time. We've also set the minimum value to the current time and the maximum time to one hour from now.
.PP
The maximum and minimum values for a time value in the time editor default to the maximum and minimum values for a QTime. You can change this by calling setMinValue(), setMaxValue() or setRange().
The maximum and minimum values for a time value in the time editor default to the maximum and minimum values for a TQTime. You can change this by calling setMinValue(), setMaxValue() or setRange().
.PP
Terminology: A QTimeWidget consists of three sections, one each for the hour, minute and second. You can change the separator character using setSeparator(), by default the separator is read from the system's settings.
Terminology: A TQTimeWidget consists of three sections, one each for the hour, minute and second. You can change the separator character using setSeparator(), by default the separator is read from the system's settings.
.PP
<center>
.ce 1
@ -135,64 +135,64 @@ Terminology: A QTimeWidget consists of three sections, one each for the hour, mi
.PP
</center>
.PP
See also QTime, QDateEdit, QDateTimeEdit, Advanced Widgets, and Time and Date.
See also TQTime, TQDateEdit, TQDateTimeEdit, Advanced Widgets, and Time and Date.
.SS "Member Type Documentation"
.SH "QTimeEdit::Display"
.SH "TQTimeEdit::Display"
This enum defines the sections that comprise a time
.TP
\fCQTimeEdit::Hours\fR - The hours section
\fCTQTimeEdit::Hours\fR - The hours section
.TP
\fCQTimeEdit::Minutes\fR - The minutes section
\fCTQTimeEdit::Minutes\fR - The minutes section
.TP
\fCQTimeEdit::Seconds\fR - The seconds section
\fCTQTimeEdit::Seconds\fR - The seconds section
.TP
\fCQTimeEdit::AMPM\fR - The AM/PM section
\fCTQTimeEdit::AMPM\fR - The AM/PM section
.PP
The values can be or'ed together to show any combination.
Sets the valid input range for the editor to be from \fImin\fR to \fImax\fR inclusive. If \fImin\fR is invalid no minimum time is set. Similarly, if \fImax\fR is invalid no maximum time is set.
.SH "void QTimeEdit::setSecond ( int s )\fC [virtual protected]\fR"
.SH "void TQTimeEdit::setSecond ( int s )\fC [virtual protected]\fR"
Sets the second to \fIs\fR, which must be a valid second, i.e. in the range 0..59.
.SH "void QTimeEdit::setSeparator ( const TQString & s )\fC [virtual]\fR"
.SH "void TQTimeEdit::setSeparator ( const TQString & s )\fC [virtual]\fR"
Sets the separator to \fIs\fR. Note that currently only the first character of \fIs\fR is used.
Sets the editor's time value to \fItime\fR. See the "time" property for details.
.SH "QTime QTimeEdit::time () const"
.SH "TQTime TQTimeEdit::time () const"
Returns the editor's time value. See the "time" property for details.
.SH "void QTimeEdit::valueChanged ( const QTime & time )\fC [signal]\fR"
.SH "void TQTimeEdit::valueChanged ( const TQTime & time )\fC [signal]\fR"
This signal is emitted whenever the editor's value changes. The \fItime\fR parameter is the new value.
.SS "Property Documentation"
.SH "bool autoAdvance"
@ -207,23 +207,23 @@ This property holds the sections that are displayed in the time edit.
The value can be any combination of the values in the Display enum. By default, the widget displays hours, minutes and seconds.
.PP
Set this property's value with setDisplay() and get this property's value with display().
.SH "QTime maxValue"
.SH "TQTime maxValue"
This property holds the maximum time value.
.PP
Setting the maximum time value is equivalent to calling QTimeEdit::setRange( minValue(), \fIt\fR ), where \fIt\fR is the maximum time. The default maximum time is 23:59:59.
Setting the maximum time value is equivalent to calling TQTimeEdit::setRange( minValue(), \fIt\fR ), where \fIt\fR is the maximum time. The default maximum time is 23:59:59.
.PP
See also minValue and setRange().
.PP
Set this property's value with setMaxValue() and get this property's value with maxValue().
.SH "QTime minValue"
.SH "TQTime minValue"
This property holds the minimum time value.
.PP
Setting the minimum time value is equivalent to calling QTimeEdit::setRange( \fIt\fR, maxValue() ), where \fIt\fR is the minimum time. The default minimum time is 00:00:00.
Setting the minimum time value is equivalent to calling TQTimeEdit::setRange( \fIt\fR, maxValue() ), where \fIt\fR is the minimum time. The default minimum time is 00:00:00.
.PP
See also maxValue and setRange().
.PP
Set this property's value with setMinValue() and get this property's value with minValue().
.SH "QTime time"
.SH "TQTime time"
This property holds the editor's time value.
.PP
When changing the time property, if the time is less than minValue(), or is greater than maxValue(), nothing happens.
@ -231,7 +231,7 @@ When changing the time property, if the time is less than minValue(), or is grea
Set this property's value with setTime() and get this property's value with time().
.SH "SEE ALSO"
.BR http://doc.trolltech.com/qtimeedit.html
.BR http://doc.trolltech.com/tqtimeedit.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
The QTimer class provides timer signals and single-shot timers.
The TQTimer class provides timer signals and single-shot timers.
.PP
It uses timer events internally to provide a more versatile timer. QTimer is very easy to use: create a QTimer, call start() to start it and connect its timeout() to the appropriate slots. When the time is up it will emit the timeout() signal.
It uses timer events internally to provide a more versatile timer. TQTimer is very easy to use: create a TQTimer, call start() to start it and connect its timeout() to the appropriate slots. When the time is up it will emit the timeout() signal.
.PP
Note that a QTimer object is destroyed automatically when its parent object is destroyed.
Note that a TQTimer object is destroyed automatically when its parent object is destroyed.
@ -86,34 +86,34 @@ This can be used to do heavy work while providing a snappy user interface:
.PP
myObject->processOneThing() will be called repeatedly and should return quickly (typically after processing one data item) so that TQt can deliver events to widgets and stop the timer as soon as it has done all its work. This is the traditional way of implementing heavy work in GUI applications; multi-threading is now becoming available on more and more platforms, and we expect that null events will eventually be replaced by threading.
.PP
Note that QTimer's accuracy depends on the underlying operating system and hardware. Most platforms support an accuracy of 20ms; some provide more. If TQt is unable to deliver the requested number of timer clicks, it will silently discard some.
Note that TQTimer's accuracy depends on the underlying operating system and hardware. Most platforms support an accuracy of 20ms; some provide more. If TQt is unable to deliver the requested number of timer clicks, it will silently discard some.
.PP
An alternative to using QTimer is to call TQObject::startTimer() for your object and reimplement the TQObject::timerEvent() event handler in your class (which must, of course, inherit TQObject). The disadvantage is that timerEvent() does not support such high-level features as single-shot timers or signals.
An alternative to using TQTimer is to call TQObject::startTimer() for your object and reimplement the TQObject::timerEvent() event handler in your class (which must, of course, inherit TQObject). The disadvantage is that timerEvent() does not support such high-level features as single-shot timers or signals.
.PP
Some operating systems limit the number of timers that may be used; TQt tries to work around these limitations.
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
.\" license file included in the distribution for a complete license
.\" statement.
@ -7,7 +7,7 @@
.ad l
.nh
.SH NAME
QTimerEvent \- Parameters that describe a timer event
TQTimerEvent \- Parameters that describe a timer event
.SH SYNOPSIS
\fC#include <ntqevent.h>\fR
.PP
@ -16,32 +16,32 @@ Inherits QEvent.
.SS "Public Members"
.in +1c
.ti -1c
.BI "\fBQTimerEvent\fR ( int timerId )"
.BI "\fBTQTimerEvent\fR ( int timerId )"
.br
.ti -1c
.BI "int \fBtimerId\fR () const"
.br
.in -1c
.SH DESCRIPTION
The QTimerEvent class contains parameters that describe a timer event.
The TQTimerEvent class contains parameters that describe a timer event.
.PP
Timer events are sent at regular intervals to objects that have started one or more timers. Each timer has a unique identifier. A timer is started with TQObject::startTimer().
.PP
The QTimer class provides a high-level programming interface that uses signals instead of events. It also provides one-shot timers.
The TQTimer class provides a high-level programming interface that uses signals instead of events. It also provides one-shot timers.
.PP
The event handler TQObject::timerEvent() receives timer events.
.PP
See also QTimer, TQObject::timerEvent(), TQObject::startTimer(), TQObject::killTimer(), TQObject::killTimers(), and Event Classes.
See also TQTimer, TQObject::timerEvent(), TQObject::startTimer(), TQObject::killTimer(), TQObject::killTimers(), and Event Classes.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QTimerEvent::QTimerEvent ( int timerId )"
.SH "TQTimerEvent::TQTimerEvent ( int timerId )"
Constructs a timer event object with the timer identifier set to \fItimerId\fR.
.SH "int QTimerEvent::timerId () const"
.SH "int TQTimerEvent::timerId () const"
Returns the unique timer identifier, which is the same identifier as returned from TQObject::startTimer().
.PP
Example: dclock/dclock.cpp.
.SH "SEE ALSO"
.BR http://doc.trolltech.com/qtimerevent.html
.BR http://doc.trolltech.com/tqtimerevent.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
Constructs a QUrlInfo object by specifying all the URL's information.
.PP
The information that is passed is the \fIname\fR, file \fIpermissions\fR, \fIowner\fR and \fIgroup\fR and the file's \fIsize\fR. Also passed is the \fIlastModified\fR date/time and the \fIlastRead\fR date/time. Flags are also passed, specifically, \fIisDir\fR, \fIisFile\fR, \fIisSymLink\fR, \fIisWritable\fR, \fIisReadable\fR and \fIisExecutable\fR.
Constructs a QUrlInfo object by specifying all the URL's information.
.PP
The information that is passed is the \fIurl\fR, file \fIpermissions\fR, \fIowner\fR and \fIgroup\fR and the file's \fIsize\fR. Also passed is the \fIlastModified\fR date/time and the \fIlastRead\fR date/time. Flags are also passed, specifically, \fIisDir\fR, \fIisFile\fR, \fIisSymLink\fR, \fIisWritable\fR, \fIisReadable\fR and \fIisExecutable\fR.
@ -225,13 +225,13 @@ You should always check if the URL info is valid before relying on the values.
Returns TRUE if the URL is writable; otherwise returns FALSE.
.PP
See also isValid().
.SH "QDateTime QUrlInfo::lastModified () const"
.SH "TQDateTime QUrlInfo::lastModified () const"
Returns the last modification date of the URL.
.PP
See also isValid().
.PP
Example: network/ftpclient/ftpmainwindow.ui.h.
.SH "QDateTime QUrlInfo::lastRead () const"
.SH "TQDateTime QUrlInfo::lastRead () const"
Returns the date when the URL was last read.
.PP
See also isValid().
@ -277,7 +277,7 @@ Specifies that the owning group of the URL is called \fIs\fR.
If you call this function for an invalid URL info, this function turns it into a valid one.
Returns the variant as a TQDateTime if the variant can be cast to DateTime; otherwise returns an invalid TQDateTime.
.PP
Note that if the type() is String, CString or ByteArray an invalid QDateTime will be returned if the string cannot be parsed as a TQt::ISODate format date/time.
Note that if the type() is String, CString or ByteArray an invalid TQDateTime will be returned if the string cannot be parsed as a TQt::ISODate format date/time.