-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmainwindow.h
60 lines (37 loc) · 1.06 KB
/
mainwindow.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QSqlQueryModel>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();
enum DateTimeType{Time, Date, DateTime};
QString getDateTime(DateTimeType type);
void contents_create();
void query_show(QSqlQuery &query);
private slots:
void slot_content_changed(int row);
void on_btn_add_clicked();
void on_btn_delete_clicked();
void on_btn_sort_type_clicked();
void on_btn_sort_state_clicked();
void on_btn_expire_hint_clicked();
void on_btn_search_clicked();
void on_btn_overview_clicked();
void on_btn_borrow_clicked();
void on_btn_return_clicked();
void on_tableWidget_cellDoubleClicked(int row, int column);
void on_btn_search_state_clicked();
void on_btn_damage_clicked();
private:
Ui::MainWindow *ui;
QSqlQueryModel *query_model_add;
QSqlQueryModel *query_model_state;
};
#endif // MAINWINDOW_H