graph_widget_address_view_fix

This commit is contained in:
m-ismail-ramzan 2023-03-30 07:39:02 +05:30
parent cf7626ef4e
commit 78d8066d89
3 changed files with 5 additions and 6 deletions

View File

@ -136,7 +136,7 @@ static const QHash<QString, QVariant> asmOptions = { { "asm.esil", false },
{ "asm.reloff.flags", false },
{ "esil.breakoninvalid", true },
{ "dbg.trace_continue", true },
{ "ag.offset", false } };
{ "asm.offset", true } };
Configuration::Configuration() : QObject(), nativePalette(qApp->palette())
{

View File

@ -79,7 +79,7 @@ void AsmOptionsWidget::updateAsmOptionsFromVars()
ui->cmtcolSpinBox->setEnabled(cmtRightEnabled);
bool offsetsEnabled =
Config()->getConfigBool("asm.offset") || Config()->getConfigBool("ag.offset");
Config()->getConfigBool("asm.offset") || Config()->getConfigBool("graph.offset");
ui->relOffsetLabel->setEnabled(offsetsEnabled);
ui->relOffsetCheckBox->setEnabled(offsetsEnabled);
ui->relOffFlagsCheckBox->setEnabled(Config()->getConfigBool("asm.offset")
@ -288,8 +288,8 @@ void AsmOptionsWidget::asmComboBoxChanged(int index)
void AsmOptionsWidget::offsetCheckBoxToggled(bool checked)
{
ui->relOffsetLabel->setEnabled(checked || Config()->getConfigBool("ag.offset"));
ui->relOffsetCheckBox->setEnabled(checked || Config()->getConfigBool("ag.offset"));
ui->relOffsetLabel->setEnabled(checked || Config()->getConfigBool("asm.offset"));
ui->relOffsetCheckBox->setEnabled(checked || Config()->getConfigBool("asm.offset"));
ui->relOffFlagsCheckBox->setEnabled(checked && Config()->getConfigBool("asm.reloff"));
}

View File

@ -42,7 +42,7 @@ GraphOptionsWidget::~GraphOptionsWidget() {}
void GraphOptionsWidget::updateOptionsFromVars()
{
qhelpers::setCheckedWithoutSignals(ui->graphOffsetCheckBox,
Config()->getConfigBool("ag.offset"));
Config()->getConfigBool("asm.offset"));
ui->maxColsSpinBox->blockSignals(true);
ui->maxColsSpinBox->setValue(Config()->getGraphBlockMaxChars());
ui->maxColsSpinBox->blockSignals(false);
@ -80,7 +80,6 @@ void GraphOptionsWidget::on_minFontSizeSpinBox_valueChanged(int value)
void GraphOptionsWidget::on_graphOffsetCheckBox_toggled(bool checked)
{
Config()->setConfig("ag.offset", checked);
Config()->setConfig("asm.offset", checked);
Core()->triggerAsmOptionsChanged();
triggerOptionsChanged();