Lines Matching refs:Variant
96 Variant = 0,
113 const char *map[] = { "Variant", "Number", "Boolean", "String", "Date",
812 JSValue convertQVariantToValue(ExecState* exec, PassRefPtr<RootObject> root, const QVariant& variant)
815 // An empty QString variant is also null
816 QMetaType::Type type = (QMetaType::Type) variant.userType();
818 qConvDebug() << "convertQVariantToValue: metatype:" << type << ", isnull: " << variant.isNull();
819 if (variant.isNull() &&
830 return jsBoolean(variant.toBool());
842 return jsNumber(variant.toDouble());
845 QRegExp re = variant.value<QRegExp>();
866 date = variant.value<QDate>();
868 time = variant.value<QTime>();
870 QDateTime dt = variant.value<QDateTime>().toLocalTime();
890 QByteArray qtByteArray = variant.value<QByteArray>();
897 QObject* obj = variant.value<QObject*>();
903 if (QtPixmapInstance::canHandle(static_cast<QMetaType::Type>(variant.type())))
904 return QtPixmapInstance::createPixmapRuntimeObject(exec, root, variant);
914 return toJS(exec, toJSDOMGlobalObject(document, exec), QtWebElementRuntime::get(variant.value<QWebElement>()));
925 return toJS(exec, toJSDOMGlobalObject(document, exec), QtDRTNodeRuntime::get(variant.value<QDRTNode>()));
931 QVariantMap map = variant.value<QVariantMap>();
949 QVariantList vl = variant.toList();
953 QStringList sl = variant.value<QStringList>();
956 QObjectList ol= variant.value<QObjectList>();
959 QList<int> il= variant.value<QList<int> >();
964 QVariant real = variant.value<QVariant>();
965 qConvDebug() << "real variant is:" << real;
969 qConvDebug() << "fallback path for" << variant << variant.userType();
971 QString string = variant.toString();
1023 Variant,
1042 { return (m_kind == Variant); }
1058 static QtMethodMatchType variant()
1059 { return QtMethodMatchType(Variant); }
1090 else if (m_kind == Variant)
1194 types.append(QtMethodMatchType::variant());
1208 types.append(QtMethodMatchType::variant());
1220 types.append(QtMethodMatchType::variant());
1232 types.append(QtMethodMatchType::variant());