-
Notifications
You must be signed in to change notification settings - Fork 0
/
skills.h
41 lines (34 loc) · 949 Bytes
/
skills.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
#ifndef SKILLS_H
#define SKILLS_H
#include <QAbstractButton>
#include <QWidget>
#include <QHBoxLayout>
#include <QHBoxLayout>
namespace Ui {
class Skills;
}
class Skills : public QWidget
{
Q_OBJECT
public:
explicit Skills(QWidget *parent = nullptr, const QStringList &listOfSkills = QStringList());
~Skills();
QJsonObject write() const;
void read(const QJsonObject &json);
void clear();
public slots:
void on_lockButton_toggled(bool checked);
private slots:
//void on_lockButton_toggled(bool checked);
private:
void dynamicRemoveDots(QAbstractButton *bt);
void lineEditHandling();
private:
Ui::Skills *ui;
void createDynamicWidget(const QList<QString> &listOfSkills);
QHBoxLayout *createButtons(QString nameOfSkill);
QHBoxLayout *createSkill(QString nameOfSkill);
void callBoldingFromParent(QAbstractButton *bt, bool state);
QButtonGroup *mainGroupButton;
};
#endif // SKILLS_H