MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / print

Method print

src/jsplugin/JSRepl.cpp:215–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215void JSGlobalFunction::print(QJSValue args)
216{
217 if (args.isArray()) {
218 const int length = args.property("length").toInt();
219 if (length == 1) {
220 Q_EMIT printRequested(args.property(0));
221 return;
222 }
223
224 QJSValueList jvlist;
225 for (int i = 0; i < length; ++i)
226 jvlist.append(args.property(i));
227
228 Q_EMIT printRequested(jvlist);
229 }
230}
231
232void JSGlobalFunction::help()
233{

Callers 1

Calls 1

isArrayMethod · 0.80

Tested by

no test coverage detected