MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / shouldExpand

Method shouldExpand

launcher/FileIgnoreProxy.cpp:224–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224bool FileIgnoreProxy::shouldExpand(QModelIndex index)
225{
226 QModelIndex sourceIndex = mapToSource(index);
227 QFileSystemModel* fsm = qobject_cast<QFileSystemModel*>(sourceModel());
228 if (!fsm) {
229 return false;
230 }
231 auto blockedPath = relPath(fsm->filePath(sourceIndex));
232 auto found = blocked.find(blockedPath);
233 if (found) {
234 return !found->leaf();
235 }
236 return false;
237}
238
239void FileIgnoreProxy::setBlockedPaths(QStringList paths)
240{

Callers 1

rowsInsertedMethod · 0.80

Calls 3

filePathMethod · 0.80
leafMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected