summaryrefslogtreecommitdiffstats
path: root/utils/regtools
diff options
context:
space:
mode:
Diffstat (limited to 'utils/regtools')
-rw-r--r--utils/regtools/qeditor/utils.cpp6
-rw-r--r--utils/regtools/qeditor/utils.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/utils/regtools/qeditor/utils.cpp b/utils/regtools/qeditor/utils.cpp
index 2ee1bc6db5..95b5a80c64 100644
--- a/utils/regtools/qeditor/utils.cpp
+++ b/utils/regtools/qeditor/utils.cpp
@@ -364,6 +364,12 @@ SocFieldCachedValue::SocFieldCachedValue(const soc_reg_field_t& field, uint valu
* SocFieldCachedItemDelegate
*/
+SocFieldCachedItemDelegate::SocFieldCachedItemDelegate(QObject *parent)
+ :QStyledItemDelegate(parent)
+{
+ m_mode = DisplayValueAndName;
+}
+
QString SocFieldCachedItemDelegate::displayText(const QVariant& value, const QLocale& locale) const
{
// FIXME see QTBUG-30392
diff --git a/utils/regtools/qeditor/utils.h b/utils/regtools/qeditor/utils.h
index 078f3a85d7..f3dbd15a22 100644
--- a/utils/regtools/qeditor/utils.h
+++ b/utils/regtools/qeditor/utils.h
@@ -193,7 +193,7 @@ public:
DisplayValue, /* "value" */
};
- SocFieldCachedItemDelegate(QObject *parent = 0):QStyledItemDelegate(parent) {}
+ SocFieldCachedItemDelegate(QObject *parent = 0);
virtual QString displayText(const QVariant& value, const QLocale& locale) const;
void SetMode(DisplayMode mode) { m_mode = mode; }
DisplayMode GetMode() const { return m_mode; }