diff options
Diffstat (limited to 'doc/man/man3/tqtimeedit.3qt')
-rw-r--r-- | doc/man/man3/tqtimeedit.3qt | 116 |
1 files changed, 58 insertions, 58 deletions
diff --git a/doc/man/man3/tqtimeedit.3qt b/doc/man/man3/tqtimeedit.3qt index 5d832cf8d..2f57919fa 100644 --- a/doc/man/man3/tqtimeedit.3qt +++ b/doc/man/man3/tqtimeedit.3qt @@ -1,5 +1,5 @@ '\" t -.TH QTimeEdit 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQTimeEdit 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- .\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the .\" license file included in the distribution for a complete license .\" statement. @@ -7,11 +7,11 @@ .ad l .nh .SH NAME -QTimeEdit \- Time editor +TQTimeEdit \- Time editor .SH SYNOPSIS -\fC#include <ntqdatetimeedit.h>\fR +\fC#include <tqdatetimeedit.h>\fR .PP -Inherits QDateTimeEditBase. +Inherits TQDateTimeEditBase. .PP .SS "Public Members" .in +1c @@ -19,16 +19,16 @@ Inherits QDateTimeEditBase. .BI "enum \fBDisplay\fR { Hours = 0x01, Minutes = 0x02, Seconds = 0x04, AMPM = 0x10 }" .br .ti -1c -.BI "\fBQTimeEdit\fR ( TQWidget * parent = 0, const char * name = 0 )" +.BI "\fBTQTimeEdit\fR ( TQWidget * parent = 0, const char * name = 0 )" .br .ti -1c -.BI "\fBQTimeEdit\fR ( const QTime & time, TQWidget * parent = 0, const char * name = 0 )" +.BI "\fBTQTimeEdit\fR ( const TQTime & time, TQWidget * parent = 0, const char * name = 0 )" .br .ti -1c -.BI "\fB~QTimeEdit\fR ()" +.BI "\fB~TQTimeEdit\fR ()" .br .ti -1c -.BI "QTime \fBtime\fR () const" +.BI "TQTime \fBtime\fR () const" .br .ti -1c .BI "virtual void \fBsetAutoAdvance\fR ( bool advance )" @@ -37,19 +37,19 @@ Inherits QDateTimeEditBase. .BI "bool \fBautoAdvance\fR () const" .br .ti -1c -.BI "virtual void \fBsetMinValue\fR ( const QTime & d )" +.BI "virtual void \fBsetMinValue\fR ( const TQTime & d )" .br .ti -1c -.BI "QTime \fBminValue\fR () const" +.BI "TQTime \fBminValue\fR () const" .br .ti -1c -.BI "virtual void \fBsetMaxValue\fR ( const QTime & d )" +.BI "virtual void \fBsetMaxValue\fR ( const TQTime & d )" .br .ti -1c -.BI "QTime \fBmaxValue\fR () const" +.BI "TQTime \fBmaxValue\fR () const" .br .ti -1c -.BI "virtual void \fBsetRange\fR ( const QTime & min, const QTime & max )" +.BI "virtual void \fBsetRange\fR ( const TQTime & min, const TQTime & max )" .br .ti -1c .BI "TQString \fBseparator\fR () const" @@ -67,13 +67,13 @@ Inherits QDateTimeEditBase. .SS "Public Slots" .in +1c .ti -1c -.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 ); .br timeEdit->setRange( timeNow, timeNow.addSecs( 60 * 60 ) ); .br .fi -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. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QTimeEdit::QTimeEdit ( TQWidget * parent = 0, const char * name = 0 )" +.SH "TQTimeEdit::TQTimeEdit ( TQWidget * parent = 0, const char * name = 0 )" Constructs an empty time edit with parent \fIparent\fR and called \fIname\fR. -.SH "QTimeEdit::QTimeEdit ( const QTime & time, TQWidget * parent = 0, const char * name = 0 )" +.SH "TQTimeEdit::TQTimeEdit ( const TQTime & time, TQWidget * parent = 0, const char * name = 0 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Constructs a time edit with the initial time value, \fItime\fR, parent \fIparent\fR and called \fIname\fR. -.SH "QTimeEdit::~QTimeEdit ()" +.SH "TQTimeEdit::~TQTimeEdit ()" Destroys the object and frees any allocated resources. -.SH "bool QTimeEdit::autoAdvance () const" +.SH "bool TQTimeEdit::autoAdvance () const" Returns TRUE if the editor automatically advances to the next section; otherwise returns FALSE. See the "autoAdvance" property for details. -.SH "uint QTimeEdit::display () const" +.SH "uint TQTimeEdit::display () const" Returns the sections that are displayed in the time edit. See the "display" property for details. -.SH "QTime QTimeEdit::maxValue () const" +.SH "TQTime TQTimeEdit::maxValue () const" Returns the maximum time value. See the "maxValue" property for details. -.SH "QTime QTimeEdit::minValue () const" +.SH "TQTime TQTimeEdit::minValue () const" Returns the minimum time value. See the "minValue" property for details. -.SH "TQString QTimeEdit::sectionFormattedText ( int sec )\fC [virtual protected]\fR" +.SH "TQString TQTimeEdit::sectionFormattedText ( int sec )\fC [virtual protected]\fR" Returns the formatted number for section \fIsec\fR. This will correspond to either the hour, minute or second section, depending on \fIsec\fR. -.SH "TQString QTimeEdit::separator () const" +.SH "TQString TQTimeEdit::separator () const" Returns the editor's separator. -.SH "void QTimeEdit::setAutoAdvance ( bool advance )\fC [virtual]\fR" +.SH "void TQTimeEdit::setAutoAdvance ( bool advance )\fC [virtual]\fR" Sets whether the editor automatically advances to the next section to \fIadvance\fR. See the "autoAdvance" property for details. -.SH "void QTimeEdit::setDisplay ( uint disp )" +.SH "void TQTimeEdit::setDisplay ( uint disp )" Sets the sections that are displayed in the time edit to \fIdisp\fR. See the "display" property for details. -.SH "void QTimeEdit::setHour ( int h )\fC [virtual protected]\fR" +.SH "void TQTimeEdit::setHour ( int h )\fC [virtual protected]\fR" Sets the hour to \fIh\fR, which must be a valid hour, i.e. in the range 0..24. -.SH "void QTimeEdit::setMaxValue ( const QTime & d )\fC [virtual]\fR" +.SH "void TQTimeEdit::setMaxValue ( const TQTime & d )\fC [virtual]\fR" Sets the maximum time value to \fId\fR. See the "maxValue" property for details. -.SH "void QTimeEdit::setMinValue ( const QTime & d )\fC [virtual]\fR" +.SH "void TQTimeEdit::setMinValue ( const TQTime & d )\fC [virtual]\fR" Sets the minimum time value to \fId\fR. See the "minValue" property for details. -.SH "void QTimeEdit::setMinute ( int m )\fC [virtual protected]\fR" +.SH "void TQTimeEdit::setMinute ( int m )\fC [virtual protected]\fR" Sets the minute to \fIm\fR, which must be a valid minute, i.e. in the range 0..59. -.SH "void QTimeEdit::setRange ( const QTime & min, const QTime & max )\fC [virtual]\fR" +.SH "void TQTimeEdit::setRange ( const TQTime & min, const TQTime & max )\fC [virtual]\fR" 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. -.SH "void QTimeEdit::setTime ( const QTime & time )\fC [virtual slot]\fR" +.SH "void TQTimeEdit::setTime ( const TQTime & time )\fC [virtual slot]\fR" 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 |