| 333 | } |
| 334 | |
| 335 | void FileSource::updateFileWatchSetting() |
| 336 | { |
| 337 | // Install a file watcher if file watching is active in the settings. |
| 338 | // The addPath/removePath functions will do nothing if called twice for the same file. |
| 339 | QSettings settings; |
| 340 | if (settings.value("WatchFiles", true).toBool()) |
| 341 | fileWatcher.addPath(this->fullFilePath); |
| 342 | else |
| 343 | fileWatcher.removePath(this->fullFilePath); |
| 344 | } |
| 345 | |
| 346 | void FileSource::clearFileCache() |
| 347 | { |
no outgoing calls
no test coverage detected