本文整理汇总了C++中QQmlValueTypeProvider类的典型用法代码示例。如果您正苦于以下问题:C++ QQmlValueTypeProvider类的具体用法?C++ QQmlValueTypeProvider怎么用?C++ QQmlValueTypeProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了QQmlValueTypeProvider类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: initValueType
bool QQmlValueTypeProvider::initValueType(int type, QVariant& dst)
{
QQmlValueTypeProvider *p = this;
do {
if (p->init(type, dst))
return true;
} while ((p = p->next));
return false;
}
示例2: while
const QMetaObject *QQmlValueTypeProvider::metaObjectForMetaType(int type)
{
QQmlValueTypeProvider *p = this;
do {
if (const QMetaObject *mo = p->getMetaObjectForMetaType(type))
return mo;
} while ((p = p->next));
return 0;
}
示例3: Q_ASSERT
bool QQmlValueTypeProvider::destroyValueType(int type, void *data, size_t n)
{
Q_ASSERT(data);
QQmlValueTypeProvider *p = this;
do {
if (p->destroy(type, data, n))
return true;
} while ((p = p->next));
return false;
}
示例4: while
QQmlValueType *QQmlValueTypeProvider::createValueType(int type)
{
QQmlValueType *value = 0;
QQmlValueTypeProvider *p = this;
do {
if (p->create(type, value))
return value;
} while ((p = p->next));
return 0;
}
示例5: createValueType
QVariant QQmlValueTypeProvider::createValueType(int type, int argc, const void *argv[])
{
QVariant v;
QQmlValueTypeProvider *p = this;
do {
if (p->create(type, argc, argv, &v))
return v;
} while ((p = p->next));
return QVariant();
}
示例6: Q_ASSERT
bool QQmlValueTypeProvider::writeValueType(int type, const void *src, QVariant& dst)
{
Q_ASSERT(src);
QQmlValueTypeProvider *p = this;
do {
if (p->write(type, src, dst))
return true;
} while ((p = p->next));
return false;
}
示例7: createVariantFromString
QVariant QQmlValueTypeProvider::createVariantFromString(const QString &s)
{
QVariant v;
QQmlValueTypeProvider *p = this;
do {
if (p->variantFromString(s, &v))
return v;
} while ((p = p->next));
// Return a variant containing the string itself
return QVariant(s);
}
示例8: createVariantFromJsObject
QVariant QQmlValueTypeProvider::createVariantFromJsObject(int type, QQmlV8Handle obj, QV8Engine *e, bool *ok)
{
QVariant v;
QQmlValueTypeProvider *p = this;
do {
if (p->variantFromJsObject(type, obj, e, &v)) {
if (ok) *ok = true;
return v;
}
} while ((p = p->next));
if (ok) *ok = false;
return QVariant();
}