4#ifndef QQMLJSSCOPESBYID_P_H
5#define QQMLJSSCOPESBYID_P_H
20#include <QtCore/qhash.h>
21#include <QtCore/qstring.h>
44 QQmlJSScopesByIdOptions options =
Default)
const
47 for (
auto it = m_scopesById.begin(),
end = m_scopesById.end();
it !=
end; ++
it) {
48 if (*
it ==
scope && isComponentVisible(componentRoot(*
it), referrerRoot, options))
60 QQmlJSScopesByIdOptions options =
Default)
const
63 const auto range = m_scopesById.equal_range(
id);
69 if (isComponentVisible(componentRoot(*
it), referrerRoot, options))
79 m_scopesById.insert(
id,
scope);
82 void clear() { m_scopesById.clear(); }
108 QQmlJSScopesByIdOptions options)
const
111 return observed == observer;
114 if (
scope == observed)
121 QMultiHash<QString, QQmlJSScope::ConstPtr> m_scopesById;
122 bool m_componentsAreBound =
false;
123 bool m_signaturesAreEnforced =
true;
124 bool m_valueTypesAreAddressable =
false;
bool isComponentRootElement() const
QQmlJSScope::Ptr parentScope()
bool isInlineComponent() const
QDeferredSharedPointer< const QQmlJSScope > ConstPtr
bool signaturesAreEnforced() const
bool componentsAreBound() const
bool existsAnywhereInDocument(const QString &id) const
void setValueTypesAreAddressable(bool addressable)
void setComponentsAreBound(bool bound)
QString id(const QQmlJSScope::ConstPtr &scope, const QQmlJSScope::ConstPtr &referrer, QQmlJSScopesByIdOptions options=Default) const
void setSignaturesAreEnforced(bool enforced)
bool valueTypesAreAddressable() const
QQmlJSScope::ConstPtr scope(const QString &id, const QQmlJSScope::ConstPtr &referrer, QQmlJSScopesByIdOptions options=Default) const
void insert(const QString &id, const QQmlJSScope::ConstPtr &scope)
\macro QT_RESTRICTED_CAST_FROM_ASCII
QSet< QString >::iterator it
Combined button and popup list for selecting options.
#define Q_DECLARE_FLAGS(Flags, Enum)
@ AssumeComponentsAreBound