1 #ifndef __SEARCHVIEW_H__
2 #define __SEARCHVIEW_H__
6 #include "searchlineedit.h"
7 #include "updatechecker.h"
9 class SearchView : public QWidget, public View {
14 SearchView(QWidget *parent);
17 updateRecentKeywords();
19 queryEdit->setFocus(Qt::OtherFocusReason);
24 QMap<QString, QVariant> metadata() {
25 QMap<QString, QVariant> metadata;
26 metadata.insert("title", "");
27 metadata.insert("description", tr("Make yourself comfortable"));
32 void watch(QString query);
33 void gotNewVersion(QString version);
36 void paintEvent(QPaintEvent *);
39 void search(QString query);
43 void textChanged(const QString &text);
46 void updateRecentKeywords();
47 void checkForUpdate();
49 SearchLineEdit *queryEdit;
50 QLabel *recentKeywordsLabel;
51 QVBoxLayout *recentKeywordsLayout;
53 QPushButton *watchButton;
55 UpdateChecker *updateChecker;
59 #endif // __SEARCHVIEW_H__