Fix forward navigation control on Linux.
[dorian] / searchdialog.cpp
index da5182a..e2f2b99 100644 (file)
@@ -2,14 +2,17 @@
 
 #include "searchdialog.h"
 #include "search.h"
+#include "trace.h"
 
 SearchDialog::SearchDialog(QWidget *parent): Dyalog(parent)
 {
-    setWindowTitle(tr("Search"));
+    TRACE;
+    setWindowTitle(tr("Search the Web"));
+    setAttribute(Qt::WA_DeleteOnClose, false);
 
     QLabel *titleLabel = new QLabel(tr("Title:"), this);
     title = new QLineEdit(this);
-    QLabel *authorLabel = new QLabel(tr("Author"), this);
+    QLabel *authorLabel = new QLabel(tr("Author:"), this);
     author = new QLineEdit(this);
 
     addWidget(titleLabel);
@@ -22,8 +25,10 @@ SearchDialog::SearchDialog(QWidget *parent): Dyalog(parent)
 
 Search::Query SearchDialog::query()
 {
+    TRACE;
     Search::Query ret;
     ret.title = title->text();
     ret.author = author->text();
+    qDebug() << ret.title << ret.author;
     return ret;
 }