MCPcopy Create free account
hub / github.com/alpha-liu-01/SpeedyNote / clearNotes

Method clearNotes

source/ui/MarkdownNotesSidebar.cpp:372–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370}
371
372void MarkdownNotesSidebar::clearNotes()
373{
374 // Tree
375 if (notesTreePanel) notesTreePanel->clear();
376
377 // Flat scroll area (search results).
378 for (MarkdownNoteEntry* entry : searchResultEntries) {
379 scrollLayout->removeWidget(entry);
380 entry->deleteLater();
381 }
382 searchResultEntries.clear();
383
384 if (emptyLabel) emptyLabel->hide();
385 if (scrollArea) scrollArea->hide();
386 if (notesTreePanel) notesTreePanel->hide();
387}
388
389// ============================================================================
390// Search

Callers

nothing calls this directly

Calls 2

hideMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected