QFileInfoGatherer: add some API docs

Task-number: QTBUG-99750
Pick-to: 6.6
Change-Id: I908e1135b895dbf6116b1dce7416b14905b886b2
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit 0cda986eb6cdf681cb64811b416c413645cb0f3d)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Ahmad Samir 2024-01-04 14:55:48 +02:00 committed by Qt Cherry-pick Bot
parent 86e5979d51
commit af9b70c5ed

View File

@ -249,6 +249,15 @@ bool QFileInfoGatherer::isWatching() const
return result;
}
/*! \internal
If \a v is \c false, the QFileSystemWatcher used internally will be deleted
and subsequent calls to watchPaths() will do nothing.
If \a v is \c true, subsequent calls to watchPaths() will add those paths to
the filesystem watcher; watchPaths() will initialize a QFileSystemWatcher if
one hasn't already been initialized.
*/
void QFileInfoGatherer::setWatching(bool v)
{
#if QT_CONFIG(filesystemwatcher)