| 1971 | } |
| 1972 | |
| 1973 | void LibraryWindow::showLibraryInfo() |
| 1974 | { |
| 1975 | auto id = libraries.getUuid(selectedLibrary->currentText()); |
| 1976 | auto info = DBHelper::getLibraryInfo(id); |
| 1977 | |
| 1978 | // TODO: use something nicer than a QMessageBox |
| 1979 | QMessageBox msgBox; |
| 1980 | msgBox.setWindowTitle(tr("Library info")); |
| 1981 | msgBox.setText(info); |
| 1982 | QSpacerItem *horizontalSpacer = new QSpacerItem(420, 0, QSizePolicy::Minimum, QSizePolicy::Expanding); |
| 1983 | QGridLayout *layout = (QGridLayout *)msgBox.layout(); |
| 1984 | layout->addItem(horizontalSpacer, layout->rowCount(), 0, 1, layout->columnCount()); |
| 1985 | msgBox.setStandardButtons(QMessageBox::Close); |
| 1986 | msgBox.setDefaultButton(QMessageBox::Close); |
| 1987 | msgBox.exec(); |
| 1988 | } |
| 1989 | |
| 1990 | void LibraryWindow::rescanCurrentFolderForXMLInfo() |
| 1991 | { |
nothing calls this directly
no test coverage detected