MCPcopy Create free account
hub / github.com/SaschaWillems/VulkanCapsViewer / arrayToStr

Function arrayToStr

vulkanCapsViewer.cpp:124–133  ·  view source on GitHub ↗

Convert a list variant into an imploded string

Source from the content-addressed store, hash-verified

122
123// Convert a list variant into an imploded string
124QString arrayToStr(QVariant value) {
125 QList<QVariant> list = value.toList();
126 QString imploded;
127 for (auto i = 0; i < list.size(); i++) {
128 imploded += list[i].toString();
129 if (i < list.size() - 1)
130 imploded += ", ";
131 }
132 return "[" + imploded + "]";
133}
134
135#if defined(VK_USE_PLATFORM_IOS_MVK) || defined(VK_USE_PLATFORM_ANDROID_KHR)
136void setTouchProps(QWidget *widget) {

Callers 2

addVariantListItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected