From 61a6accc54e869bc25a51b06d151368cb6154a18 Mon Sep 17 00:00:00 2001 From: fourtf Date: Wed, 30 May 2018 18:30:26 +0200 Subject: [PATCH] fixed compilation on linux --- src/widgets/attachedwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/widgets/attachedwindow.cpp b/src/widgets/attachedwindow.cpp index 8738e4c26..36dfca81d 100644 --- a/src/widgets/attachedwindow.cpp +++ b/src/widgets/attachedwindow.cpp @@ -152,6 +152,7 @@ void AttachedWindow::attachToHwnd_(void *_attachedPtr) void AttachedWindow::updateWindowRect_(void *_attachedPtr) { +#ifdef USEWINSDK auto hwnd = HWND(this->winId()); auto attached = HWND(_attachedPtr); @@ -186,6 +187,7 @@ void AttachedWindow::updateWindowRect_(void *_attachedPtr) // ::MoveWindow(hwnd, rect.right - 360, rect.top + 82, 360 - 8, rect.bottom - // rect.top - 82 - 8, false); +#endif } // void AttachedWindow::nativeEvent(const QByteArray &eventType, void *message, long *result)