-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathproducingblock.h
More file actions
47 lines (36 loc) · 928 Bytes
/
Copy pathproducingblock.h
File metadata and controls
47 lines (36 loc) · 928 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
41
42
43
44
45
46
47
#ifndef PRODUCINGBLOCK_H
#define PRODUCINGBLOCK_H
#include <QWidget>
#include <string>
#include "./globalsetting.h"
#include "./qoutlinelabel.h"
namespace Ui {
class ProducingBlock;
}
class ProducingBlock : public QWidget {
Q_OBJECT
public:
explicit ProducingBlock(QWidget *parent = nullptr);
~ProducingBlock();
void paintEvent(QPaintEvent *);
void initBlock(QString name);
void setProgress(int progress);
void setStatus(int status);
void setNumber(int number);
void setImage(QString name);
void setcolor(std::string color);
QColor getDarkerColor(QColor qc);
int complete = 54;
int blockProgress;
QString blockName;
QString blockStatus;
int blockNumber;
QColor blockColor;
bool clean = false;
QOutlineLabel *lb_status;
QOutlineLabel *lb_number;
Globalsetting *gls;
private:
Ui::ProducingBlock *ui;
};
#endif // PRODUCINGBLOCK_H