forked from github_mirror/framelesshelper
fix unix build, issue found by ci
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
parent
c3824ecef0
commit
2dc7951f7a
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue