From 6388e3ae23c9d043048f7805aa2e1002144aedcc Mon Sep 17 00:00:00 2001 From: Cyano Hao Date: Fri, 12 Apr 2024 12:57:40 +0800 Subject: [PATCH] fix windows xp build (#379) --- RedPandaIDE/editor.cpp | 2 +- RedPandaIDE/toolsmanager.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RedPandaIDE/editor.cpp b/RedPandaIDE/editor.cpp index 8b80354b..ab73f887 100644 --- a/RedPandaIDE/editor.cpp +++ b/RedPandaIDE/editor.cpp @@ -4552,7 +4552,7 @@ QSize Editor::calcCompletionPopupSize() { #if QT_VERSION_MAJOR==5 && QT_VERSION_MINOR < 15 int screenHeight = qApp->primaryScreen()->size().height(); - int screenWidht = qApp->primaryScreen()->size().width; + int screenWidth = qApp->primaryScreen()->size().width(); #else int screenHeight = screen()->size().height(); int screenWidth = screen()->size().width(); diff --git a/RedPandaIDE/toolsmanager.cpp b/RedPandaIDE/toolsmanager.cpp index 36f07623..4e1af97b 100644 --- a/RedPandaIDE/toolsmanager.cpp +++ b/RedPandaIDE/toolsmanager.cpp @@ -21,6 +21,7 @@ #include #include #include +#include #include "settings.h" #include "systemconsts.h"