3 #include "searchdialog.h"
6 SearchDialog::SearchDialog(QWidget *parent): Dyalog(parent)
8 setWindowTitle(tr("Search"));
10 QLabel *titleLabel = new QLabel(tr("Title:"), this);
11 title = new QLineEdit(this);
12 QLabel *authorLabel = new QLabel(tr("Author"), this);
13 author = new QLineEdit(this);
15 addWidget(titleLabel);
17 addWidget(authorLabel);
20 addButton(tr("Search"), this, SLOT(accept()));
23 Search::Query SearchDialog::query()
26 ret.title = title->text();
27 ret.author = author->text();