MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / stringToIntList

Function stringToIntList

launcher/ui/MainWindow.cpp:797–809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

795}
796
797QList<int> stringToIntList(const QString& string)
798{
799#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
800 QStringList split = string.split(',', Qt::SkipEmptyParts);
801#else
802 QStringList split = string.split(',', QString::SkipEmptyParts);
803#endif
804 QList<int> out;
805 for (int i = 0; i < split.size(); ++i) {
806 out.append(split.at(i).toInt());
807 }
808 return out;
809}
810QString intListToString(const QList<int>& list)
811{
812 QStringList slist;

Callers

nothing calls this directly

Calls 3

appendMethod · 0.80
sizeMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected