85void QWasmWindowTreeNode::onTopWindowChanged()
87 constexpr int zOrderForElementInFrontOfScreen = 3;
88 int z = zOrderForElementInFrontOfScreen;
89 std::for_each(m_childStack.
rbegin(), m_childStack.
rend(),
93void QWasmWindowTreeNode::setActiveChildNode(
QWasmWindow *activeChild)
98 if (
it == m_childStack.
end())
100 for (;
it != m_childStack.
end(); ++
it)
101 (*it)->onActivationChanged(*
it == m_activeChild);
void lower(QWasmWindow *window)
QWasmWindow * topWindow() const
const_reverse_iterator rbegin() const
void removeWindow(QWasmWindow *window)
const_reverse_iterator rend() const
void raise(QWasmWindow *window)
void pushWindow(QWasmWindow *window, PositionPreference position)
void windowPositionPreferenceChanged(QWasmWindow *window, PositionPreference position)
QWasmWindow * activeChild() const
virtual ~QWasmWindowTreeNode()
virtual void onParentChanged(QWasmWindowTreeNode *previous, QWasmWindowTreeNode *current, QWasmWindowStack::PositionPreference positionPreference)
virtual QWasmWindowTreeNode * parentNode()=0
virtual void onSubtreeChanged(QWasmWindowTreeNodeChangeType changeType, QWasmWindowTreeNode *parent, QWasmWindow *child)
virtual QWasmWindow * asWasmWindow()
virtual void setWindowZOrder(QWasmWindow *window, int z)
void onPositionPreferenceChanged(QWasmWindowStack::PositionPreference positionPreference)
void requestActivateWindow() override
Reimplement to let Qt be able to request activation/focus for a window.
QSet< QString >::iterator it
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat z
QWasmWindowTreeNodeChangeType
socketLayer bind(QHostAddress::Any, 4000)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent