equal
deleted
inserted
replaced
203 public: |
203 public: |
204 QMetaPropertyBuilderPrivate |
204 QMetaPropertyBuilderPrivate |
205 (const QByteArray& _name, const QByteArray& _type, int notifierIdx=-1) |
205 (const QByteArray& _name, const QByteArray& _type, int notifierIdx=-1) |
206 : name(_name), |
206 : name(_name), |
207 type(QMetaObject::normalizedType(_type.constData())), |
207 type(QMetaObject::normalizedType(_type.constData())), |
208 flags(Readable | Writable), notifySignal(-1) |
208 flags(Readable | Writable | Scriptable), notifySignal(-1) |
209 { |
209 { |
210 if (notifierIdx >= 0) { |
210 if (notifierIdx >= 0) { |
211 flags |= Notify; |
211 flags |= Notify; |
212 notifySignal = notifierIdx; |
212 notifySignal = notifierIdx; |
213 } |
213 } |
1140 { |
1140 { |
1141 // If the parameter name list is specified, then concatenate them. |
1141 // If the parameter name list is specified, then concatenate them. |
1142 if (!parameterNames.isEmpty()) { |
1142 if (!parameterNames.isEmpty()) { |
1143 QByteArray names; |
1143 QByteArray names; |
1144 bool first = true; |
1144 bool first = true; |
1145 foreach (QByteArray name, parameterNames) { |
1145 foreach (const QByteArray &name, parameterNames) { |
1146 if (first) |
1146 if (first) |
1147 first = false; |
1147 first = false; |
1148 else |
1148 else |
1149 names += (char)','; |
1149 names += (char)','; |
1150 names += name; |
1150 names += name; |
2185 return false; |
2185 return false; |
2186 } |
2186 } |
2187 |
2187 |
2188 /*! |
2188 /*! |
2189 Returns true if the property is scriptable; otherwise returns false. |
2189 Returns true if the property is scriptable; otherwise returns false. |
2190 This default value is false. |
2190 This default value is true. |
2191 |
2191 |
2192 \sa setScriptable(), isDesignable(), isStored() |
2192 \sa setScriptable(), isDesignable(), isStored() |
2193 */ |
2193 */ |
2194 bool QMetaPropertyBuilder::isScriptable() const |
2194 bool QMetaPropertyBuilder::isScriptable() const |
2195 { |
2195 { |