From 77b3e87b38260622b28fc2e2045a7412904e525d Mon Sep 17 00:00:00 2001 From: _xeroxz Date: Fri, 11 Jun 2021 17:58:28 -0700 Subject: [PATCH] preparing to add VTIL->lift specific block... --- src/qvminspector.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/qvminspector.cpp b/src/qvminspector.cpp index dd71fe1..336c355 100644 --- a/src/qvminspector.cpp +++ b/src/qvminspector.cpp @@ -101,11 +101,17 @@ void qvminspector_t::on_lift_block() ++code_block_num ) { auto new_button = new QPushButton(); - new_button->setText( QString( "block_%1" ).arg( code_block->vip_begin, 0u, 16 ) ); + new_button->setText( + QString( "block_%1" ) + .arg( ABS_TO_IMG( code_block->vip_begin, file_header->module_base, file_header->image_base ), 0u, + 16 ) ); + + new_button->setProperty( + "addr", ABS_TO_IMG( code_block->vip_begin, file_header->module_base, file_header->image_base ) ); + layout->addWidget( new_button ); } - lift_block_select->setBaseSize( { 200, 100 } ); lift_block_select->setWindowTitle( "Select A Block" ); lift_block_select->setLayout( layout ); lift_block_select->exec();