| | |
| | | void AbstractWindowContext::virtual_hook(int id, void *data) { |
| | | switch (id) { |
| | | case CentralizeHook: { |
| | | if (!m_windowHandle) |
| | | if (!m_windowId) |
| | | return; |
| | | |
| | | QRect windowGeometry = m_delegate->getGeometry(m_host); |
| | |
| | | } |
| | | |
| | | case RaiseWindowHook: { |
| | | if (!m_windowHandle) |
| | | if (!m_windowId) |
| | | return; |
| | | |
| | | m_delegate->setWindowVisible(m_host, true); |
| | |
| | | m_windowAttributes.insert(it.key(), it.value()); |
| | | } |
| | | } |
| | | |
| | | // Send to shared dispatchers |
| | | if (oldWinId != m_windowId) { |
| | | QEvent e(QEvent::WinIdChange); |
| | | sharedDispatch(m_host, &e); |
| | | } |
| | | } |
| | | |
| | | QVariant AbstractWindowContext::windowAttribute(const QString &key) const { |