-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile.h
50 lines (40 loc) · 811 Bytes
/
profile.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 PROFILE_H
#define PROFILE_H
#include <QFrame>
#include <QLabel>
#include <QPushButton>
#include <QPainter>
namespace Ui {
class Profile;
}
class Profile : public QFrame {
Q_OBJECT
public:
explicit Profile(QWidget *parent = 0);
~Profile();
// void paintEvent(QPaintEvent *);
QLabel* getName();
QLabel* getDesc();
QPushButton* getBtnGodL();
QPushButton* getBtnMonsterL();
void setName(QString);
void setDesc(QString);
protected:
Ui::Profile *ui;
};
class God: public Profile {
Q_OBJECT
public:
explicit God(QWidget *parent = 0);
private:
bool isCommGod;
bool isCommMonster;
};
class Monster: public Profile {
public:
explicit Monster(QWidget *parent = 0);
private:
bool isCommGod;
bool isCommMonster;
};
#endif // PROFILE_H