Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/properties.h')
-rw-r--r--src/properties.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/properties.h b/src/properties.h
index 6faf885..c6147e4 100644
--- a/src/properties.h
+++ b/src/properties.h
@@ -56,7 +56,13 @@ public:
return properties_color;
}
-
+ /**
+ * @brief returns the comment string of this object
+ * */
+ inline const QString &comment() const {
+ return properties_comment;
+ }
+
/**
* @brief returns the info string of this object
* */
@@ -74,6 +80,13 @@ public:
/* ---- mutators ---- */
/**
+ * @brief set the comments string of this object
+ * */
+ inline void set_comment(const QString &text) {
+ properties_comment = text;
+ }
+
+ /**
* @brief set the info string of this object
* */
inline void set_info(const QString &text) {
@@ -95,7 +108,7 @@ public:
/**
* @brief add a value key pair to the values string
* */
- void add_value(const QString &key, const QString &value);
+ void add_value(const QString &key, const QString &value, const QString &comment);
/**
* @brief set the object label
@@ -151,6 +164,7 @@ public:
}
private:
+ QString properties_comment;
QString properties_label;
QString properties_name;