diff options
Diffstat (limited to 'utils/regtools/qeditor/utils.h')
-rw-r--r-- | utils/regtools/qeditor/utils.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/utils/regtools/qeditor/utils.h b/utils/regtools/qeditor/utils.h index 529e40bde1..13b9e896e9 100644 --- a/utils/regtools/qeditor/utils.h +++ b/utils/regtools/qeditor/utils.h | |||
@@ -129,7 +129,7 @@ public: | |||
129 | 129 | ||
130 | uint field() const; | 130 | uint field() const; |
131 | void setField(uint field); | 131 | void setField(uint field); |
132 | void SetRegField(const soc_reg_field_t& field) { m_reg_field = field; } | 132 | void SetRegField(const soc_reg_field_t& field); |
133 | 133 | ||
134 | protected: | 134 | protected: |
135 | SocFieldValidator *m_validator; | 135 | SocFieldValidator *m_validator; |
@@ -154,14 +154,16 @@ class SocFieldCachedValue | |||
154 | { | 154 | { |
155 | public: | 155 | public: |
156 | SocFieldCachedValue():m_value(0) {} | 156 | SocFieldCachedValue():m_value(0) {} |
157 | SocFieldCachedValue(const soc_reg_field_t& field, uint value) | 157 | SocFieldCachedValue(const soc_reg_field_t& field, uint value); |
158 | :m_field(field), m_value(value) {} | ||
159 | virtual ~SocFieldCachedValue() {} | 158 | virtual ~SocFieldCachedValue() {} |
160 | const soc_reg_field_t& field() const { return m_field; } | 159 | const soc_reg_field_t& field() const { return m_field; } |
161 | uint value() const { return m_value; } | 160 | uint value() const { return m_value; } |
161 | /* return empty string if there no match */ | ||
162 | QString value_name() const { return m_name; } | ||
162 | protected: | 163 | protected: |
163 | soc_reg_field_t m_field; | 164 | soc_reg_field_t m_field; |
164 | uint m_value; | 165 | uint m_value; |
166 | QString m_name; | ||
165 | }; | 167 | }; |
166 | 168 | ||
167 | Q_DECLARE_METATYPE(SocFieldCachedValue) | 169 | Q_DECLARE_METATYPE(SocFieldCachedValue) |