-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathunitblock.h
More file actions
40 lines (30 loc) · 726 Bytes
/
Copy pathunitblock.h
File metadata and controls
40 lines (30 loc) · 726 Bytes
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 UNITBLOCK_H
#define UNITBLOCK_H
#include <QWidget>
#include <string>
#include "./globalsetting.h"
#include "./qoutlinelabel.h"
namespace Ui {
class Unitblock;
}
class Unitblock : public QWidget {
Q_OBJECT
public:
explicit Unitblock(QWidget *parent = nullptr);
~Unitblock();
void initUnit(QString name);
void paintEvent(QPaintEvent *);
void setName(QString name);
void setImage(QString name);
void setNumber(int n);
void setColor(std::string color);
void setEmpty();
void rearrange();
QPixmap getRadius(QPixmap src, int radius);
QString unit_name;
QOutlineLabel *lb_num;
Globalsetting *gls;
private:
Ui::Unitblock *ui;
};
#endif // UNITBLOCK_H