summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqfileinfo.3qt
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-07-31 13:38:31 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-07-31 13:43:03 +0900
commit6e4a70d41a2636ce99a1da7b6827ac5685ed3186 (patch)
treeb029ebf1d5be6d1ac0ee361e7bfb68a7dbed0eec /doc/man/man3/tqfileinfo.3qt
parent81ade129093a279e6537db25710583fd2bba9427 (diff)
downloadtqt-6e4a70d41a2636ce99a1da7b6827ac5685ed3186.tar.gz
tqt-6e4a70d41a2636ce99a1da7b6827ac5685ed3186.zip
Replace TRUE/FALSE with boolean values true/false - part 3
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked and manually edited from commit 6dd781c483eea56f51ae0eff47d857976b5d0f0d)
Diffstat (limited to 'doc/man/man3/tqfileinfo.3qt')
-rw-r--r--doc/man/man3/tqfileinfo.3qt62
1 files changed, 31 insertions, 31 deletions
diff --git a/doc/man/man3/tqfileinfo.3qt b/doc/man/man3/tqfileinfo.3qt
index 02f96eb08..288e44d2c 100644
--- a/doc/man/man3/tqfileinfo.3qt
+++ b/doc/man/man3/tqfileinfo.3qt
@@ -70,16 +70,16 @@ All the functions in this class are reentrant when TQt is built with thread supp
.BI "TQString \fBabsFilePath\fR () const"
.br
.ti -1c
-.BI "TQString \fBbaseName\fR ( bool complete = FALSE ) const"
+.BI "TQString \fBbaseName\fR ( bool complete = false ) const"
.br
.ti -1c
-.BI "TQString \fBextension\fR ( bool complete = TRUE ) const"
+.BI "TQString \fBextension\fR ( bool complete = true ) const"
.br
.ti -1c
-.BI "TQString \fBdirPath\fR ( bool absPath = FALSE ) const"
+.BI "TQString \fBdirPath\fR ( bool absPath = false ) const"
.br
.ti -1c
-.BI "QDir \fBdir\fR ( bool absPath = FALSE ) const"
+.BI "QDir \fBdir\fR ( bool absPath = false ) const"
.br
.ti -1c
.BI "bool \fBisReadable\fR () const"
@@ -148,7 +148,7 @@ A QFileInfo can point to a file with either a relative or an absolute file path.
.PP
The file that the QFileInfo works on is set in the constructor or later with setFile(). Use exists() to see if the file exists and size() to get its size.
.PP
-To speed up performance, QFileInfo caches information about the file. Because files can be changed by other users or programs, or even by other parts of the same program, there is a function that refreshes the file information: refresh(). If you want to switch off a QFileInfo's caching and force it to access the file system every time you request information from it call setCaching(FALSE).
+To speed up performance, QFileInfo caches information about the file. Because files can be changed by other users or programs, or even by other parts of the same program, there is a function that refreshes the file information: refresh(). If you want to switch off a QFileInfo's caching and force it to access the file system every time you request information from it call setCaching(false).
.PP
The file's type is obtained with isFile(), isDir() and isSymLink(). The readLink() function provides the name of the file the symlink points to.
.PP
@@ -218,7 +218,7 @@ Returns the absolute path including the file name.
.PP
The absolute path name consists of the full path and the file name. On Unix this will always begin with the root, '/', directory. On Windows this will always begin 'D:/' where D is a drive letter, except for network shares that are not mapped to a drive letter, in which case the path will begin '//sharename/'.
.PP
-This function returns the same as filePath(), unless isRelative() is TRUE.
+This function returns the same as filePath(), unless isRelative() is true.
.PP
If the QFileInfo is empty it returns QDir::currentDirPath().
.PP
@@ -228,12 +228,12 @@ See also isRelative() and filePath().
.PP
Examples:
.)l biff/biff.cpp and fileiconview/qfileiconview.cpp.
-.SH "TQString QFileInfo::baseName ( bool complete = FALSE ) const"
+.SH "TQString QFileInfo::baseName ( bool complete = false ) const"
Returns the base name of the file.
.PP
-If \fIcomplete\fR is FALSE (the default) the base name consists of all characters in the file name up to (but not including) the \fIfirst\fR '.' character.
+If \fIcomplete\fR is false (the default) the base name consists of all characters in the file name up to (but not including) the \fIfirst\fR '.' character.
.PP
-If \fIcomplete\fR is TRUE the base name consists of all characters in the file up to (but not including) the \fIlast\fR '.' character.
+If \fIcomplete\fR is true the base name consists of all characters in the file up to (but not including) the \fIlast\fR '.' character.
.PP
The path is not included in either case.
.PP
@@ -245,13 +245,13 @@ Example:
.br
TQString base = fi.baseName(); // base = "archive"
.br
- base = fi.baseName( TRUE ); // base = "archive.tar"
+ base = fi.baseName( true ); // base = "archive.tar"
.br
.fi
.PP
See also fileName() and extension().
.SH "bool QFileInfo::caching () const"
-Returns TRUE if caching is enabled; otherwise returns FALSE.
+Returns true if caching is enabled; otherwise returns false.
.PP
See also setCaching() and refresh().
.SH "bool QFileInfo::convertToAbs ()"
@@ -266,33 +266,33 @@ Returns the date and time when the file was created.
On platforms where this information is not available, returns the same as lastModified().
.PP
See also lastModified() and lastRead().
-.SH "QDir QFileInfo::dir ( bool absPath = FALSE ) const"
+.SH "QDir QFileInfo::dir ( bool absPath = false ) const"
Returns the file's path as a QDir object.
.PP
-If the QFileInfo is relative and \fIabsPath\fR is FALSE, the QDir will be relative; otherwise it will be absolute.
+If the QFileInfo is relative and \fIabsPath\fR is false, the QDir will be relative; otherwise it will be absolute.
.PP
See also dirPath(), filePath(), fileName(), and isRelative().
.PP
Example: fileiconview/qfileiconview.cpp.
-.SH "TQString QFileInfo::dirPath ( bool absPath = FALSE ) const"
+.SH "TQString QFileInfo::dirPath ( bool absPath = false ) const"
Returns the file's path.
.PP
-If \fIabsPath\fR is TRUE an absolute path is returned.
+If \fIabsPath\fR is true an absolute path is returned.
.PP
See also dir(), filePath(), fileName(), and isRelative().
.PP
Example: fileiconview/qfileiconview.cpp.
.SH "bool QFileInfo::exists () const"
-Returns TRUE if the file exists; otherwise returns FALSE.
+Returns true if the file exists; otherwise returns false.
.PP
Examples:
.)l biff/biff.cpp, distributor/distributor.ui.h, and i18n/main.cpp.
-.SH "TQString QFileInfo::extension ( bool complete = TRUE ) const"
+.SH "TQString QFileInfo::extension ( bool complete = true ) const"
Returns the file's extension name.
.PP
-If \fIcomplete\fR is TRUE (the default), extension() returns the string of all characters in the file name after (but not including) the first '.' character.
+If \fIcomplete\fR is true (the default), extension() returns the string of all characters in the file name after (but not including) the first '.' character.
.PP
-If \fIcomplete\fR is FALSE, extension() returns the string of all characters in the file name after (but not including) the last '.' character.
+If \fIcomplete\fR is false, extension() returns the string of all characters in the file name after (but not including) the last '.' character.
.PP
Example:
.PP
@@ -302,7 +302,7 @@ Example:
.br
TQString ext = fi.extension(); // ext = "tar.gz"
.br
- ext = fi.extension( FALSE ); // ext = "gz"
+ ext = fi.extension( false ); // ext = "gz"
.br
.fi
.PP
@@ -346,44 +346,44 @@ On Windows and on systems where files do not have groups this function always re
.PP
See also group(), owner(), and ownerId().
.SH "bool QFileInfo::isDir () const"
-Returns TRUE if this object points to a directory or to a symbolic link to a directory; otherwise returns FALSE.
+Returns true if this object points to a directory or to a symbolic link to a directory; otherwise returns false.
.PP
See also isFile() and isSymLink().
.PP
Examples:
.)l dirview/dirview.cpp and fileiconview/qfileiconview.cpp.
.SH "bool QFileInfo::isExecutable () const"
-Returns TRUE if the file is executable; otherwise returns FALSE.
+Returns true if the file is executable; otherwise returns false.
.PP
See also isReadable(), isWritable(), and permission().
.SH "bool QFileInfo::isFile () const"
-Returns TRUE if this object points to a file. Returns FALSE if the object points to something which isn't a file, e.g. a directory or a symlink.
+Returns true if this object points to a file. Returns false if the object points to something which isn't a file, e.g. a directory or a symlink.
.PP
See also isDir() and isSymLink().
.PP
Examples:
.)l dirview/dirview.cpp, distributor/distributor.ui.h, fileiconview/qfileiconview.cpp, and qdir/qdir.cpp.
.SH "bool QFileInfo::isHidden () const"
-Returns TRUE if the file is hidden; otherwise returns FALSE.
+Returns true if the file is hidden; otherwise returns false.
.PP
On Unix-like operating systems, including Mac OS X, a file is hidden if its name begins with ".". On Windows a file is hidden if its hidden attribute is set.
.SH "bool QFileInfo::isReadable () const"
-Returns TRUE if the file is readable; otherwise returns FALSE.
+Returns true if the file is readable; otherwise returns false.
.PP
See also isWritable(), isExecutable(), and permission().
.PP
Example: distributor/distributor.ui.h.
.SH "bool QFileInfo::isRelative () const"
-Returns TRUE if the file path name is relative. Returns FALSE if the path is absolute (e.g. under Unix a path is absolute if it begins with a "/").
+Returns true if the file path name is relative. Returns false if the path is absolute (e.g. under Unix a path is absolute if it begins with a "/").
.SH "bool QFileInfo::isSymLink () const"
-Returns TRUE if this object points to a symbolic link (or to a shortcut on Windows, or an alias on Mac OS X); otherwise returns FALSE.
+Returns true if this object points to a symbolic link (or to a shortcut on Windows, or an alias on Mac OS X); otherwise returns false.
.PP
See also isFile(), isDir(), and readLink().
.PP
Examples:
.)l dirview/dirview.cpp, distributor/distributor.ui.h, and fileiconview/qfileiconview.cpp.
.SH "bool QFileInfo::isWritable () const"
-Returns TRUE if the file is writable; otherwise returns FALSE.
+Returns true if the file is writable; otherwise returns false.
.PP
See also isReadable(), isExecutable(), and permission().
.PP
@@ -419,7 +419,7 @@ See also owner(), group(), and groupId().
.SH "bool QFileInfo::permission ( int permissionSpec ) const"
Tests for file permissions. The \fIpermissionSpec\fR argument can be several flags of type PermissionSpec OR-ed together to check for permission combinations.
.PP
-On systems where files do not have permissions this function always returns TRUE.
+On systems where files do not have permissions this function always returns true.
.PP
Example:
.PP
@@ -441,7 +441,7 @@ See also isReadable(), isWritable(), and isExecutable().
.SH "TQString QFileInfo::readLink () const"
Returns the name a symlink (or shortcut on Windows) points to, or a TQString::null if the object isn't a symbolic link.
.PP
-This name may not represent an existing file; it is only a string. QFileInfo::exists() returns TRUE if the symlink points to an existing file.
+This name may not represent an existing file; it is only a string. QFileInfo::exists() returns true if the symlink points to an existing file.
.PP
See also exists(), isSymLink(), isDir(), and isFile().
.SH "void QFileInfo::refresh () const"
@@ -449,7 +449,7 @@ Refreshes the information about the file, i.e. reads in information from the fil
.PP
See also setCaching().
.SH "void QFileInfo::setCaching ( bool enable )"
-If \fIenable\fR is TRUE, enables caching of file information. If \fIenable\fR is FALSE caching is disabled.
+If \fIenable\fR is true, enables caching of file information. If \fIenable\fR is false caching is disabled.
.PP
When caching is enabled, QFileInfo reads the file information from the file system the first time it's needed, but generally not later.
.PP