MCPcopy Create free account
hub / github.com/apitrace/apitrace / isVariantStringArray

Function isVariantStringArray

gui/argumentseditor.cpp:40–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40static bool
41isVariantStringArray(const QVariant &var)
42{
43 if (var.isNull() || var.userType() != QMetaType::type("ApiArray"))
44 return false;
45
46 ApiArray array = var.value<ApiArray>();
47 QVector<QVariant> origValues = array.values();
48 if (origValues.isEmpty() ||
49 origValues.first().userType() != QVariant::String)
50 return false;
51
52 return true;
53}
54
55
56

Callers 2

valueForNameMethod · 0.85
arrayFromEditorMethod · 0.85

Calls 2

valuesMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected