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

Method removeItem

custom_widgets/yacreader_library_list_widget.cpp:65–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 return currentLibraryIndex;
64}
65void YACReaderLibraryListWidget::removeItem(int index)
66{
67 YACReaderLibraryItemWidget *itemWidget = librariesList.at(index);
68 this->layout()->removeWidget(itemWidget);
69 librariesList.removeAt(index);
70 if (librariesList.count() > 0) {
71 setCurrentIndex(0);
72 }
73 delete itemWidget;
74}
75
76void YACReaderLibraryListWidget::mousePressEvent(QMouseEvent *event)
77{

Callers 4

newComicMethod · 0.80
addCoverTestMethod · 0.80
deleteCurrentLibraryMethod · 0.80
removeLibraryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected