summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqspinbox.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqspinbox.3qt')
-rw-r--r--doc/man/man3/tqspinbox.3qt94
1 files changed, 47 insertions, 47 deletions
diff --git a/doc/man/man3/tqspinbox.3qt b/doc/man/man3/tqspinbox.3qt
index e2ba3af3..381cc254 100644
--- a/doc/man/man3/tqspinbox.3qt
+++ b/doc/man/man3/tqspinbox.3qt
@@ -11,36 +11,36 @@ QSpinBox \- Spin box widget (spin button)
.SH SYNOPSIS
\fC#include <ntqspinbox.h>\fR
.PP
-Inherits QWidget and QRangeControl.
+Inherits TQWidget and QRangeControl.
.PP
.SS "Public Members"
.in +1c
.ti -1c
-.BI "\fBQSpinBox\fR ( QWidget * parent = 0, const char * name = 0 )"
+.BI "\fBQSpinBox\fR ( TQWidget * parent = 0, const char * name = 0 )"
.br
.ti -1c
-.BI "\fBQSpinBox\fR ( int minValue, int maxValue, int step = 1, QWidget * parent = 0, const char * name = 0 )"
+.BI "\fBQSpinBox\fR ( int minValue, int maxValue, int step = 1, TQWidget * parent = 0, const char * name = 0 )"
.br
.ti -1c
.BI "\fB~QSpinBox\fR ()"
.br
.ti -1c
-.BI "QString \fBtext\fR () const"
+.BI "TQString \fBtext\fR () const"
.br
.ti -1c
-.BI "virtual QString \fBprefix\fR () const"
+.BI "virtual TQString \fBprefix\fR () const"
.br
.ti -1c
-.BI "virtual QString \fBsuffix\fR () const"
+.BI "virtual TQString \fBsuffix\fR () const"
.br
.ti -1c
-.BI "virtual QString \fBcleanText\fR () const"
+.BI "virtual TQString \fBcleanText\fR () const"
.br
.ti -1c
-.BI "virtual void \fBsetSpecialValueText\fR ( const QString & text )"
+.BI "virtual void \fBsetSpecialValueText\fR ( const TQString & text )"
.br
.ti -1c
-.BI "QString \fBspecialValueText\fR () const"
+.BI "TQString \fBspecialValueText\fR () const"
.br
.ti -1c
.BI "virtual void \fBsetWrapping\fR ( bool on )"
@@ -97,10 +97,10 @@ Inherits QWidget and QRangeControl.
.BI "virtual void \fBsetValue\fR ( int value )"
.br
.ti -1c
-.BI "virtual void \fBsetPrefix\fR ( const QString & text )"
+.BI "virtual void \fBsetPrefix\fR ( const TQString & text )"
.br
.ti -1c
-.BI "virtual void \fBsetSuffix\fR ( const QString & text )"
+.BI "virtual void \fBsetSuffix\fR ( const TQString & text )"
.br
.ti -1c
.BI "virtual void \fBstepUp\fR ()"
@@ -118,7 +118,7 @@ Inherits QWidget and QRangeControl.
.BI "void \fBvalueChanged\fR ( int value )"
.br
.ti -1c
-.BI "void \fBvalueChanged\fR ( const QString & valueText )"
+.BI "void \fBvalueChanged\fR ( const TQString & valueText )"
.br
.in -1c
.SS "Properties"
@@ -127,7 +127,7 @@ Inherits QWidget and QRangeControl.
.BI "ButtonSymbols \fBbuttonSymbols\fR - the current button symbol mode"
.br
.ti -1c
-.BI "QString \fBcleanText\fR - the spin box's text with no prefix(), suffix() or leading or trailing whitespace \fI(read " "only" ")\fR"
+.BI "TQString \fBcleanText\fR - the spin box's text with no prefix(), suffix() or leading or trailing whitespace \fI(read " "only" ")\fR"
.br
.ti -1c
.BI "int \fBlineStep\fR - the line step"
@@ -139,16 +139,16 @@ Inherits QWidget and QRangeControl.
.BI "int \fBminValue\fR - the minimum value of the spin box"
.br
.ti -1c
-.BI "QString \fBprefix\fR - the spin box's prefix"
+.BI "TQString \fBprefix\fR - the spin box's prefix"
.br
.ti -1c
-.BI "QString \fBspecialValueText\fR - the special-value text"
+.BI "TQString \fBspecialValueText\fR - the special-value text"
.br
.ti -1c
-.BI "QString \fBsuffix\fR - the suffix of the spin box"
+.BI "TQString \fBsuffix\fR - the suffix of the spin box"
.br
.ti -1c
-.BI "QString \fBtext\fR - the spin box's " "text" ", including any prefix() and suffix() \fI(read " "only" ")\fR"
+.BI "TQString \fBtext\fR - the spin box's " "text" ", including any prefix() and suffix() \fI(read " "only" ")\fR"
.br
.ti -1c
.BI "int \fBvalue\fR - the value of the spin box"
@@ -160,13 +160,13 @@ Inherits QWidget and QRangeControl.
.SS "Protected Members"
.in +1c
.ti -1c
-.BI "virtual QString \fBmapValueToText\fR ( int v )"
+.BI "virtual TQString \fBmapValueToText\fR ( int v )"
.br
.ti -1c
.BI "virtual int \fBmapTextToValue\fR ( bool * ok )"
.br
.ti -1c
-.BI "QString \fBcurrentValueText\fR ()"
+.BI "TQString \fBcurrentValueText\fR ()"
.br
.ti -1c
.BI "virtual void \fBupdateDisplay\fR ()"
@@ -184,7 +184,7 @@ Inherits QWidget and QRangeControl.
.BI "virtual void \fBrangeChange\fR ()"
.br
.ti -1c
-.BI "virtual bool \fBeventFilter\fR ( QObject * o, QEvent * ev )"
+.BI "virtual bool \fBeventFilter\fR ( TQObject * o, QEvent * ev )"
.br
.in -1c
.SS "Protected Slots"
@@ -210,7 +210,7 @@ Normally the spin box displays up and down arrows in the buttons. You can use se
.PP
It is often desirable to give the user a special (often default) choice in addition to the range of numeric values. See setSpecialValueText() for how to do this with QSpinBox.
.PP
-The default QWidget::focusPolicy() is StrongFocus.
+The default TQWidget::focusPolicy() is StrongFocus.
.PP
If using prefix(), suffix() and specialValueText() don't provide enough control, you can ignore them and subclass QSpinBox instead.
.PP
@@ -231,16 +231,16 @@ For example, these functions could be changed so that the user provided values f
...
.br
.br
- QString mapValueToText( int value )
+ TQString mapValueToText( int value )
.br
{
.br
if ( value == -1 ) // special case
.br
- return QString( "Auto" );
+ return TQString( "Auto" );
.br
.br
- return QString( "%1.%2" ) // 0.0 to 10.0
+ return TQString( "%1.%2" ) // 0.0 to 10.0
.br
.arg( value / 10 ).arg( value % 10 );
.br
@@ -282,11 +282,11 @@ This enum type determines what the buttons in a spin box show.
.PP
See also QSpinBox::buttonSymbols.
.SH MEMBER FUNCTION DOCUMENTATION
-.SH "QSpinBox::QSpinBox ( QWidget * parent = 0, const char * name = 0 )"
+.SH "QSpinBox::QSpinBox ( TQWidget * parent = 0, const char * name = 0 )"
Constructs a spin box with the default QRangeControl range and step values. It is called \fIname\fR and has parent \fIparent\fR.
.PP
See also minValue, maxValue, setRange(), lineStep, and setSteps().
-.SH "QSpinBox::QSpinBox ( int minValue, int maxValue, int step = 1, QWidget * parent = 0, const char * name = 0 )"
+.SH "QSpinBox::QSpinBox ( int minValue, int maxValue, int step = 1, TQWidget * parent = 0, const char * name = 0 )"
Constructs a spin box that allows values from \fIminValue\fR to \fImaxValue\fR inclusive, with step amount \fIstep\fR. The value is initially set to \fIminValue\fR.
.PP
The spin box is called \fIname\fR and has parent \fIparent\fR.
@@ -296,18 +296,18 @@ See also minValue, maxValue, setRange(), lineStep, and setSteps().
Destroys the spin box, freeing all memory and other resources.
.SH "ButtonSymbols QSpinBox::buttonSymbols () const"
Returns the current button symbol mode. See the "buttonSymbols" property for details.
-.SH "QString QSpinBox::cleanText () const\fC [virtual]\fR"
+.SH "TQString QSpinBox::cleanText () const\fC [virtual]\fR"
Returns the spin box's text with no prefix(), suffix() or leading or trailing whitespace. See the "cleanText" property for details.
-.SH "QString QSpinBox::currentValueText ()\fC [protected]\fR"
+.SH "TQString QSpinBox::currentValueText ()\fC [protected]\fR"
Returns the full text calculated from the current value, including any prefix and suffix. If there is special value text and the value is minValue() the specialValueText() is returned.
.SH "QRect QSpinBox::downRect () const"
Returns the geometry of the "down" button.
.SH "QLineEdit * QSpinBox::editor () const\fC [protected]\fR"
Returns a pointer to the embedded QLineEdit.
-.SH "bool QSpinBox::eventFilter ( QObject * o, QEvent * ev )\fC [virtual protected]\fR"
+.SH "bool QSpinBox::eventFilter ( TQObject * o, QEvent * ev )\fC [virtual protected]\fR"
Intercepts and handles the events coming to the embedded QLineEdit that have special meaning for the QSpinBox. The object is passed as \fIo\fR and the event is passed as \fIev\fR.
.PP
-Reimplemented from QObject.
+Reimplemented from TQObject.
.SH "void QSpinBox::interpretText ()\fC [virtual protected]\fR"
QSpinBox calls this after the user has manually edited the contents of the spin box (i.e. by typing in the embedded QLineEdit, rather than using the up/down buttons/keys).
.PP
@@ -326,7 +326,7 @@ Note that TQt handles specialValueText() separately; this function is only conce
The default implementation tries to interpret the text() as an integer in the standard way and returns the integer value.
.PP
See also interpretText() and mapValueToText().
-.SH "QString QSpinBox::mapValueToText ( int v )\fC [virtual protected]\fR"
+.SH "TQString QSpinBox::mapValueToText ( int v )\fC [virtual protected]\fR"
This virtual function is used by the spin box whenever it needs to display value \fIv\fR. The default implementation returns a string containing \fIv\fR printed in the standard way. Reimplementations may return anything. (See the example in the detailed description.)
.PP
Note that TQt does not call this function for specialValueText() and that neither prefix() nor suffix() are included in the return value.
@@ -338,7 +338,7 @@ See also updateDisplay() and mapTextToValue().
Returns the maximum value of the spin box. See the "maxValue" property for details.
.SH "int QSpinBox::minValue () const"
Returns the minimum value of the spin box. See the "minValue" property for details.
-.SH "QString QSpinBox::prefix () const\fC [virtual]\fR"
+.SH "TQString QSpinBox::prefix () const\fC [virtual]\fR"
Returns the spin box's prefix. See the "prefix" property for details.
.SH "void QSpinBox::rangeChange ()\fC [virtual protected]\fR"
This virtual function is called by QRangeControl whenever the range has changed. It adjusts the default validator and updates the display; if you need additional processing, you can reimplement this function.
@@ -354,11 +354,11 @@ Sets the line step. See the "lineStep" property for details.
Sets the maximum value of the spin box. See the "maxValue" property for details.
.SH "void QSpinBox::setMinValue ( int )"
Sets the minimum value of the spin box. See the "minValue" property for details.
-.SH "void QSpinBox::setPrefix ( const QString & text )\fC [virtual slot]\fR"
+.SH "void QSpinBox::setPrefix ( const TQString & text )\fC [virtual slot]\fR"
Sets the spin box's prefix to \fItext\fR. See the "prefix" property for details.
-.SH "void QSpinBox::setSpecialValueText ( const QString & text )\fC [virtual]\fR"
+.SH "void QSpinBox::setSpecialValueText ( const TQString & text )\fC [virtual]\fR"
Sets the special-value text to \fItext\fR. See the "specialValueText" property for details.
-.SH "void QSpinBox::setSuffix ( const QString & text )\fC [virtual slot]\fR"
+.SH "void QSpinBox::setSuffix ( const TQString & text )\fC [virtual slot]\fR"
Sets the suffix of the spin box to \fItext\fR. See the "suffix" property for details.
.SH "void QSpinBox::setValidator ( const QValidator * v )\fC [virtual]\fR"
Sets the validator to \fIv\fR. The validator controls what keyboard input is accepted when the user is editing in the value field. The default is to use a suitable QIntValidator.
@@ -368,7 +368,7 @@ Use setValidator(0) to turn off input validation (entered input will still be ke
Sets the value of the spin box to \fIvalue\fR. See the "value" property for details.
.SH "void QSpinBox::setWrapping ( bool on )\fC [virtual]\fR"
Sets whether it is possible to step the value from the highest value to the lowest value and vice versa to \fIon\fR. See the "wrapping" property for details.
-.SH "QString QSpinBox::specialValueText () const"
+.SH "TQString QSpinBox::specialValueText () const"
Returns the special-value text. See the "specialValueText" property for details.
.SH "void QSpinBox::stepDown ()\fC [virtual slot]\fR"
Decreases the spin box's value one lineStep(), wrapping as necessary if wrapping() is TRUE. This is the same as clicking on the pointing-down button and can be used for keyboard accelerators, for example.
@@ -378,9 +378,9 @@ See also stepUp(), subtractLine(), lineStep, setSteps(), value, and value.
Increases the spin box's value by one lineStep(), wrapping as necessary if wrapping() is TRUE. This is the same as clicking on the pointing-up button and can be used for keyboard accelerators, for example.
.PP
See also stepDown(), addLine(), lineStep, setSteps(), value, and value.
-.SH "QString QSpinBox::suffix () const\fC [virtual]\fR"
+.SH "TQString QSpinBox::suffix () const\fC [virtual]\fR"
Returns the suffix of the spin box. See the "suffix" property for details.
-.SH "QString QSpinBox::text () const"
+.SH "TQString QSpinBox::text () const"
Returns the spin box's text, including any prefix() and suffix(). See the "text" property for details.
.SH "void QSpinBox::textChanged ()\fC [protected slot]\fR"
This slot is called whenever the user edits the spin box's text.
@@ -409,7 +409,7 @@ See also value.
.PP
Examples:
.)l listbox/listbox.cpp, qfd/fontdisplayer.cpp, and scribble/scribble.cpp.
-.SH "void QSpinBox::valueChanged ( const QString & valueText )\fC [signal]\fR"
+.SH "void QSpinBox::valueChanged ( const TQString & valueText )\fC [signal]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
This signal is emitted whenever the valueChanged( int ) signal is emitted, i.e. every time the value of the spin box changes (whatever the cause, e.g. by setValue(), by a keyboard accelerator, by mouse clicks, etc.).
@@ -428,7 +428,7 @@ The possible values can be either UpDownArrows or PlusMinus. The default is UpDo
See also ButtonSymbols.
.PP
Set this property's value with setButtonSymbols() and get this property's value with buttonSymbols().
-.SH "QString cleanText"
+.SH "TQString cleanText"
This property holds the spin box's text with no prefix(), suffix() or leading or trailing whitespace.
.PP
Get this property's value with cleanText().
@@ -460,7 +460,7 @@ When setting this property, QSpinBox::maxValue is adjusted, if necessary, to ens
See also setRange() and specialValueText.
.PP
Set this property's value with setMinValue() and get this property's value with minValue().
-.SH "QString prefix"
+.SH "TQString prefix"
This property holds the spin box's prefix.
.PP
The prefix is prepended to the start of the displayed value. Typical use is to display a unit of measurement or a currency symbol. For example:
@@ -473,12 +473,12 @@ The prefix is prepended to the start of the displayed value. Typical use is to d
.PP
To turn off the prefix display, set this property to an empty string. The default is no prefix. The prefix is not displayed for the minValue() if specialValueText() is not empty.
.PP
-If no prefix is set, prefix() returns QString::null.
+If no prefix is set, prefix() returns TQString::null.
.PP
See also suffix.
.PP
Set this property's value with setPrefix() and get this property's value with prefix().
-.SH "QString specialValueText"
+.SH "TQString specialValueText"
This property holds the special-value text.
.PP
If set, the spin box will display this text instead of a numeric value whenever the current value is equal to minVal(). Typical use is to indicate that this choice has a special (default) meaning.
@@ -500,10 +500,10 @@ All values are displayed with the prefix() and suffix() (if set), \fIexcept\fR f
.PP
To turn off the special-value text display, call this function with an empty string. The default is no special-value text, i.e. the numeric value is shown as usual.
.PP
-If no special-value text is set, specialValueText() returns QString::null.
+If no special-value text is set, specialValueText() returns TQString::null.
.PP
Set this property's value with setSpecialValueText() and get this property's value with specialValueText().
-.SH "QString suffix"
+.SH "TQString suffix"
This property holds the suffix of the spin box.
.PP
The suffix is appended to the end of the displayed value. Typical use is to display a unit of measurement or a currency symbol. For example:
@@ -516,12 +516,12 @@ The suffix is appended to the end of the displayed value. Typical use is to disp
.PP
To turn off the suffix display, set this property to an empty string. The default is no suffix. The suffix is not displayed for the minValue() if specialValueText() is not empty.
.PP
-If no suffix is set, suffix() returns a QString::null.
+If no suffix is set, suffix() returns a TQString::null.
.PP
See also prefix.
.PP
Set this property's value with setSuffix() and get this property's value with suffix().
-.SH "QString text"
+.SH "TQString text"
This property holds the spin box's text, including any prefix() and suffix().
.PP
There is no default text.