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

Method showAddNewLabelDialog

YACReaderLibrary/library_window.cpp:1293–1304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1291}
1292
1293void 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
1307void LibraryWindow::showRenameCurrentList()

Callers

nothing calls this directly

Calls 4

execMethod · 0.80
selectedColorMethod · 0.80
addNewLabelMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected