From 2dc7951f7ab1c63f3c1e9c23f826b11362c94cc9 Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <2546789017@qq.com> Date: Thu, 13 Oct 2022 11:38:20 +0800 Subject: [PATCH] fix unix build, issue found by ci Signed-off-by: Yuhang Zhao <2546789017@qq.com> --- src/core/sysapiloader.cpp | 2 +- src/core/utils_linux.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/sysapiloader.cpp b/src/core/sysapiloader.cpp index 8179a44..73993f1 100644 --- a/src/core/sysapiloader.cpp +++ b/src/core/sysapiloader.cpp @@ -60,7 +60,7 @@ QFunctionPointer SysApiLoader::resolve(const QString &library, const char *funct #ifdef Q_OS_WINDOWS return QSystemLibrary::resolve(library, function); #else - return QLibrary::resolve(library, function.constData()); + return QLibrary::resolve(library, function); #endif } diff --git a/src/core/utils_linux.cpp b/src/core/utils_linux.cpp index 0977dca..8408b37 100644 --- a/src/core/utils_linux.cpp +++ b/src/core/utils_linux.cpp @@ -401,6 +401,8 @@ void Utils::startSystemMove(QWindow *window, const QPoint &globalPos) #if (QT_VERSION < QT_VERSION_CHECK(6, 2, 0)) // Before we start the dragging we need to tell Qt that the mouse is released. sendMouseReleaseEvent(window, globalPos); +#else + Q_UNUSED(globalPos); #endif #if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)) window->startSystemMove(); @@ -422,6 +424,8 @@ void Utils::startSystemResize(QWindow *window, const Qt::Edges edges, const QPoi #if (QT_VERSION < QT_VERSION_CHECK(6, 2, 0)) // Before we start the resizing we need to tell Qt that the mouse is released. sendMouseReleaseEvent(window, globalPos); +#else + Q_UNUSED(globalPos); #endif #if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)) window->startSystemResize(edges);