3 #include "searchdialog.h"
7 SearchDialog::SearchDialog(QWidget *parent): Dyalog(parent)
9 setWindowTitle(tr("Search the Web"));
11 QLabel *titleLabel = new QLabel(tr("Title:"), this);
12 title = new QLineEdit(this);
13 QLabel *authorLabel = new QLabel(tr("Author:"), this);
14 author = new QLineEdit(this);
16 addWidget(titleLabel);
18 addWidget(authorLabel);
21 addButton(tr("Search"), this, SLOT(accept()));
24 Search::Query SearchDialog::query()
28 ret.title = title->text();
29 ret.author = author->text();
30 qDebug() << ret.title << ret.author;