-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtag.h
More file actions
28 lines (22 loc) · 669 Bytes
/
Copy pathtag.h
File metadata and controls
28 lines (22 loc) · 669 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
#ifndef TAG_H
#define TAG_H
#include <QObject>
class Tag : public QObject
{
Q_OBJECT
Q_PROPERTY(QString tagName READ tagName WRITE setTagName NOTIFY tagNameChanged)
Q_PROPERTY(QString tagColor READ tagColor WRITE setTagColor NOTIFY tagColorChanged)
public:
Tag(const QString &name, const QString &color, QObject *parent = nullptr);
QString tagName() const;
void setTagName(const QString &name);
QString tagColor() const;
void setTagColor(const QString &color);
signals:
void tagNameChanged(const QString &name);
void tagColorChanged(const QString &color);
private:
QString name_;
QString color_;
};
#endif // TAG_H