MCPcopy Create free account
hub / github.com/YACReader/yacreader / cleanAll

Method cleanAll

YACReaderLibrary/db/reading_list_model.cpp:558–573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556}
557
558void ReadingListModel::cleanAll()
559{
560 if (rootItem != 0) {
561 delete rootItem;
562
563 qDeleteAll(specialLists);
564 qDeleteAll(labels);
565
566 specialLists.clear();
567 labels.clear();
568
569 items.clear();
570 }
571
572 rootItem = 0;
573}
574
575void ReadingListModel::setupReadingListsData(QSqlQuery &sqlquery, ReadingListItem *parent)
576{

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected