MCPcopy Create free account
hub / github.com/MultiMC/Launcher / stringToIntList

Function stringToIntList

launcher/ui/MainWindow.cpp:1250–1259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1248}
1249
1250QList<int> stringToIntList(const QString &string)
1251{
1252 QStringList split = string.split(',', QString::SkipEmptyParts);
1253 QList<int> out;
1254 for (int i = 0; i < split.size(); ++i)
1255 {
1256 out.append(split.at(i).toInt());
1257 }
1258 return out;
1259}
1260QString intListToString(const QList<int> &list)
1261{
1262 QStringList slist;

Callers 1

notificationsChangedMethod · 0.85

Calls 3

appendMethod · 0.80
sizeMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected