MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / canFetchMore

Method canFetchMore

pcsx2-qt/Debugger/SymbolTree/SymbolTreeModel.cpp:236–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236bool SymbolTreeModel::canFetchMore(const QModelIndex& parent) const
237{
238 if (!parent.isValid())
239 return false;
240
241 SymbolTreeNode* parent_node = nodeFromIndex(parent);
242 if (!parent_node || !parent_node->type.valid())
243 return false;
244
245 bool result = false;
246 m_cpu.GetSymbolGuardian().Read([&](const ccc::SymbolDatabase& database) -> void {
247 const ccc::ast::Node* parent_type = parent_node->type.lookup_node(database);
248 if (!parent_type)
249 return;
250
251 result = nodeHasChildren(*parent_type, database) && !parent_node->childrenFetched();
252 });
253
254 return result;
255}
256
257Qt::ItemFlags SymbolTreeModel::flags(const QModelIndex& index) const
258{

Callers

nothing calls this directly

Calls 5

isValidMethod · 0.80
lookup_nodeMethod · 0.80
childrenFetchedMethod · 0.80
validMethod · 0.45
ReadMethod · 0.45

Tested by

no test coverage detected