-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlabelcategory.cpp
58 lines (45 loc) · 1.04 KB
/
labelcategory.cpp
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
51
52
53
54
55
56
57
58
#include "labelcategory.h"
LabelCategory::LabelCategory(QObject *parent)
: QObject(parent) {}
int LabelCategory::id() const {
return mId;
}
QString LabelCategory::name() const {
return mName;
}
QColor LabelCategory::color() const {
return mColor;
}
int LabelCategory::lineWidth() const {
return mLineWidth;
}
QString LabelCategory::description() const {
return mDescription;
}
bool LabelCategory::visible() const {
return mVisible;
}
void LabelCategory::setId(int id_) {
mId = id_;
emit idChanged();
}
void LabelCategory::setName(QString name_) {
mName = std::move(name_);
emit nameChanged();
}
void LabelCategory::setColor(QColor color_) {
mColor = color_;
emit colorChanged();
}
void LabelCategory::setLineWidth(int width) {
mLineWidth = width;
emit lineWidthChanged();
}
void LabelCategory::setDescription(QString desc_) {
mDescription = std::move(desc_);
emit descriptionChanged();
}
void LabelCategory::setVisible(bool visible) {
mVisible = visible;
emit visiableChanged();
}