21 previousParent->m_childStack.removeWindow(
window);
27 currentParent->m_childStack.pushWindow(
window, positionPreference);
46 if (!showWithoutActivating.
isValid() || !showWithoutActivating.
toBool())
89void QWasmWindowTreeNode::onTopWindowChanged()
91 constexpr int zOrderForElementInFrontOfScreen = 3;
92 int z = zOrderForElementInFrontOfScreen;
93 std::for_each(m_childStack.
rbegin(), m_childStack.
rend(),
97void QWasmWindowTreeNode::setActiveChildNode(
QWasmWindow *activeChild)
101 auto it = m_childStack.
begin();
102 if (
it == m_childStack.
end())
104 for (;
it != m_childStack.
end(); ++
it)
105 (*it)->onActivationChanged(*
it == m_activeChild);
QVariant property(const char *name) const
Returns the value of the object's name property.
bool isValid() const
Returns true if the storage type of this variant is not QMetaType::UnknownType; otherwise returns fal...
bool toBool() const
Returns the variant as a bool if the variant has userType() Bool.
void lower(QWasmWindow *window)
QWasmWindow * topWindow() const
const_reverse_iterator rbegin() const
const_reverse_iterator rend() const
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)