forked from len0rd/rockbox
qeditor: use delegate to show bit range information
Change-Id: I314365c3a2cb9d230c412f24d2a8034a12c43444
This commit is contained in:
parent
983c8084c9
commit
2c832968c9
2 changed files with 25 additions and 8 deletions
|
|
@ -168,6 +168,20 @@ protected:
|
|||
|
||||
Q_DECLARE_METATYPE(SocFieldCachedValue)
|
||||
|
||||
class SocFieldBitRange
|
||||
{
|
||||
public:
|
||||
SocFieldBitRange():m_first_bit(0),m_last_bit(0) {}
|
||||
SocFieldBitRange(const soc_reg_field_t& field)
|
||||
:m_first_bit(field.first_bit), m_last_bit(field.last_bit) {}
|
||||
unsigned GetFirstBit() const { return m_first_bit; }
|
||||
unsigned GetLastBit() const { return m_last_bit; }
|
||||
protected:
|
||||
unsigned m_first_bit, m_last_bit;
|
||||
};
|
||||
|
||||
Q_DECLARE_METATYPE(SocFieldBitRange)
|
||||
|
||||
class SocFieldCachedItemDelegate : public QStyledItemDelegate
|
||||
{
|
||||
public:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue