MCPcopy Create free account
hub / github.com/cxasm/notepad-- / delFileItem

Method delFileItem

src/filelistview.cpp:74–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void FileListView::delFileItem(QString & filePath)
75{
76 if (m_fileEditMap.contains(filePath))
77 {
78 m_fileEditMap.remove(filePath);
79 QList<QListWidgetItem*> items = ui.filelistWidget->findItems(filePath, Qt::MatchFixedString);
80
81 if (!items.isEmpty())
82 {
83 delete items.at(0);
84 }
85
86 }
87}
88
89QWidget* FileListView::getWidgetByFilePath(QString filePath)
90{

Callers 1

delFileListViewMethod · 0.80

Calls 3

isEmptyMethod · 0.80
containsMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected