forked from github_mirror/framelesshelper
Fix build with Qt6
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
parent
48253627a0
commit
a36e4fb81b
|
@ -99,7 +99,7 @@ void FramelessHelper::updateQtFrame(QWindow *window, const int titleBarHeight)
|
|||
marginsVar);
|
||||
}
|
||||
#else
|
||||
auto *platformWindow = dynamic_cast<QPlatformInterface::Private::QWindowsWindow *>(
|
||||
auto *platformWindow = qobject_cast<QNativeInterface::Private::QWindowsWindow *>(
|
||||
window->handle());
|
||||
if (platformWindow) {
|
||||
platformWindow->setCustomMargins(margins);
|
||||
|
|
|
@ -1951,7 +1951,7 @@ void WinNativeEventFilter::updateQtFrame(QWindow *window, const int titleBarHeig
|
|||
marginsVar);
|
||||
}
|
||||
#else
|
||||
auto *platformWindow = dynamic_cast<QPlatformInterface::Private::QWindowsWindow *>(
|
||||
auto *platformWindow = qobject_cast<QNativeInterface::Private::QWindowsWindow *>(
|
||||
window->handle());
|
||||
if (platformWindow) {
|
||||
platformWindow->setCustomMargins(margins);
|
||||
|
|
Loading…
Reference in New Issue