- change: memory view and locals view use debug console's font settings

This commit is contained in:
royqh1979 2021-11-06 19:31:16 +08:00
parent f53f79559d
commit 2dc8896fbe
3 changed files with 9 additions and 5 deletions

View File

@ -9,6 +9,7 @@ Version 0.8.1 For Dev-C++ 7 Beta
- fix: if the proceeding line is a comment, current line should not recalculate indent
- fix: if the proceeding line ends with ':' in comments, current line should not indent
- enhancement: right click the problem set name label to rename it
- change: memory view and locals view use debug console's font settings
Version 0.8 For Dev-C++ 7 Beta
- fix: find in the current file is not correcly saved in the search history

View File

@ -1055,9 +1055,11 @@ void MainWindow::updateCompilerSet()
void MainWindow::updateDebuggerSettings()
{
ui->debugConsole->setFont(QFont(
pSettings->debugger().fontName(),
pSettings->debugger().fontSize()));
QFont font(pSettings->debugger().fontName(),
pSettings->debugger().fontSize());
ui->debugConsole->setFont(font);
ui->txtMemoryView->setFont(font);
ui->txtLocals->setFont(font);
}
void MainWindow::checkSyntaxInBack(Editor *e)

View File

@ -8,6 +8,7 @@
#include <QDebug>
#include <QMessageBox>
#include <QStandardPaths>
#include <QScreen>
const char ValueToChar[28] = {'0', '1', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h',
'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r',
@ -1142,7 +1143,7 @@ void Settings::Editor::doLoad()
mGutterLineNumbersStartZero = boolValue("gutter_line_numbers_start_zero",false);
mGutterUseCustomFont = boolValue("gutter_use_custom_font",false);
mGutterFontName = stringValue("gutter_font_name","consolas");
mGutterFontSize = intValue("gutter_font_size",QGuiApplication::font().pointSize());
mGutterFontSize = intValue("gutter_font_size",14);
mGutterFontOnlyMonospaced = boolValue("gutter_font_only_monospaced",true);
//copy
@ -2993,7 +2994,7 @@ void Settings::Debugger::doLoad()
mShowAnnotations = boolValue("show_annotations",false);
mFontName = stringValue("font_name","Consolas");
mOnlyShowMono = boolValue("only_show_mono",true);
mFontSize = intValue("font_size",10);
mFontSize = intValue("font_size",12);
mUseIntelStyle = boolValue("use_intel_style",true);
mBlendMode = boolValue("blend_mode",true);
mSkipSystemLibraries = boolValue("skip_system_lib",true);