diff options
Diffstat (limited to 'src/corelib/io/qfileinfo.cpp')
-rw-r--r-- | src/corelib/io/qfileinfo.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/corelib/io/qfileinfo.cpp b/src/corelib/io/qfileinfo.cpp index fb5aeac189..062efcf40a 100644 --- a/src/corelib/io/qfileinfo.cpp +++ b/src/corelib/io/qfileinfo.cpp @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2016 The Qt Company Ltd. +** Copyright (C) 2020 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the QtCore module of the Qt Toolkit. @@ -1559,6 +1559,23 @@ void QFileInfo::setCaching(bool enable) } /*! + \internal + + Reads all attributes from the file system. + + This is useful when information about the file system is collected in a + worker thread, and then passed to the UI in the form of caching QFileInfo + instances. + + \sa setCaching(), refresh() +*/ +void QFileInfo::stat() +{ + Q_D(QFileInfo); + QFileSystemEngine::fillMetaData(d->fileEntry, d->metaData, QFileSystemMetaData::AllMetaDataFlags); +} + +/*! \typedef QFileInfoList \relates QFileInfo |