Make WidgetResizeHandler::handleWindowsNativeEvent() more generic

Decoupled it from the KDDW specific parts. Can now be used
by non FloatingWindow widgets
This commit is contained in:
Sergio Martins
2021-02-16 20:28:59 +00:00
parent cd3a1c869e
commit e6135f49fb
2 changed files with 50 additions and 31 deletions

View File

@@ -73,7 +73,9 @@ public:
static void setupWindow(QWindow *window);
#ifdef Q_OS_WIN
static bool handleWindowsNativeEvent(FloatingWindow *w, const QByteArray &eventType, void *message, Qt5Qt6Compat::qintptr *result);
static bool handleWindowsNativeEvent(QWindow *w, MSG *msg, Qt5Qt6Compat::qintptr *result, QRect htCaptionRect = {});
static bool handleWindowsNativeEvent(FloatingWindow *w, const QByteArray &eventType,
void *message, Qt5Qt6Compat::qintptr *result);
#endif
static bool s_disableAllHandlers;
protected: