MCPcopy Create free account
hub / github.com/KDAB/GammaRay / flags

Method flags

ui/clienttoolmodel.cpp:86–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86Qt::ItemFlags ClientToolModel::flags(const QModelIndex &index) const
87{
88 Qt::ItemFlags flags = QAbstractListModel::flags(index);
89 if (!index.isValid())
90 return flags;
91
92 const auto tool = m_toolManager->tools().at(index.row());
93 if (!tool.isEnabled() || (!tool.remotingSupported() && Endpoint::instance()->isRemoteClient()))
94 flags &= ~(Qt::ItemIsEnabled | Qt::ItemIsSelectable);
95 return flags;
96}
97
98int ClientToolModel::rowCount(const QModelIndex &parent) const
99{

Callers

nothing calls this directly

Calls 5

rowMethod · 0.80
isValidMethod · 0.45
isEnabledMethod · 0.45
remotingSupportedMethod · 0.45
isRemoteClientMethod · 0.45

Tested by

no test coverage detected