fix windows xp build (#379)

This commit is contained in:
Cyano Hao 2024-04-12 12:57:40 +08:00 committed by GitHub
parent e9f754382f
commit 6388e3ae23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -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();

View File

@ -21,6 +21,7 @@
#include <QJsonDocument>
#include <QJsonObject>
#include <QMessageBox>
#include <QUuid>
#include "settings.h"
#include "systemconsts.h"