| 2121 | } |
| 2122 | |
| 2123 | void 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 | |
| 2145 | void LibraryWindow::showComicVineScraper() |
| 2146 | { |
nothing calls this directly
no test coverage detected