fixed that qt tree widget child issue... now when you click a child item

it displays its info...:
merge-requests/1/head
_xeroxz 3 years ago
parent d7c4e19d6a
commit eb7e70b941

@ -197,6 +197,10 @@ void qvminspector_t::add_branch_children( qtree_widget_item_t *item, std::uintpt
1 /* zero based vreg... */
: 0u ) );
QVariant var;
var.setValue( virt_instr );
virt_instr_entry->setData( 3, Qt::UserRole, var );
if ( virt_instr->mnemonic_t == vm::handler::JMP && code_block->jcc.has_jcc )
{
virt_instr_entry->setText(
@ -240,7 +244,6 @@ void qvminspector_t::add_branch_children( qtree_widget_item_t *item, std::uintpt
item->addChild( virt_instr_entry );
add_branch_children( item, code_block->jcc.block_addr[ 0 ] );
}
item->addChild( virt_instr_entry );
}
}

Loading…
Cancel
Save