MCPcopy Create free account
hub / github.com/LANDrop/LANDrop / removeButtonClicked

Method removeButtonClicked

LANDrop/selectfilesdialog.cpp:106–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void SelectFilesDialog::removeButtonClicked()
107{
108 QModelIndexList indexes = ui->filesListView->selectionModel()->selectedIndexes();
109 QList<const QSharedPointer<QFile> *> removeList;
110 foreach (const QModelIndex &i, indexes) {
111 removeList.append(&files.at(i.row()));
112 }
113 foreach (const QSharedPointer<QFile> *fp, removeList) {
114 files.removeOne(*fp);
115 }
116 updateFileStringListModel();
117}
118
119void SelectFilesDialog::accept()
120{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected