diff options
author | Timothée Keller <timothee.keller@qt.io> | 2022-10-18 12:05:25 +0200 |
---|---|---|
committer | Timothée Keller <timothee.keller@qt.io> | 2022-10-20 13:47:49 +0200 |
commit | df89c93d916873c02c0995c76f325e7147858dae (patch) | |
tree | 9afede5d91457b762ec8ea9266993f149b65dfcc /src/corelib/io/qdir.cpp | |
parent | 2e582a0af9c918876c77a62ff827265e9d83e9bf (diff) |
Mention limitation of QDir::drives() on Windows
Added comment to clarify returned drives from QDir::drives()
Task-number: QTBUG-106896
Pick-to: 5.15 6.2 6.4
Change-Id: I7cf9642b11f9000a5e6382a2b29070ab2cd6442e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qdir.cpp')
-rw-r--r-- | src/corelib/io/qdir.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/io/qdir.cpp b/src/corelib/io/qdir.cpp index 5f6ed307c5..f0bafd69d8 100644 --- a/src/corelib/io/qdir.cpp +++ b/src/corelib/io/qdir.cpp @@ -1909,7 +1909,8 @@ bool QDir::isEmpty(Filters filters) const Returns a list of the root directories on this system. On Windows this returns a list of QFileInfo objects containing "C:/", - "D:/", etc. On other operating systems, it returns a list containing + "D:/", etc. This does not return drives with ejectable media that are empty. + On other operating systems, it returns a list containing just one root directory (i.e. "/"). \sa root(), rootPath() |