-
Notifications
You must be signed in to change notification settings - Fork 0
/
disciplines.h
43 lines (33 loc) · 941 Bytes
/
disciplines.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
#ifndef DISCIPLINES_H
#define DISCIPLINES_H
#include <QAbstractButton>
#include <QWidget>
namespace Ui {
class Disciplines;
}
class Disciplines : public QWidget
{
Q_OBJECT
public:
explicit Disciplines(QWidget *parent = nullptr);
~Disciplines();
QJsonObject write() const;
void read(const QJsonObject& json);
void clear();
public slots:
void on_lockButton_toggled(bool checked);
private slots:
void dynamicRemoveDots(QAbstractButton *bt);
void dynamicPowersCreation(QAbstractButton *bt);
void on_addNewWidgetButton_clicked();
void on_deleteWidgetButton_clicked();
//void on_lockButton_toggled(bool checked);
void lineEditHandling();
void callBoldingFromParent(QAbstractButton *bt, const bool &state);
private:
Ui::Disciplines *ui;
QWidget* createDysciplineWidget();
QList<QWidget *> listOfDysciplines;
QButtonGroup *mainGroupButton;
};
#endif // DISCIPLINES_H