| | |
| | | |
| | | namespace QWK { |
| | | |
| | | AbstractWindowContext::~AbstractWindowContext() = default; |
| | | AbstractWindowContext::~AbstractWindowContext() { |
| | | delete m_delegate; |
| | | } |
| | | |
| | | void AbstractWindowContext::setupWindow(QWindow *window) { |
| | | Q_ASSERT(window); |
| | |
| | | } else { |
| | | m_hitTestVisibleRects.removeAll(rect); |
| | | } |
| | | hitTestVisibleShapeDirty = true; |
| | | return true; |
| | | } |
| | | |
| | |
| | | // ? |
| | | } |
| | | |
| | | QRegion AbstractWindowContext::hitTestShape() const { |
| | | if (hitTestVisibleShapeDirty) { |
| | | hitTestVisibleShape = {}; |
| | | for (const auto &rect : m_hitTestVisibleRects) { |
| | | hitTestVisibleShape += rect; |
| | | } |
| | | hitTestVisibleShapeDirty = false; |
| | | } |
| | | return hitTestVisibleShape; |
| | | } |
| | | |
| | | } |