-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadduser.h
50 lines (40 loc) · 864 Bytes
/
adduser.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
#ifndef ADDUSER_H
#define ADDUSER_H
#include <QWidget>
#include <iostream>
#include <connection.h>
using namespace std;
QT_BEGIN_NAMESPACE
class QDataWidgetMapper;
class QLabel;
class QLineEdit;
class QPushButton;
class QSpinBox;
class QStandardItemModel;
class QTextEdit;
QT_END_NAMESPACE
class AddUser : public QWidget
{
Q_OBJECT
public:
AddUser(QWidget *parent = 0);
private slots:
void saveEntry();
private:
void setupModel();
QLabel *nameLabel;
QLabel *roomLabel;
QLabel *codeLabel;
QLineEdit *nameEdit;
QLineEdit *codeEdit;
QLineEdit *roomEdit;
// QSpinBox *ageSpinBox;
// QPushButton *nextButton;
// QPushButton *previousButton;
// QLabel *ageLabel;
QPushButton *saveButton;
QPushButton *cancelButton;
QStandardItemModel *model;
QDataWidgetMapper *mapper;
};
#endif // ADDUSER_H