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);
|
marginsVar);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
auto *platformWindow = dynamic_cast<QPlatformInterface::Private::QWindowsWindow *>(
|
auto *platformWindow = qobject_cast<QNativeInterface::Private::QWindowsWindow *>(
|
||||||
window->handle());
|
window->handle());
|
||||||
if (platformWindow) {
|
if (platformWindow) {
|
||||||
platformWindow->setCustomMargins(margins);
|
platformWindow->setCustomMargins(margins);
|
||||||
|
|
|
@ -1951,7 +1951,7 @@ void WinNativeEventFilter::updateQtFrame(QWindow *window, const int titleBarHeig
|
||||||
marginsVar);
|
marginsVar);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
auto *platformWindow = dynamic_cast<QPlatformInterface::Private::QWindowsWindow *>(
|
auto *platformWindow = qobject_cast<QNativeInterface::Private::QWindowsWindow *>(
|
||||||
window->handle());
|
window->handle());
|
||||||
if (platformWindow) {
|
if (platformWindow) {
|
||||||
platformWindow->setCustomMargins(margins);
|
platformWindow->setCustomMargins(margins);
|
||||||
|
|
Loading…
Reference in New Issue