MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / stringToIntList

Function stringToIntList

launcher/ui/MainWindow.cpp:1551–1564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1549}
1550
1551QList<int> stringToIntList(const QString &string)
1552{
1553#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
1554 QStringList split = string.split(',', Qt::SkipEmptyParts);
1555#else
1556 QStringList split = string.split(',', QString::SkipEmptyParts);
1557#endif
1558 QList<int> out;
1559 for (int i = 0; i < split.size(); ++i)
1560 {
1561 out.append(split.at(i).toInt());
1562 }
1563 return out;
1564}
1565QString intListToString(const QList<int> &list)
1566{
1567 QStringList slist;

Callers

nothing calls this directly

Calls 3

appendMethod · 0.80
sizeMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected