diff options
author | David Boddie <dboddie@trolltech.com> | 2009-08-10 14:27:51 (GMT) |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2009-08-10 14:27:51 (GMT) |
commit | f4dba5394f6772a61af56fd25052e29a44de89ed (patch) | |
tree | 17ac833d419982bb84e5886b25d658aa5975f533 | |
parent | 24aa36349b9fc0be9d9bf80b0db607588e0a54f6 (diff) | |
download | Qt-f4dba5394f6772a61af56fd25052e29a44de89ed.zip Qt-f4dba5394f6772a61af56fd25052e29a44de89ed.tar.gz Qt-f4dba5394f6772a61af56fd25052e29a44de89ed.tar.bz2 |
Doc: Clarified the behavior of QDir::exists().
Task-number: 259091
Reviewed-by: Trust Me
-rw-r--r-- | src/corelib/io/qdir.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/corelib/io/qdir.cpp b/src/corelib/io/qdir.cpp index 072eb27..cb0fdeb 100644 --- a/src/corelib/io/qdir.cpp +++ b/src/corelib/io/qdir.cpp @@ -1541,9 +1541,11 @@ bool QDir::isReadable() const /*! \overload - Returns true if the \e directory exists; otherwise returns false. - (If a file with the same name is found this function will return - false). + Returns true if the directory exists; otherwise returns false. + (If a file with the same name is found this function will return false). + + The overload of this function that accepts an argument is used to test + for the presence of files and directories within a directory. \sa QFileInfo::exists(), QFile::exists() */ @@ -1773,8 +1775,11 @@ bool QDir::rename(const QString &oldName, const QString &newName) /*! Returns true if the file called \a name exists; otherwise returns - false. Unless \a name contains an absolute file path, the file - name is assumed to be relative to the current directory. + false. + + Unless \a name contains an absolute file path, the file name is assumed + to be relative to the directory itself, so this function is typically used + to check for the presence of files within a directory. \sa QFileInfo::exists(), QFile::exists() */ |