Added 'asm.xrefs' option in preferences dialog (#1150)

This commit is contained in:
xarkes 2019-01-30 09:40:17 +01:00 committed by Itay Cohen
parent 339d1328c3
commit 60bb972cfd
3 changed files with 15 additions and 0 deletions

View File

@ -35,6 +35,7 @@ void AsmOptionsWidget::updateAsmOptionsFromVars()
qhelpers::setCheckedWithoutSignals(ui->esilCheckBox, Config()->getConfigBool("asm.esil"));
qhelpers::setCheckedWithoutSignals(ui->pseudoCheckBox, Config()->getConfigBool("asm.pseudo"));
qhelpers::setCheckedWithoutSignals(ui->offsetCheckBox, Config()->getConfigBool("asm.offset"));
qhelpers::setCheckedWithoutSignals(ui->xrefCheckBox, Config()->getConfigBool("asm.xrefs"));
qhelpers::setCheckedWithoutSignals(ui->describeCheckBox, Config()->getConfigBool("asm.describe"));
qhelpers::setCheckedWithoutSignals(ui->stackpointerCheckBox, Config()->getConfigBool("asm.stackptr"));
qhelpers::setCheckedWithoutSignals(ui->slowCheckBox, Config()->getConfigBool("asm.slow"));
@ -134,6 +135,12 @@ void AsmOptionsWidget::on_offsetCheckBox_toggled(bool checked)
triggerAsmOptionsChanged();
}
void AsmOptionsWidget::on_xrefCheckBox_toggled(bool checked)
{
Config()->setConfig("asm.xrefs", checked);
triggerAsmOptionsChanged();
}
void AsmOptionsWidget::on_describeCheckBox_toggled(bool checked)
{
Config()->setConfig("asm.describe", checked);

View File

@ -35,6 +35,7 @@ private slots:
void on_esilCheckBox_toggled(bool checked);
void on_pseudoCheckBox_toggled(bool checked);
void on_offsetCheckBox_toggled(bool checked);
void on_xrefCheckBox_toggled(bool checked);
void on_describeCheckBox_toggled(bool checked);
void on_stackpointerCheckBox_toggled(bool checked);
void on_slowCheckBox_toggled(bool checked);

View File

@ -45,6 +45,13 @@
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="xrefCheckBox">
<property name="text">
<string>Show xrefs (asm.xrefs)</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="describeCheckBox">
<property name="text">