mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 19:36:11 +00:00
graph_widget_address_view_fix
This commit is contained in:
parent
cf7626ef4e
commit
78d8066d89
@ -136,7 +136,7 @@ static const QHash<QString, QVariant> asmOptions = { { "asm.esil", false },
|
|||||||
{ "asm.reloff.flags", false },
|
{ "asm.reloff.flags", false },
|
||||||
{ "esil.breakoninvalid", true },
|
{ "esil.breakoninvalid", true },
|
||||||
{ "dbg.trace_continue", true },
|
{ "dbg.trace_continue", true },
|
||||||
{ "ag.offset", false } };
|
{ "asm.offset", true } };
|
||||||
|
|
||||||
Configuration::Configuration() : QObject(), nativePalette(qApp->palette())
|
Configuration::Configuration() : QObject(), nativePalette(qApp->palette())
|
||||||
{
|
{
|
||||||
|
@ -79,7 +79,7 @@ void AsmOptionsWidget::updateAsmOptionsFromVars()
|
|||||||
ui->cmtcolSpinBox->setEnabled(cmtRightEnabled);
|
ui->cmtcolSpinBox->setEnabled(cmtRightEnabled);
|
||||||
|
|
||||||
bool offsetsEnabled =
|
bool offsetsEnabled =
|
||||||
Config()->getConfigBool("asm.offset") || Config()->getConfigBool("ag.offset");
|
Config()->getConfigBool("asm.offset") || Config()->getConfigBool("graph.offset");
|
||||||
ui->relOffsetLabel->setEnabled(offsetsEnabled);
|
ui->relOffsetLabel->setEnabled(offsetsEnabled);
|
||||||
ui->relOffsetCheckBox->setEnabled(offsetsEnabled);
|
ui->relOffsetCheckBox->setEnabled(offsetsEnabled);
|
||||||
ui->relOffFlagsCheckBox->setEnabled(Config()->getConfigBool("asm.offset")
|
ui->relOffFlagsCheckBox->setEnabled(Config()->getConfigBool("asm.offset")
|
||||||
@ -288,8 +288,8 @@ void AsmOptionsWidget::asmComboBoxChanged(int index)
|
|||||||
|
|
||||||
void AsmOptionsWidget::offsetCheckBoxToggled(bool checked)
|
void AsmOptionsWidget::offsetCheckBoxToggled(bool checked)
|
||||||
{
|
{
|
||||||
ui->relOffsetLabel->setEnabled(checked || Config()->getConfigBool("ag.offset"));
|
ui->relOffsetLabel->setEnabled(checked || Config()->getConfigBool("asm.offset"));
|
||||||
ui->relOffsetCheckBox->setEnabled(checked || Config()->getConfigBool("ag.offset"));
|
ui->relOffsetCheckBox->setEnabled(checked || Config()->getConfigBool("asm.offset"));
|
||||||
ui->relOffFlagsCheckBox->setEnabled(checked && Config()->getConfigBool("asm.reloff"));
|
ui->relOffFlagsCheckBox->setEnabled(checked && Config()->getConfigBool("asm.reloff"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ GraphOptionsWidget::~GraphOptionsWidget() {}
|
|||||||
void GraphOptionsWidget::updateOptionsFromVars()
|
void GraphOptionsWidget::updateOptionsFromVars()
|
||||||
{
|
{
|
||||||
qhelpers::setCheckedWithoutSignals(ui->graphOffsetCheckBox,
|
qhelpers::setCheckedWithoutSignals(ui->graphOffsetCheckBox,
|
||||||
Config()->getConfigBool("ag.offset"));
|
Config()->getConfigBool("asm.offset"));
|
||||||
ui->maxColsSpinBox->blockSignals(true);
|
ui->maxColsSpinBox->blockSignals(true);
|
||||||
ui->maxColsSpinBox->setValue(Config()->getGraphBlockMaxChars());
|
ui->maxColsSpinBox->setValue(Config()->getGraphBlockMaxChars());
|
||||||
ui->maxColsSpinBox->blockSignals(false);
|
ui->maxColsSpinBox->blockSignals(false);
|
||||||
@ -80,7 +80,6 @@ void GraphOptionsWidget::on_minFontSizeSpinBox_valueChanged(int value)
|
|||||||
|
|
||||||
void GraphOptionsWidget::on_graphOffsetCheckBox_toggled(bool checked)
|
void GraphOptionsWidget::on_graphOffsetCheckBox_toggled(bool checked)
|
||||||
{
|
{
|
||||||
Config()->setConfig("ag.offset", checked);
|
|
||||||
Config()->setConfig("asm.offset", checked);
|
Config()->setConfig("asm.offset", checked);
|
||||||
Core()->triggerAsmOptionsChanged();
|
Core()->triggerAsmOptionsChanged();
|
||||||
triggerOptionsChanged();
|
triggerOptionsChanged();
|
||||||
|
Loading…
Reference in New Issue
Block a user