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

Method showProperties

YACReaderLibrary/library_window.cpp:2123–2143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2121}
2122
2123void LibraryWindow::showProperties()
2124{
2125 QModelIndexList indexList = getSelectedComics();
2126
2127 QList<ComicDB> comics = comicsModel->getComics(indexList);
2128 ComicDB c = comics[0];
2129 _comicIdEdited = c.id; // static_cast<TableItem*>(indexList[0].internalPointer())->data(4).toULongLong();
2130
2131 propertiesDialog->databasePath = foldersModel->getDatabase();
2132 propertiesDialog->basePath = currentPath();
2133
2134 if (indexList.length() > 1) { // edit common properties
2135 propertiesDialog->setComics(comics);
2136 } else {
2137 auto allComics = comicsModel->getAllComics();
2138 int index = allComics.indexOf(c);
2139 propertiesDialog->setComicsForSequentialEditing(index, comicsModel->getAllComics());
2140 }
2141
2142 propertiesDialog->show();
2143}
2144
2145void LibraryWindow::showComicVineScraper()
2146{

Callers

nothing calls this directly

Calls 6

getDatabaseMethod · 0.80
getAllComicsMethod · 0.80
getComicsMethod · 0.45
setComicsMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected