qeditor: fix uninitialised variable
Change-Id: I12a785e554b7d598b91e526af1b7ebc1fc44f610
This commit is contained in:
parent
f01fb3ca59
commit
3fdb86ea41
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Reference in a new issue