summaryrefslogtreecommitdiffstats
path: root/src/corelib/statemachine/qstate_p.h
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2012-07-02 23:06:26 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-10 06:20:15 +0200
commit5db78a077b8f070b6e28431de6c3add6660ad1be (patch)
tree00c64d63b4cfd47aff3d7599f0f05154a9e21147 /src/corelib/statemachine/qstate_p.h
parentba87568655dad3e830e692109b5e571ae78b71a0 (diff)
statemachine: Let QPropertyAssignment do the property write
This allows QPropertyAssignment to be smarter (caching the property index, for example). Change-Id: Ib6d302f46f784219b6b3f07784e5c31dd7288c6e Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Diffstat (limited to 'src/corelib/statemachine/qstate_p.h')
-rw-r--r--src/corelib/statemachine/qstate_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/statemachine/qstate_p.h b/src/corelib/statemachine/qstate_p.h
index 9558bd88a5..5999aca140 100644
--- a/src/corelib/statemachine/qstate_p.h
+++ b/src/corelib/statemachine/qstate_p.h
@@ -72,6 +72,7 @@ struct QPropertyAssignment
{}
bool objectDeleted() const { return !object; }
+ void write() const { Q_ASSERT(object != 0); object->setProperty(propertyName, value); }
QPointer<QObject> object;
QByteArray propertyName;