QFileInfoGatherer: add some API docs

Task-number: QTBUG-99750
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>
(cherry picked from commit af9b70c5edc2a46bba18ef3753022adb5810292a)
This commit is contained in:
Ahmad Samir 2024-01-04 14:55:48 +02:00 committed by Qt Cherry-pick Bot
parent d909a8ed67
commit 1dc98ca985

View File

@ -251,6 +251,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)