diff options
author | Andy Shaw <andy.shaw@qt.io> | 2019-02-22 08:19:01 +0100 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2019-04-01 12:22:54 +0000 |
commit | a49c5648919a0bd2d8206ae7fb5033c9f84e0a86 (patch) | |
tree | 25b7c3d198b7752cbac3e33fdfe4ae8fbb5e046e /src/gui/kernel/qwindow_p.h | |
parent | e104c1972877c1732aa3c58f52bb766a0bfa29e7 (diff) |
Implement support for WA_MacNoClickThrough
This is done by adding a QWindowPrivate::allowsClickThrough() function,
so this could easily be adapted later on if desired for other
platforms.
Fixes: QTBUG-41126
Change-Id: I1157e5e7e7667ff11d1a5d21b3ce8c4b13202272
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/gui/kernel/qwindow_p.h')
-rw-r--r-- | src/gui/kernel/qwindow_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qwindow_p.h b/src/gui/kernel/qwindow_p.h index eb0b606598..cc1cc24525 100644 --- a/src/gui/kernel/qwindow_p.h +++ b/src/gui/kernel/qwindow_p.h @@ -164,6 +164,8 @@ public: static Qt::WindowState effectiveState(Qt::WindowStates); + virtual bool allowClickThrough(const QPoint &) const { return true; } + QWindow::SurfaceType surfaceType; Qt::WindowFlags windowFlags; QWindow *parentWindow; |