MCPcopy Create free account
hub / github.com/OpenBoard-org/OpenBoard / isConstant

Method isConstant

src/document/UBDocumentController.h:229–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227 bool isDocument(const QModelIndex &index) const {return nodeFromIndex(index)->nodeType() == UBDocumentTreeNode::Document;}
228 bool isToplevel(const QModelIndex &index) const {return nodeFromIndex(index) ? nodeFromIndex(index)->isTopLevel() : false;}
229 bool isConstant(const QModelIndex &index) const {return isToplevel(index) || (index == mUntitledDocuments);}
230 bool isOkToRename(const QModelIndex &index) const {return flags(index) & Qt::ItemIsEditable;}
231 std::shared_ptr<UBDocumentProxy> proxyData(const QModelIndex &index) const {return nodeFromIndex(index)->proxyData();}
232 void addDocument(std::shared_ptr<UBDocumentProxy> pProxyData, const QModelIndex &pParent = QModelIndex());

Callers 2

duplicateSelectedItemMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected