Skip to content

Commit

Permalink
Installed monospaced font for hex editor
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbigmdm committed May 15, 2024
1 parent 55136a9 commit 062b2f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions IMSProg_programmer/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ MainWindow::MainWindow(QWidget *parent) :
chipData.resize(256);
chipData.fill(char(0xff));
ch341a_spi_shutdown();
QFont heFont;
heFont = QFont("Monospace", 10);
hexEdit = new QHexEdit(ui->frame);
hexEdit->setGeometry(0,0,ui->frame->width(),ui->frame->height());
hexEdit->setData(chipData);
Expand All @@ -110,6 +112,7 @@ MainWindow::MainWindow(QWidget *parent) :
hexEdit->setAsciiFontColor(defaultTextColor);
hexEdit->setAddressFontColor(defaultTextColor);
hexEdit->setHexFontColor(defaultTextColor);
hexEdit->setFont(heFont);
QStringList commandLineParams = QCoreApplication::arguments();
QString commandLineFileName ="";
if (commandLineParams.count() > 1)
Expand Down

0 comments on commit 062b2f0

Please sign in to comment.