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

Function stringToIntList

launcher/ui/MainWindow.cpp:1232–1241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1230}
1231
1232QList<int> stringToIntList(const QString &string)
1233{
1234 QStringList split = string.split(',', QString::SkipEmptyParts);
1235 QList<int> out;
1236 for (int i = 0; i < split.size(); ++i)
1237 {
1238 out.append(split.at(i).toInt());
1239 }
1240 return out;
1241}
1242QString intListToString(const QList<int> &list)
1243{
1244 QStringList slist;

Callers 1

notificationsChangedMethod · 0.85

Calls 3

appendMethod · 0.80
sizeMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected