-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindicators.h
40 lines (34 loc) · 864 Bytes
/
indicators.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
#ifndef INDICATORS_H
#define INDICATORS_H
#include <QWidget>
#include <QAbstractButton>
namespace Ui {
class Indicators;
}
class Indicators : public QWidget
{
Q_OBJECT
public:
explicit Indicators(QWidget *parent = nullptr);
~Indicators();
QJsonObject write();
void clear();
void read(const QJsonObject& json);
int getHumanity();
int getWillpower();
public slots:
void on_lockButton_toggled(bool checked);
void createWillpower();
void createHealth();
private slots:
//void on_lockButton_toggled(bool checked);
void dynamicRemoveDots(QAbstractButton *bt);
private:
Ui::Indicators *ui;
void deleteHealth(int size_);
void deleteWP(int size_);
QPair<int, int> countIndicators(QLayout *layout, int size_) const;
void humanityChanged();
void humanityGenerator();
};
#endif // INDICATORS_H