| 210 | } |
| 211 | |
| 212 | void MacroConditionFolder::SetupWatcher() |
| 213 | { |
| 214 | _watcher = std::make_unique<QFileSystemWatcher>(); |
| 215 | const auto path = QString::fromStdString(_folder); |
| 216 | _currentFiles = getFilesInDir(path); |
| 217 | _currentDirs = getDirsInDir(path); |
| 218 | _lastWatchedValue = _folder.UnresolvedValue(); |
| 219 | connect(_watcher.get(), SIGNAL(directoryChanged(const QString &)), this, |
| 220 | SLOT(DirectoryChanged(const QString &))); |
| 221 | connect(_watcher.get(), SIGNAL(fileChanged(const QString &)), this, |
| 222 | SLOT(FileChanged(const QString &))); |
| 223 | _watcher.get()->addPaths(getFileWatcherList(_currentFiles, path)); |
| 224 | _watcher->addPath(path); |
| 225 | } |
| 226 | |
| 227 | void MacroConditionFolder::SetTempVarValues() |
| 228 | { |
nothing calls this directly
no test coverage detected