| | |
| | | |
| | | namespace QWK { |
| | | |
| | | AbstractWindowContext::AbstractWindowContext(const QObject *host, const WindowItemDelegate *delegate) |
| | | AbstractWindowContext::AbstractWindowContext(QObject *host, WindowItemDelegate *delegate) |
| | | : m_host(host), m_delegate(delegate), m_windowHandle(delegate->hostWindow(host)) { |
| | | } |
| | | |
| | | AbstractWindowContext::~AbstractWindowContext() { |
| | | if (m_delegate) { |
| | | delete m_delegate; |
| | | } |
| | | } |
| | | AbstractWindowContext::~AbstractWindowContext() = default; |
| | | |
| | | bool AbstractWindowContext::setHitTestVisible(const QObject *obj, bool visible) { |
| | | Q_ASSERT(obj); |