42 #include "private/qdeclarativeutilmodule_p.h" 43 #include "private/qdeclarativeanimation_p.h" 44 #include "private/qdeclarativeanimation_p_p.h" 45 #include "private/qdeclarativebehavior_p.h" 46 #include "private/qdeclarativebind_p.h" 47 #include "private/qdeclarativeconnections_p.h" 48 #include "private/qdeclarativesmoothedanimation_p.h" 49 #include "private/qdeclarativefontloader_p.h" 50 #include "private/qdeclarativelistaccessor_p.h" 51 #include "private/qdeclarativelistmodel_p.h" 52 #include "private/qdeclarativenullablevalue_p_p.h" 53 #include "private/qdeclarativeopenmetaobject_p.h" 54 #include "private/qdeclarativepackage_p.h" 55 #include "private/qdeclarativepixmapcache_p.h" 56 #include "private/qdeclarativepropertychanges_p.h" 58 #include "private/qdeclarativespringanimation_p.h" 59 #include "private/qdeclarativestategroup_p.h" 60 #include "private/qdeclarativestateoperations_p.h" 61 #include "private/qdeclarativestate_p.h" 62 #include "private/qdeclarativestate_p_p.h" 63 #include "private/qdeclarativestyledtext_p.h" 64 #include "private/qdeclarativesystempalette_p.h" 65 #include "private/qdeclarativetimeline_p_p.h" 66 #include "private/qdeclarativetimer_p.h" 67 #include "private/qdeclarativetransitionmanager_p_p.h" 68 #include "private/qdeclarativetransition_p.h" 69 #include "private/qdeclarativeapplication_p.h" 72 #include "private/qdeclarativetypenotavailable_p.h" 73 #ifndef QT_NO_XMLPATTERNS 74 #include "private/qdeclarativexmllistmodel_p.h" 80 qmlRegisterUncreatableType<QDeclarativeApplication>(
"QtQuick",1,1,
"Application",
QDeclarativeApplication::tr(
"Application is an abstract class"));
82 qmlRegisterType<QDeclarativeAnchorAnimation>(
"QtQuick",1,0,
"AnchorAnimation");
83 qmlRegisterType<QDeclarativeAnchorChanges>(
"QtQuick",1,0,
"AnchorChanges");
84 qmlRegisterType<QDeclarativeBehavior>(
"QtQuick",1,0,
"Behavior");
85 qmlRegisterType<QDeclarativeColorAnimation>(
"QtQuick",1,0,
"ColorAnimation");
86 qmlRegisterType<QDeclarativeSmoothedAnimation>(
"QtQuick",1,0,
"SmoothedAnimation");
87 qmlRegisterType<QDeclarativeFontLoader>(
"QtQuick",1,0,
"FontLoader");
88 qmlRegisterType<QDeclarativeNumberAnimation>(
"QtQuick",1,0,
"NumberAnimation");
89 qmlRegisterType<QDeclarativePackage>(
"QtQuick",1,0,
"Package");
90 qmlRegisterType<QDeclarativeParallelAnimation>(
"QtQuick",1,0,
"ParallelAnimation");
91 qmlRegisterType<QDeclarativeParentAnimation>(
"QtQuick",1,0,
"ParentAnimation");
92 qmlRegisterType<QDeclarativeParentChange>(
"QtQuick",1,0,
"ParentChange");
93 qmlRegisterType<QDeclarativePauseAnimation>(
"QtQuick",1,0,
"PauseAnimation");
94 qmlRegisterType<QDeclarativePropertyAction>(
"QtQuick",1,0,
"PropertyAction");
95 qmlRegisterType<QDeclarativePropertyAnimation>(
"QtQuick",1,0,
"PropertyAnimation");
96 qmlRegisterType<QDeclarativeRotationAnimation>(
"QtQuick",1,0,
"RotationAnimation");
97 qmlRegisterType<QDeclarativeScriptAction>(
"QtQuick",1,0,
"ScriptAction");
98 qmlRegisterType<QDeclarativeSequentialAnimation>(
"QtQuick",1,0,
"SequentialAnimation");
99 qmlRegisterType<QDeclarativeSpringAnimation>(
"QtQuick",1,0,
"SpringAnimation");
100 qmlRegisterType<QDeclarativeSystemPalette>(
"QtQuick",1,0,
"SystemPalette");
101 qmlRegisterType<QDeclarativeTransition>(
"QtQuick",1,0,
"Transition");
102 qmlRegisterType<QDeclarativeVector3dAnimation>(
"QtQuick",1,0,
"Vector3dAnimation");
104 qmlRegisterType<QDeclarativeAnchors>();
105 qmlRegisterType<QDeclarativeStateOperation>();
106 qmlRegisterType<QDeclarativeAnchorSet>();
111 qmlRegisterType<QDeclarativeBind>(
"QtQuick",1,0,
"Binding");
112 qmlRegisterType<QDeclarativeConnections>(
"QtQuick",1,0,
"Connections");
113 qmlRegisterType<QDeclarativeTimer>(
"QtQuick",1,0,
"Timer");
114 qmlRegisterType<QDeclarativeStateGroup>(
"QtQuick",1,0,
"StateGroup");
115 qmlRegisterType<QDeclarativeState>(
"QtQuick",1,0,
"State");
116 qmlRegisterType<QDeclarativeStateChangeScript>(
"QtQuick",1,0,
"StateChangeScript");
117 qmlRegisterType<QDeclarativeListElement>(
"QtQuick",1,0,
"ListElement");
118 #ifdef QT_NO_XMLPATTERNS 120 qApp->translate(
"QDeclarativeXmlListModel",
"Qt was built without support for xmlpatterns"));
122 qApp->translate(
"QDeclarativeXmlListModel",
"Qt was built without support for xmlpatterns"));
124 qmlRegisterType<QDeclarativeXmlListModel>(
"QtQuick",1,0,
"XmlListModel");
125 qmlRegisterType<QDeclarativeXmlListModelRole>(
"QtQuick",1,0,
"XmlRole");
134 #ifndef QT_NO_IMPORT_QT47_QML 136 qmlRegisterType<QDeclarativeAnchorAnimation>(
"Qt",4,7,
"AnchorAnimation");
137 qmlRegisterType<QDeclarativeAnchorChanges>(
"Qt",4,7,
"AnchorChanges");
138 qmlRegisterType<QDeclarativeBehavior>(
"Qt",4,7,
"Behavior");
139 qmlRegisterType<QDeclarativeColorAnimation>(
"Qt",4,7,
"ColorAnimation");
140 qmlRegisterType<QDeclarativeSmoothedAnimation>(
"Qt",4,7,
"SmoothedAnimation");
141 qmlRegisterType<QDeclarativeFontLoader>(
"Qt",4,7,
"FontLoader");
142 qmlRegisterType<QDeclarativeNumberAnimation>(
"Qt",4,7,
"NumberAnimation");
143 qmlRegisterType<QDeclarativePackage>(
"Qt",4,7,
"Package");
144 qmlRegisterType<QDeclarativeParallelAnimation>(
"Qt",4,7,
"ParallelAnimation");
145 qmlRegisterType<QDeclarativeParentAnimation>(
"Qt",4,7,
"ParentAnimation");
146 qmlRegisterType<QDeclarativeParentChange>(
"Qt",4,7,
"ParentChange");
147 qmlRegisterType<QDeclarativePauseAnimation>(
"Qt",4,7,
"PauseAnimation");
148 qmlRegisterType<QDeclarativePropertyAction>(
"Qt",4,7,
"PropertyAction");
149 qmlRegisterType<QDeclarativePropertyAnimation>(
"Qt",4,7,
"PropertyAnimation");
150 qmlRegisterType<QDeclarativeRotationAnimation>(
"Qt",4,7,
"RotationAnimation");
151 qmlRegisterType<QDeclarativeScriptAction>(
"Qt",4,7,
"ScriptAction");
152 qmlRegisterType<QDeclarativeSequentialAnimation>(
"Qt",4,7,
"SequentialAnimation");
153 qmlRegisterType<QDeclarativeSpringAnimation>(
"Qt",4,7,
"SpringAnimation");
154 qmlRegisterType<QDeclarativeSystemPalette>(
"Qt",4,7,
"SystemPalette");
155 qmlRegisterType<QDeclarativeTransition>(
"Qt",4,7,
"Transition");
156 qmlRegisterType<QDeclarativeVector3dAnimation>(
"Qt",4,7,
"Vector3dAnimation");
161 qmlRegisterType<QDeclarativeBind>(
"Qt",4,7,
"Binding");
162 qmlRegisterType<QDeclarativeConnections>(
"Qt",4,7,
"Connections");
163 qmlRegisterType<QDeclarativeTimer>(
"Qt",4,7,
"Timer");
164 qmlRegisterType<QDeclarativeStateGroup>(
"Qt",4,7,
"StateGroup");
165 qmlRegisterType<QDeclarativeState>(
"Qt",4,7,
"State");
166 qmlRegisterType<QDeclarativeStateChangeScript>(
"Qt",4,7,
"StateChangeScript");
167 qmlRegisterType<QDeclarativeListElement>(
"Qt",4,7,
"ListElement");
169 #ifdef QT_NO_XMLPATTERNS 171 qApp->translate(
"QDeclarativeXmlListModel",
"Qt was built without support for xmlpatterns"));
173 qApp->translate(
"QDeclarativeXmlListModel",
"Qt was built without support for xmlpatterns"));
175 qmlRegisterType<QDeclarativeXmlListModel>(
"Qt",4,7,
"XmlListModel");
176 qmlRegisterType<QDeclarativeXmlListModelRole>(
"Qt",4,7,
"XmlRole");
static void defineModuleCompat()
int Q_AUTOTEST_EXPORT qmlRegisterTypeNotAvailable(const char *uri, int versionMajor, int versionMinor, const char *qmlName, const QString &message)
static QString tr(const char *sourceText, const char *comment=0, int n=-1)
static void defineModule()
static Type type()
Returns the type of application (Tty , GuiClient, or GuiServer).