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

Method isInTrash

src/gui/UBDocumentTreeWidget.cpp:445–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443}
444
445bool UBDocumentProxyTreeItem::isInTrash()
446{
447 UBDocumentGroupTreeItem * parentFolder = dynamic_cast<UBDocumentGroupTreeItem*>(this->parent());
448 if (parentFolder)
449 return parentFolder->isTrashFolder();
450 else {
451 qWarning() << "UBDocumentProxyTreeItem::isInTrash: document has no parent folder. Assuming it is in trash.";
452 return true;
453 }
454}
455
456
457UBDocumentGroupTreeItem::UBDocumentGroupTreeItem(QTreeWidgetItem *parent, bool isEditable)

Callers

nothing calls this directly

Calls 2

isTrashFolderMethod · 0.80
parentMethod · 0.45

Tested by

no test coverage detected