Merge pull request #39 from gersure/master

fix compile
This commit is contained in:
Yuhang Zhao 2020-12-08 15:25:49 +08:00 committed by GitHub
commit 996160256e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ void FramelessWindowsManager::addWindow(const QWindow *window)
#ifdef Q_OS_WINDOWS
WinNativeEventFilter::addFramelessWindow(const_cast<QWindow *>(window));
#else
framelessHelper()->removeWindowFrame(window);
framelessHelper()->removeWindowFrame(const_cast<QWindow *>(window));
#endif
}