-
Notifications
You must be signed in to change notification settings - Fork 0
/
personaldata.h
49 lines (40 loc) · 975 Bytes
/
personaldata.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 PERSONALDATA_H
#define PERSONALDATA_H
#include <QAbstractButton>
#include <QLineEdit>
#include <QPaintEvent>
#include <QPainter>
#include <QStyleOption>
#include <QWidget>
namespace Ui {
class PersonalData;
}
class PersonalData : public QWidget
{
Q_OBJECT
public:
explicit PersonalData(QWidget *parent = nullptr);
QLineEdit* getClanLineEdit();
~PersonalData();
QJsonObject write() const;
void read(const QJsonObject& json);
void clear();
private slots:
void lineEditHandling();
void spinBoxHandling();
void clanHandle();
void calculateBlood();
void dynamicRemoveDots(QAbstractButton *bt);
private:
Ui::PersonalData *ui;
QList<QString> listOfClans;
void connectAllLineEdits();
void paintEvent(QPaintEvent *)
{
QStyleOption opt;
opt.initFrom(this);
QPainter p(this);
style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
}
};
#endif // PERSONALDATA_H