-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeletewindow.h
49 lines (40 loc) · 858 Bytes
/
deletewindow.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
#ifndef DELETEWINDOW_H
#define DELETEWINDOW_H
#include <QDialog>
#include <QMessageBox>
#include "database.h"
#include "editwindow.h"
#include "items.h"
namespace Ui {
class deleteWindow;
}
class deleteWindow : public QDialog
{
Q_OBJECT
public:
explicit deleteWindow(QWidget *parent = nullptr);
~deleteWindow();
void setId(int);
int getId();
bool DeleteWindow();
void usersRadioButtons();
void adminsRadioButtons();
signals:
void button_ok_clicked();
void button_cancel_clicked();
void update_table();
private slots:
void on_buttonCancel_clicked();
void on_buttonOk_clicked();
void editItem();
void updateTable();
private:
void Delete();
void showEditWindow();
private:
Ui::deleteWindow *ui;
DataBase db;
EditWindow* editwindow;
int id;
};
#endif // DELETEWINDOW_H