summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqlineedit.3qt
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-07-26 11:44:58 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-07-30 14:26:34 +0900
commit6dd781c483eea56f51ae0eff47d857976b5d0f0d (patch)
tree0ddd4408e142ae6f8b13d3538359abd127988b2f /doc/man/man3/tqlineedit.3qt
parentff56b6fec14de4cd4b89d5b322531671d200b6e0 (diff)
downloadtqt-6dd781c483eea56f51ae0eff47d857976b5d0f0d.tar.gz
tqt-6dd781c483eea56f51ae0eff47d857976b5d0f0d.zip
Replace TRUE/FALSE with boolean values true/false - part 3
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/man/man3/tqlineedit.3qt')
-rw-r--r--doc/man/man3/tqlineedit.3qt44
1 files changed, 22 insertions, 22 deletions
diff --git a/doc/man/man3/tqlineedit.3qt b/doc/man/man3/tqlineedit.3qt
index 4b2e530ac..9b98a5554 100644
--- a/doc/man/man3/tqlineedit.3qt
+++ b/doc/man/man3/tqlineedit.3qt
@@ -292,7 +292,7 @@ You can change the text with setText() or insert(). The text is retrieved with t
.PP
When the text changes the textChanged() signal is emitted; when the Return or Enter key is pressed the returnPressed() signal is emitted. Note that if there is a validator set on the line edit, the returnPressed() signal will only be emitted if the validator returns \fCAcceptable\fR.
.PP
-By default, TQLineEdits have a frame as specified by the Windows and Motif style guides; you can turn it off by calling setFrame(FALSE).
+By default, TQLineEdits have a frame as specified by the Windows and Motif style guides; you can turn it off by calling setFrame(false).
.PP
The default key bindings are described below. The line edit also provides a context menu (usually invoked by a right mouse click) that presents some of these editing options. <center>.nf
.TS
@@ -360,7 +360,7 @@ See also del().
.SH "void TQLineEdit::clear ()\fC [virtual slot]\fR"
Clears the contents of the line edit.
.SH "void TQLineEdit::clearModified ()"
-Resets the modified flag to FALSE.
+Resets the modified flag to false.
.PP
See also modified.
.SH "void TQLineEdit::clearValidator ()\fC [virtual slot]\fR"
@@ -372,21 +372,21 @@ See also cut() and paste().
.SH "TQPopupMenu * TQLineEdit::createPopupMenu ()\fC [virtual protected]\fR"
This function is called to create the popup menu which is shown when the user clicks on the line edit with the right mouse button. If you want to create a custom popup menu, reimplement this function and return the popup menu you create. The popup menu's ownership is transferred to the caller.
.SH "void TQLineEdit::cursorBackward ( bool mark, int steps = 1 )"
-Moves the cursor back \fIsteps\fR characters. If \fImark\fR is TRUE each character moved over is added to the selection; if \fImark\fR is FALSE the selection is cleared.
+Moves the cursor back \fIsteps\fR characters. If \fImark\fR is true each character moved over is added to the selection; if \fImark\fR is false the selection is cleared.
.PP
See also cursorForward().
.SH "void TQLineEdit::cursorForward ( bool mark, int steps = 1 )"
-Moves the cursor forward \fIsteps\fR characters. If \fImark\fR is TRUE each character moved over is added to the selection; if \fImark\fR is FALSE the selection is cleared.
+Moves the cursor forward \fIsteps\fR characters. If \fImark\fR is true each character moved over is added to the selection; if \fImark\fR is false the selection is cleared.
.PP
See also cursorBackward().
.SH "int TQLineEdit::cursorPosition () const"
Returns the current cursor position for this line edit. See the "cursorPosition" property for details.
.SH "void TQLineEdit::cursorWordBackward ( bool mark )"
-Moves the cursor one word backward. If \fImark\fR is TRUE, the word is also selected.
+Moves the cursor one word backward. If \fImark\fR is true, the word is also selected.
.PP
See also cursorWordForward().
.SH "void TQLineEdit::cursorWordForward ( bool mark )"
-Moves the cursor one word forward. If \fImark\fR is TRUE, the word is also selected.
+Moves the cursor one word forward. If \fImark\fR is true, the word is also selected.
.PP
See also cursorWordBackward().
.SH "void TQLineEdit::cut ()\fC [virtual slot]\fR"
@@ -406,25 +406,25 @@ See also setSelection() and selectAll().
.SH "TQString TQLineEdit::displayText () const"
Returns the displayed text. See the "displayText" property for details.
.SH "bool TQLineEdit::dragEnabled () const"
-Returns TRUE if the lineedit starts a drag if the user presses and moves the mouse on some selected text; otherwise returns FALSE. See the "dragEnabled" property for details.
+Returns true if the lineedit starts a drag if the user presses and moves the mouse on some selected text; otherwise returns false. See the "dragEnabled" property for details.
.SH "EchoMode TQLineEdit::echoMode () const"
Returns the line edit's echo mode. See the "echoMode" property for details.
.SH "bool TQLineEdit::edited () const"
-Returns TRUE if the line edit has been edited. Use modified instead; otherwise returns FALSE. See the "edited" property for details.
+Returns true if the line edit has been edited. Use modified instead; otherwise returns false. See the "edited" property for details.
.SH "void TQLineEdit::end ( bool mark )"
-Moves the text cursor to the end of the line unless it is already there. If \fImark\fR is TRUE, text is selected towards the last position; otherwise, any selected text is unselected if the cursor is moved.
+Moves the text cursor to the end of the line unless it is already there. If \fImark\fR is true, text is selected towards the last position; otherwise, any selected text is unselected if the cursor is moved.
.PP
See also home().
.SH "bool TQLineEdit::frame () const"
-Returns TRUE if the line edit draws itself with a frame; otherwise returns FALSE. See the "frame" property for details.
+Returns true if the line edit draws itself with a frame; otherwise returns false. See the "frame" property for details.
.SH "bool TQLineEdit::getSelection ( int * start, int * end )"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. use selectedText(), selectionStart()
.SH "bool TQLineEdit::hasAcceptableInput () const"
-Returns TRUE if the input satisfies the inputMask and the validator; otherwise returns FALSE. See the "acceptableInput" property for details.
+Returns true if the input satisfies the inputMask and the validator; otherwise returns false. See the "acceptableInput" property for details.
.SH "bool TQLineEdit::hasSelectedText () const"
-Returns TRUE if there is any text selected; otherwise returns FALSE. See the "hasSelectedText" property for details.
+Returns true if there is any text selected; otherwise returns false. See the "hasSelectedText" property for details.
.SH "void TQLineEdit::home ( bool mark )"
-Moves the text cursor to the beginning of the line unless it is already there. If \fImark\fR is TRUE, text is selected towards the first position; otherwise, any selected text is unselected if the cursor is moved.
+Moves the text cursor to the beginning of the line unless it is already there. If \fImark\fR is true, text is selected towards the first position; otherwise, any selected text is unselected if the cursor is moved.
.PP
See also end().
.SH "TQString TQLineEdit::inputMask () const"
@@ -432,13 +432,13 @@ Returns the validation input mask. See the "inputMask" property for details.
.SH "void TQLineEdit::insert ( const TQString & newText )\fC [virtual slot]\fR"
Deletes any selected text, inserts \fInewText\fR, and validates the result. If it is valid, it sets it as the new contents of the line edit.
.SH "bool TQLineEdit::isModified () const"
-Returns TRUE if the line edit's contents has been modified by the user; otherwise returns FALSE. See the "modified" property for details.
+Returns true if the line edit's contents has been modified by the user; otherwise returns false. See the "modified" property for details.
.SH "bool TQLineEdit::isReadOnly () const"
-Returns TRUE if the line edit is read only; otherwise returns FALSE. See the "readOnly" property for details.
+Returns true if the line edit is read only; otherwise returns false. See the "readOnly" property for details.
.SH "bool TQLineEdit::isRedoAvailable () const"
-Returns TRUE if redo is available; otherwise returns FALSE. See the "redoAvailable" property for details.
+Returns true if redo is available; otherwise returns false. See the "redoAvailable" property for details.
.SH "bool TQLineEdit::isUndoAvailable () const"
-Returns TRUE if undo is available; otherwise returns FALSE. See the "undoAvailable" property for details.
+Returns true if undo is available; otherwise returns false. See the "undoAvailable" property for details.
.SH "void TQLineEdit::keyPressEvent ( TQKeyEvent * e )\fC [virtual protected]\fR"
Converts key press event \fIe\fR into a line edit action.
.PP
@@ -603,7 +603,7 @@ Set this property's value with setFrame() and get this property's value with fra
.SH "bool hasSelectedText"
This property holds whether there is any text selected.
.PP
-hasSelectedText() returns TRUE if some or all of the text has been selected by the user; otherwise returns FALSE.
+hasSelectedText() returns true if some or all of the text has been selected by the user; otherwise returns false.
.PP
See also selectedText.
.PP
@@ -655,11 +655,11 @@ Set this property's value with setMaxLength() and get this property's value with
.SH "bool modified"
This property holds whether the line edit's contents has been modified by the user.
.PP
-The modified flag is never read by TQLineEdit; it has a default value of FALSE and is changed to TRUE whenever the user changes the line edit's contents.
+The modified flag is never read by TQLineEdit; it has a default value of false and is changed to true whenever the user changes the line edit's contents.
.PP
-This is useful for things that need to provide a default value but do not start out knowing what the default should be (perhaps it depends on other fields on the form). Start the line edit without the best default, and when the default is known, if modified() returns FALSE (the user hasn't entered any text), insert the default value.
+This is useful for things that need to provide a default value but do not start out knowing what the default should be (perhaps it depends on other fields on the form). Start the line edit without the best default, and when the default is known, if modified() returns false (the user hasn't entered any text), insert the default value.
.PP
-Calling clearModified() or setText() resets the modified flag to FALSE.
+Calling clearModified() or setText() resets the modified flag to false.
.PP
Get this property's value with isModified().
.SH "bool readOnly"
@@ -687,7 +687,7 @@ Get this property's value with selectedText().
.SH "TQString text"
This property holds the line edit's text.
.PP
-Note that setting this property clears the selection, clears the undo/redo history, moves the cursor to the end of the line and resets the modified property to FALSE. The text is not validated when inserted with setText().
+Note that setting this property clears the selection, clears the undo/redo history, moves the cursor to the end of the line and resets the modified property to false. The text is not validated when inserted with setText().
.PP
The text is truncated to maxLength() length.
.PP