Added logic to init IDA font checkbox to checked and keep unselectable. I am forcing the font in the Qt debugger assembly view to be a monospace Courier New. For now I plan to keep it this way.

This commit is contained in:
Matthew Budd 2020-09-18 06:18:09 -04:00
parent dad6ddfe64
commit 59e4ca1ff9
1 changed files with 7 additions and 3 deletions

View File

@ -457,9 +457,13 @@ ConsoleDebugger::ConsoleDebugger(QWidget *parent)
connect( debFileChkBox , SIGNAL(stateChanged(int)), this, SLOT(debFileAutoLoadCB(int)) );
button->setEnabled(false); // TODO
//autoOpenChkBox->setEnabled(false); // TODO
//debFileChkBox->setEnabled(false); // TODO
idaFontChkBox->setEnabled(false); // TODO
// IDA font is just a monospace font, we are forcing this anyway. It is just easier to read the assembly.
// If a different font is desired, my thought is to open a QFontDialog and let the user pick a new font,
// rather than use a checkbox that selects between two. But for the moment, I have more important things
// to do.
idaFontChkBox->setEnabled(false);
idaFontChkBox->setChecked(true);
setLayout( mainLayout );