MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / onWatchedFileChanged

Method onWatchedFileChanged

Engine/FileSystemModel.cpp:1321–1331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1319}
1320
1321void
1322FileSystemModel::onWatchedFileChanged(const QString& file)
1323{
1324 ///Get the item corresponding to the current directory
1325 QFileInfo info(file);
1326 FileSystemItemPtr parent = _imp->getItemFromPath( info.absolutePath() );
1327
1328 if (parent) {
1329 cleanAndRefreshItem(parent);
1330 }
1331}
1332
1333void
1334FileSystemModel::cleanAndRefreshItem(const FileSystemItemPtr& item)

Callers

nothing calls this directly

Calls 2

getItemFromPathMethod · 0.80
absolutePathMethod · 0.80

Tested by

no test coverage detected