From 59e4ca1ff920fa65a67291c5ccb25bc75b23a73a Mon Sep 17 00:00:00 2001 From: Matthew Budd Date: Fri, 18 Sep 2020 06:18:09 -0400 Subject: [PATCH] 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. --- src/drivers/Qt/ConsoleDebugger.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/drivers/Qt/ConsoleDebugger.cpp b/src/drivers/Qt/ConsoleDebugger.cpp index 81204d9a..223f79cb 100644 --- a/src/drivers/Qt/ConsoleDebugger.cpp +++ b/src/drivers/Qt/ConsoleDebugger.cpp @@ -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 );