Lines Matching refs:action

98     for (const QQuickSimpleAction &action : qAsConst(completeListCopy))  in complete()  local
99 action.property().write(action.value()); in complete()
111 for (const QQuickStateAction &action : qAsConst(bindingsList)) { in applyBindings() local
112 if (action.toBinding) { in applyBindings()
113 QQmlPropertyPrivate::setBinding(action.toBinding.data()); in applyBindings()
114 } else if (action.event) { in applyBindings()
115 if (action.reverseEvent) in applyBindings()
116 action.event->reverse(); in applyBindings()
118 action.event->execute(); in applyBindings()
140 for (const QQuickStateAction &action : qAsConst(applyList)) { in transition() local
141 if (action.toBinding) in transition()
142 d->bindingsList << action; in transition()
143 if (action.fromBinding) in transition()
144 QQmlPropertyPrivate::removeBinding(action.property); // Disable current binding in transition()
145 if (action.event && action.event->changesBindings()) { //### assume isReversable()? in transition()
146 d->bindingsList << action; in transition()
147 action.event->clearBindings(); in transition()
162 for (const QQuickStateAction &action : qAsConst(applyList)) { in transition() local
163 if (action.toBinding) { in transition()
164 …QQmlPropertyPrivate::setBinding(action.toBinding.data(), QQmlPropertyPrivate::None, QQmlPropertyDa… in transition()
165 } else if (!action.event) { in transition()
166 …QQmlPropertyPrivate::write(action.property, action.toValue, QQmlPropertyData::BypassInterceptor | … in transition()
167 } else if (action.event->isReversable()) { in transition()
168 if (action.reverseEvent) in transition()
169 action.event->reverse(); in transition()
171 action.event->execute(); in transition()
187 for (const QQuickStateAction &action : qAsConst(applyList)) { in transition() local
188 if (action.event) { in transition()
189 if (action.event->isReversable()) { in transition()
190 action.event->clearBindings(); in transition()
191 action.event->rewind(); in transition()
192 action.event->clearBindings(); //### shouldn't be needed in transition()
197 if (action.toBinding) in transition()
198 …QQmlPropertyPrivate::removeBinding(action.property); // Make sure this is disabled during the tran… in transition()
200 …QQmlPropertyPrivate::write(action.property, action.fromValue, QQmlPropertyData::BypassInterceptor … in transition()
213 auto isHandledInTransition = [this, touched](const QQuickStateAction &action) { in transition() argument
214 if (action.event) { in transition()
215 return action.actionDone; in transition()
217 if (touched.contains(action.property)) { in transition()
218 if (action.toValue != action.fromValue) in transition()
219 d->completeList << QQuickSimpleAction(action, QQuickSimpleAction::EndState); in transition()
233 for (const QQuickStateAction &action : qAsConst(applyList)) { in transition() local
234 if (action.event && !action.event->changesBindings()) { in transition()
235 if (action.event->isReversable() && action.reverseEvent) in transition()
236 action.event->reverse(); in transition()
238 action.event->execute(); in transition()
239 } else if (!action.event && !action.toBinding) { in transition()
240 action.property.write(action.toValue); in transition()
245 for (const QQuickStateAction &action : qAsConst(applyList)) { in transition() local
246 if (action.event) in transition()
247 qWarning() << " No transition for event:" << action.event->type(); in transition()
249 qWarning() << " No transition for:" << action.property.object() in transition()
250 << action.property.name() << "From:" << action.fromValue in transition()
251 << "To:" << action.toValue; in transition()
264 for (const QQuickStateAction &action : qAsConst(d->bindingsList)) { in cancel() local
265 if (action.toBinding && action.deletableToBinding) { in cancel()
266 QQmlPropertyPrivate::removeBinding(action.property); in cancel()
267 } else if (action.event) { in cancel()