Data Browser font settings now apply to the Edit Cell too

This should address #589
This commit is contained in:
Justin Clift
2016-07-27 17:23:53 +01:00
parent bddbc21336
commit 7eb733b31f

View File

@@ -35,6 +35,12 @@ EditDialog::~EditDialog()
void EditDialog::reset()
{
// Set the font for the text and hex editors
QFont editorFont(PreferencesDialog::getSettingsValue("databrowser", "font").toString());
editorFont.setPointSize(PreferencesDialog::getSettingsValue("databrowser", "fontsize").toInt());
ui->editorText->setFont(editorFont);
hexEdit->setFont(editorFont);
curRow = -1;
curCol = -1;
ui->editorText->clear();