| 1291 | } |
| 1292 | |
| 1293 | void LibraryWindow::showAddNewLabelDialog() |
| 1294 | { |
| 1295 | auto dialog = new AddLabelDialog(); |
| 1296 | int ret = dialog->exec(); |
| 1297 | |
| 1298 | if (ret == QDialog::Accepted) { |
| 1299 | YACReader::LabelColors color = dialog->selectedColor(); |
| 1300 | QString name = dialog->name(); |
| 1301 | |
| 1302 | listsModel->addNewLabel(name, color); |
| 1303 | } |
| 1304 | } |
| 1305 | |
| 1306 | // TODO implement editors in treeview |
| 1307 | void LibraryWindow::showRenameCurrentList() |
nothing calls this directly
no test coverage detected