diff options
| author | Mason Reed <mason@vector35.com> | 2025-04-14 01:43:28 -0400 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-04-14 03:20:51 -0400 |
| commit | bf64859f5aa261fa8db7bfdd9af4f67826ff4e5b (patch) | |
| tree | cc549d191d3b95fc48d9aa2d6316b70722a46759 /view/sharedcache/ui | |
| parent | ea47d4c85e78533ea7e88adc442159414feb3f7f (diff) | |
[SharedCache] Expose cache entry name in the API
Allows us to display the user friendly name of the cache entry in the triage view
Diffstat (limited to 'view/sharedcache/ui')
| -rw-r--r-- | view/sharedcache/ui/dsctriage.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/view/sharedcache/ui/dsctriage.cpp b/view/sharedcache/ui/dsctriage.cpp index 6b0ec0d5..e2cf8147 100644 --- a/view/sharedcache/ui/dsctriage.cpp +++ b/view/sharedcache/ui/dsctriage.cpp @@ -355,8 +355,8 @@ void DSCTriageView::initCacheInfoTables() auto cacheInfoSubwidget = new QWidget; auto mappingTable = new FilterableTableView(cacheInfoSubwidget); - m_mappingModel = new QStandardItemModel(0, 4, mappingTable); - m_mappingModel->setHorizontalHeaderLabels({"Address", "Size", "File Address", "File Path"}); + m_mappingModel = new QStandardItemModel(0, 5, mappingTable); + m_mappingModel->setHorizontalHeaderLabels({"Address", "Size", "File Address", "File Name", "File Path"}); // Apply custom column styling mappingTable->setItemDelegateForColumn(0, new AddressColorDelegate(mappingTable)); @@ -366,7 +366,8 @@ void DSCTriageView::initCacheInfoTables() mappingTable->horizontalHeader()->setSectionResizeMode(0, QHeaderView::Fixed); mappingTable->horizontalHeader()->setSectionResizeMode(1, QHeaderView::Fixed); mappingTable->horizontalHeader()->setSectionResizeMode(2, QHeaderView::ResizeToContents); - mappingTable->horizontalHeader()->setSectionResizeMode(3, QHeaderView::Stretch); + mappingTable->horizontalHeader()->setSectionResizeMode(3, QHeaderView::ResizeToContents); + mappingTable->horizontalHeader()->setSectionResizeMode(4, QHeaderView::Stretch); mappingTable->setEditTriggers(QAbstractItemView::NoEditTriggers); @@ -527,6 +528,7 @@ void DSCTriageView::RefreshData() new QStandardItem(QString("0x%1").arg(mapping.vmAddress, 0, 16)), new QStandardItem(QString("0x%1").arg(mapping.size, 0, 16)), new QStandardItem(QString("0x%1").arg(mapping.fileOffset, 0, 16)), + new QStandardItem(QString::fromStdString(entry.name)), new QStandardItem(QString::fromStdString(entry.path)) }); } |
