mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-15 02:11:22 +00:00
Use single QVariant tagging on RDTreeWidgetItem instead of setData
* It saves on allocating a vector of vectors and in most cases is all we need.
This commit is contained in:
1 parent
f65f5ea9da
commit
605fd4dcc5
10 files changed
+114
-101
No files matched your search
@@ -1976,7 +1976,7 @@ void VulkanPipelineStateViewer::resource_itemActivated(RDTreeWidgetItem *item, i
|
||||
if(stage == NULL)
|
||||
return;
|
||||
|
||||
QVariant tag = item->data(0, Qt::UserRole);
|
||||
QVariant tag = item->tag();
|
||||
|
||||
if(tag.canConvert<ResourceId>())
|
||||
{
|
||||
@@ -2062,7 +2062,7 @@ void VulkanPipelineStateViewer::ubo_itemActivated(RDTreeWidgetItem *item, int co
|
||||
if(stage == NULL)
|
||||
return;
|
||||
|
||||
QVariant tag = item->data(0, Qt::UserRole);
|
||||
QVariant tag = item->tag();
|
||||
|
||||
if(!tag.canConvert<CBufferTag>())
|
||||
return;
|
||||
@@ -2081,7 +2081,7 @@ void VulkanPipelineStateViewer::on_viAttrs_itemActivated(RDTreeWidgetItem *item,
|
||||
|
||||
void VulkanPipelineStateViewer::on_viBuffers_itemActivated(RDTreeWidgetItem *item, int column)
|
||||
{
|
||||
QVariant tag = item->data(0, Qt::UserRole);
|
||||
QVariant tag = item->tag();
|
||||
|
||||
if(tag.canConvert<VBIBTag>())
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user