mirror of
https://github.com/isledecomp/SIEdit.git
synced 2024-11-27 01:25:45 -05:00
app: add size column to chunk model
This commit is contained in:
parent
6cf3d80047
commit
dbb6fc763b
2 changed files with 5 additions and 0 deletions
|
@ -33,6 +33,8 @@ QVariant ChunkModel::data(const QModelIndex &index, int role) const
|
|||
return QString::fromLatin1(reinterpret_cast<const char *>(&c->GetType()), sizeof(uint32_t));
|
||||
case kColOffset:
|
||||
return QStringLiteral("0x%1").arg(QString::number(c->GetOffset(), 16).toUpper());
|
||||
case kColSize:
|
||||
return QStringLiteral("0x%1").arg(QString::number(c->GetSize(), 16).toUpper());
|
||||
case kColDesc:
|
||||
return QString::fromUtf8(RIFF::GetTypeDescription(static_cast<RIFF::Type>(c->GetType())));
|
||||
case kColObjectID:
|
||||
|
@ -57,6 +59,8 @@ QVariant ChunkModel::headerData(int section, Qt::Orientation orientation, int ro
|
|||
return tr("Type");
|
||||
case kColOffset:
|
||||
return tr("Offset");
|
||||
case kColSize:
|
||||
return tr("Size");
|
||||
case kColDesc:
|
||||
return tr("Description");
|
||||
case kColObjectID:
|
||||
|
|
|
@ -13,6 +13,7 @@ public:
|
|||
{
|
||||
kColType,
|
||||
kColOffset,
|
||||
kColSize,
|
||||
kColDesc,
|
||||
kColObjectID,
|
||||
|
||||
|
|
Loading…
Reference in a new issue