Qt 4.8
Functions
qdeclarativevaluetype.cpp File Reference
#include "private/qdeclarativevaluetype_p.h"
#include "private/qdeclarativemetatype_p.h"
#include "private/qfont_p.h"
#include <QtGui/qapplication.h>
#include <QtCore/qdebug.h>

Go to the source code of this file.

Functions

template<typename T >
int qmlRegisterValueTypeEnums (const char *uri, int versionMajor, int versionMinor, const char *qmlName)
 

Function Documentation

◆ qmlRegisterValueTypeEnums()

template<typename T >
int qmlRegisterValueTypeEnums ( const char *  uri,
int  versionMajor,
int  versionMinor,
const char *  qmlName 
)

Definition at line 53 of file qdeclarativevaluetype.cpp.

54 {
55  QByteArray name(T::staticMetaObject.className());
56 
57  QByteArray pointerName(name + '*');
58 
60  0,
61 
62  qRegisterMetaType<T *>(pointerName.constData()), 0, 0, 0,
63 
64  QString(),
65 
66  uri, versionMajor, versionMinor, qmlName, &T::staticMetaObject,
67 
68  0, 0,
69 
70  0, 0, 0,
71 
72  0, 0,
73 
74  0,
75  0
76  };
77 
79 }
int type
Definition: qmetatype.cpp:239
The QByteArray class provides an array of bytes.
Definition: qbytearray.h:135
The QString class provides a Unicode character string.
Definition: qstring.h:83
const char * className
Definition: qwizard.cpp:137
const char * name
int Q_DECLARATIVE_EXPORT qmlregister(RegistrationType, void *)