- fix: Restore main window and cpu info window will set wrong font in the cpu info.

This commit is contained in:
Roy Qu 2023-01-03 22:34:38 +08:00
parent 562293c05d
commit f179f45cd9
3 changed files with 3 additions and 6 deletions

View File

@ -11,6 +11,7 @@ Red Panda C++ Version 2.8
- enhancement: "Toggle readonly" in the Edit menu. - enhancement: "Toggle readonly" in the Edit menu.
- fix: Error When save project units' encoding settings. - fix: Error When save project units' encoding settings.
- enhancement: Waiting for syntax parsers to finish before saving files, to prevent data lost caused by syntax parsering crash. - enhancement: Waiting for syntax parsers to finish before saving files, to prevent data lost caused by syntax parsering crash.
- fix: Restore main window and cpu info window will set wrong font in the cpu info.
Red Panda C++ Version 2.7 Red Panda C++ Version 2.7

View File

@ -851,6 +851,8 @@ void MainWindow::applySettings()
qApp->setFont(font); qApp->setFont(font);
this->setFont(font); this->setFont(font);
for (QWidget* p:findChildren<QWidget*>()) { for (QWidget* p:findChildren<QWidget*>()) {
if (mCPUDialog && (p==mCPUDialog || mCPUDialog->isAncestorOf(p)))
continue;
p->setFont(font); p->setFont(font);
} }
if (pSettings->environment().useCustomIconSet()) { if (pSettings->environment().useCustomIconSet()) {
@ -1853,11 +1855,6 @@ void MainWindow::checkSyntaxInBack(Editor *e)
} }
} }
bool MainWindow::compiling()
{
return (mCompilerManager->backgroundSyntaxChecking()) || (mCompilerManager->compiling());
}
bool MainWindow::parsing() bool MainWindow::parsing()
{ {
if (mProject && mProject->cppParser() && mProject->cppParser()->parsing()) if (mProject && mProject->cppParser() && mProject->cppParser()->parsing())

View File

@ -131,7 +131,6 @@ public:
void updateDebuggerSettings(); void updateDebuggerSettings();
void updateActionIcons(); void updateActionIcons();
void checkSyntaxInBack(Editor* e); void checkSyntaxInBack(Editor* e);
bool compiling();
bool parsing(); bool parsing();
bool compile(bool rebuild=false, CppCompileType compileType=CppCompileType::Normal); bool compile(bool rebuild=false, CppCompileType compileType=CppCompileType::Normal);
void runExecutable( void runExecutable(