11
12
13
14
17
18
19
27
28
29QString PropertyNode::roleName(FunctionRole role)
32 case FunctionRole::Getter:
34 case FunctionRole::Setter:
36 case FunctionRole::Resetter:
38 case FunctionRole::Notifier:
40 case FunctionRole::Bindable:
49
50
51
52
53
54
55
56
57
60 for (qsizetype i{0}; i < (qsizetype)FunctionRole::NumFunctionRoles; ++i) {
61 if (m_functions[i].isEmpty())
62 m_functions[i] = baseProperty->m_functions[i];
65 m_stored = baseProperty->m_stored;
67 m_writable = baseProperty->m_writable;
69 m_user = baseProperty->m_user;
70 m_overrides = baseProperty;
74
75
76
77
80 if (m_propertyType != PropertyType::StandardProperty || m_type.startsWith(QLatin1String(
"const ")))
84 if (m_type.contains(QLatin1Char(
'*')) || m_type.contains(QLatin1Char(
'&'))) {
86 return m_type +
" const";
89
90
91
92 return "const " + m_type;
100
101
104 for (
const auto &getter : getters()) {
105 if (getter->name() == name)
108 for (
const auto &setter : setters()) {
109 if (setter->name() == name)
112 for (
const auto &resetter : resetters()) {
113 if (resetter->name() == name)
116 for (
const auto ¬ifier : notifiers()) {
117 if (notifier->name() == name)
124
125
128 for (qsizetype i{0}; i < (qsizetype)FunctionRole::NumFunctionRoles; i++) {
129 if (m_functions[i].contains(
const_cast<FunctionNode *>(functionNode)))
This node is used to represent any kind of function being documented.
LinkType
An unsigned char value that probably should be moved out of the Node base class.
This class describes one instance of using the Q_PROPERTY macro.
bool hasAccessFunction(const QString &name) const
Returns true if this property has an access function named name.
const NodeList & resetters() const
const NodeList & setters() const
FunctionRole role(const FunctionNode *functionNode) const
Returns the role of functionNode for this property.
void setOverriddenFrom(const PropertyNode *baseProperty)
Sets this property's {overridden from} property to baseProperty, which indicates that this property o...
QString qualifiedDataType() const
Returns a string containing the data type qualified with "const" either prepended to the data type or...
Combined button and popup list for selecting options.