-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathReportView.h
More file actions
46 lines (36 loc) · 1.12 KB
/
ReportView.h
File metadata and controls
46 lines (36 loc) · 1.12 KB
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 REPORTVIEW_H
#define REPORTVIEW_H
#include <QWidget>
#include <QCalendarWidget>
#include <QListWidget>
#include <QSqlDatabase>
namespace Ui {
class ReportView;
}
class ReportView : public QWidget
{
Q_OBJECT
public:
explicit ReportView(bool errorQueryToFile = true, QWidget *parent = nullptr);
~ReportView();
bool storeResult(QString date, QString cam, QString barcode, QString image, QString error = "");
void setDbs(QSqlDatabase *database) { db = database; }
private:
void listChanged(QString label);
private slots:
//on_{ObjectName}_{SignalName}
void on_calendar_clicked(QDate date);
void on_list_itemClicked(QListWidgetItem* item);
void on_searchButton_clicked();
void checkTimer_timeout();
signals:
void addTrace(QString text, QColor color = QColor("black"));
void readImageFile(QString camera, QString imageFile, QString error);
private:
Ui::ReportView *ui;
QSqlDatabase *db;
QTimer *checkTimer;
QDateTime m_lastReadTime;
bool m_errorQueryToFile;
};
#endif // REPORTVIEW_H