-
Notifications
You must be signed in to change notification settings - Fork 1
/
search.h
46 lines (34 loc) · 910 Bytes
/
search.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef SEARCH_H
#define SEARCH_H
#include "stdafx.h"
#include "newsmodel.h"
#include "user.h"
#include "adminx.h"
#include "login.h"
#include <QDialog>
const QString _clickedStyleSheet = "background-color: grey; color: white;";
const QString _defaultStyleSheet = "";
namespace Ui {
class Search;
}
class Search : public QDialog
{
Q_OBJECT
public:
explicit Search(QWidget *parent = nullptr);
~Search();
private slots:
void on_pushButton_clicked();
void on_pushButton_2_clicked();
void on_pushButton_3_clicked();
void on_searchButton_clicked();
void on_pushButton_back_clicked();
void on_searchButton_2_clicked();
void on_pushButton_4_clicked();
private:
Ui::Search *ui;
SearchBasedOn _searchBasedOn;
vector<NewsModel> _searchAns;
map<String, vector<NewsModel>> _newsByDate;
};
#endif // SEARCH_H