summaryrefslogtreecommitdiffstats
path: root/src/declarative/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/util')
-rw-r--r--src/declarative/util/qmlstateoperations.cpp12
-rw-r--r--src/declarative/util/qmlstateoperations_p.h2
2 files changed, 14 insertions, 0 deletions
diff --git a/src/declarative/util/qmlstateoperations.cpp b/src/declarative/util/qmlstateoperations.cpp
index 1b786d2..2fca002 100644
--- a/src/declarative/util/qmlstateoperations.cpp
+++ b/src/declarative/util/qmlstateoperations.cpp
@@ -319,6 +319,13 @@ void QmlStateChangeScript::setScript(const QmlScriptString &s)
d->script = s;
}
+/*!
+ \qmlproperty script StateChangeScript::script
+ This property holds the name of the script. This name can be used by a
+ ScriptAction to target a specific script.
+
+ \sa ScriptAction::stateChangeScriptName
+*/
QString QmlStateChangeScript::name() const
{
Q_D(const QmlStateChangeScript);
@@ -351,6 +358,11 @@ QmlStateChangeScript::ActionList QmlStateChangeScript::actions()
return rv;
}
+QString QmlStateChangeScript::typeName() const
+{
+ return QLatin1String("StateChangeScript");
+}
+
/*!
\qmlclass AnchorChanges QmlAnchorChanges
\brief The AnchorChanges element allows you to change the anchors of an item in a state.
diff --git a/src/declarative/util/qmlstateoperations_p.h b/src/declarative/util/qmlstateoperations_p.h
index 2801f2b..861e4d0 100644
--- a/src/declarative/util/qmlstateoperations_p.h
+++ b/src/declarative/util/qmlstateoperations_p.h
@@ -96,6 +96,8 @@ public:
virtual ActionList actions();
+ virtual QString typeName() const;
+
QmlScriptString script() const;
void setScript(const QmlScriptString &);