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

Method showLibraryInfo

YACReaderLibrary/library_window.cpp:1973–1988  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1971}
1972
1973void 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
1990void LibraryWindow::rescanCurrentFolderForXMLInfo()
1991{

Callers

nothing calls this directly

Calls 7

getUuidMethod · 0.80
currentTextMethod · 0.80
addItemMethod · 0.80
execMethod · 0.80
setTextMethod · 0.45
rowCountMethod · 0.45
columnCountMethod · 0.45

Tested by

no test coverage detected