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

Method addFileItem

src/filelistview.cpp:106–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void FileListView::addFileItem(QString& filePath, QWidget* edit)
107{
108 if (!m_fileEditMap.contains(filePath))
109 {
110 QListWidgetItem* newItem = new QListWidgetItem(filePath);
111 ui.filelistWidget->addItem(newItem);
112
113 m_fileEditMap.insert(filePath, FileListItemData(edit, newItem));
114 }
115}
116

Callers 2

addFileListViewMethod · 0.80
syncFileTabToListViewMethod · 0.80

Calls 4

FileListItemDataClass · 0.85
addItemMethod · 0.80
containsMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected