mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 19:06:10 +00:00
Added 'asm.xrefs' option in preferences dialog (#1150)
This commit is contained in:
parent
339d1328c3
commit
60bb972cfd
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user