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

Method onWatchedFileChanged

Engine/FileSystemModel.cpp:1281–1291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1279}
1280
1281void
1282FileSystemModel::onWatchedFileChanged(const QString& file)
1283{
1284 ///Get the item corresponding to the current directory
1285 QFileInfo info(file);
1286 boost::shared_ptr<FileSystemItem> parent = _imp->getItemFromPath( info.absolutePath() );
1287
1288 if (parent) {
1289 cleanAndRefreshItem(parent);
1290 }
1291}
1292
1293void
1294FileSystemModel::cleanAndRefreshItem(const boost::shared_ptr<FileSystemItem>& item)

Callers

nothing calls this directly

Calls 2

getItemFromPathMethod · 0.80
absolutePathMethod · 0.80

Tested by

no test coverage detected