3 #include "searchresultinfodialog.h"
7 SearchResultInfoDialog::SearchResultInfoDialog(const Search::Result &result_,
9 Dyalog(parent), result(result_)
11 setWindowTitle(tr("Download book?"));
13 QLabel *title = new QLabel(result.title, this);
15 if (result.authors.size()) {
16 QLabel *creators = new QLabel(this);
17 QString c = "By " + result.authors[0];
18 for (int i = 1; i < result.authors.size(); i++) {
19 c += ", " + result.authors[i];
22 creators->setWordWrap(true);
25 QLabel *source = new QLabel(tr("Source: %1").arg(result.source), this);
28 addButton(tr("Download"), this, SLOT(accept()), QDialogButtonBox::ActionRole);