MCPcopy Create free account
hub / github.com/KDE/kdevelop / toVariantList

Function toVariantList

kdevplatform/language/codegen/codedescription.h:240–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238
239namespace CodeDescription {
240template <class T> QVariant toVariantList(const QVector<T>& list)
241{
242 QVariantList ret;
243 ret.reserve(list.size());
244 for (const T& t : list) {
245 ret << QVariant::fromValue<T>(t);
246 }
247
248 return QVariant::fromValue(ret);
249}
250}
251}
252

Callers 5

setDescriptionMethod · 0.85
addVariablesFunction · 0.85
extraVariablesMethod · 0.85
toVariantListMethod · 0.85

Calls 2

reserveMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected