Qt 4.8
Static Public Functions | List of all members
QDeclarativeUtilModule Class Reference

#include <qdeclarativeutilmodule_p.h>

Static Public Functions

static void defineModule ()
 
static void defineModuleCompat ()
 

Detailed Description

Definition at line 54 of file qdeclarativeutilmodule_p.h.

Functions

◆ defineModule()

void QDeclarativeUtilModule::defineModule ( )
static

Definition at line 77 of file qdeclarativeutilmodule.cpp.

Referenced by QDeclarativeEnginePrivate::QDeclarativeEnginePrivate().

78 {
80  qmlRegisterUncreatableType<QDeclarativeApplication>("QtQuick",1,1,"Application", QDeclarativeApplication::tr("Application is an abstract class"));
81 
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");
103 
104  qmlRegisterType<QDeclarativeAnchors>();
105  qmlRegisterType<QDeclarativeStateOperation>();
106  qmlRegisterType<QDeclarativeAnchorSet>();
107 
108  qmlRegisterUncreatableType<QDeclarativeAbstractAnimation>("QtQuick",1,0,"Animation",QDeclarativeAbstractAnimation::tr("Animation is an abstract class"));
109  }
110 
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
119  qmlRegisterTypeNotAvailable("QtQuick",1,0,"XmlListModel",
120  qApp->translate("QDeclarativeXmlListModel","Qt was built without support for xmlpatterns"));
121  qmlRegisterTypeNotAvailable("QtQuick",1,0,"XmlRole",
122  qApp->translate("QDeclarativeXmlListModel","Qt was built without support for xmlpatterns"));
123 #else
124  qmlRegisterType<QDeclarativeXmlListModel>("QtQuick",1,0,"XmlListModel");
125  qmlRegisterType<QDeclarativeXmlListModelRole>("QtQuick",1,0,"XmlRole");
126 #endif
127  qmlRegisterCustomType<QDeclarativeConnections>("QtQuick",1,0,"Connections", new QDeclarativeConnectionsParser);
128  qmlRegisterCustomType<QDeclarativePropertyChanges>("QtQuick",1,0,"PropertyChanges", new QDeclarativePropertyChangesParser);
129  qmlRegisterCustomType<QDeclarativeListModel>("QtQuick",1,0,"ListModel", new QDeclarativeListModelParser);
130 }
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)
#define qApp
static Type type()
Returns the type of application (Tty , GuiClient, or GuiServer).

◆ defineModuleCompat()

void QDeclarativeUtilModule::defineModuleCompat ( )
static

Definition at line 132 of file qdeclarativeutilmodule.cpp.

Referenced by QDeclarativeMetaType::isModule().

133 {
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");
157 
158  qmlRegisterUncreatableType<QDeclarativeAbstractAnimation>("Qt",4,7,"Animation",QDeclarativeAbstractAnimation::tr("Animation is an abstract class"));
159  }
160 
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");
168 
169 #ifdef QT_NO_XMLPATTERNS
170  qmlRegisterTypeNotAvailable("Qt",4,7,"XmlListModel",
171  qApp->translate("QDeclarativeXmlListModel","Qt was built without support for xmlpatterns"));
172  qmlRegisterTypeNotAvailable("Qt",4,7,"XmlRole",
173  qApp->translate("QDeclarativeXmlListModel","Qt was built without support for xmlpatterns"));
174 #else
175  qmlRegisterType<QDeclarativeXmlListModel>("Qt",4,7,"XmlListModel");
176  qmlRegisterType<QDeclarativeXmlListModelRole>("Qt",4,7,"XmlRole");
177 #endif
178  qmlRegisterCustomType<QDeclarativeConnections>("Qt", 4, 7, "Connections", new QDeclarativeConnectionsParser);
179  qmlRegisterCustomType<QDeclarativePropertyChanges>("Qt", 4, 7, "PropertyChanges", new QDeclarativePropertyChangesParser);
180  qmlRegisterCustomType<QDeclarativeListModel>("Qt", 4,7, "ListModel", new QDeclarativeListModelParser);
181 #endif
182 }
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)
#define qApp
static Type type()
Returns the type of application (Tty , GuiClient, or GuiServer).

The documentation for this class was generated from the following files: