MCPcopy Create free account
hub / github.com/QuasarApp/CQtDeployer / platformToString

Method platformToString

src/Deploy/src/deploycore.cpp:945–975  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

943}
944
945QString DeployCore::platformToString(Platform platform) {
946 int platformVal = 1;
947 QString result;
948
949 QHash<int, QString> platformsMap = {
950 {Platform::Win32, "win_x86"},
951 {Platform::Win64, "win_x86_64"},
952 {Platform::Win_ARM_32, "win_arm"},
953 {Platform::Win_ARM_64, "win_arm64"},
954 {Platform::Unix_x86_32, "linux_x86"},
955 {Platform::Unix_x86_64, "linux_x86_64"},
956 {Platform::Unix_ARM_32, "linux_ARM"},
957 {Platform::Unix_ARM_64, "linux_ARM64"},
958 {Platform::WebGl, "WebGl"},
959 {Platform::WebRemote, "WebRemote"},
960 {Platform::GeneralFile, "GeneralFile"}
961 };
962
963 while (platformVal <= Platform::GeneralFile) {
964
965 if (platformVal & platform) {
966 result.push_back((result.size()? ", " : "") + platformsMap.value(platformVal, " Unknown"));
967 }
968
969 platformVal = platformVal << 1;
970
971
972 }
973
974 return result;
975}
976
977Platform DeployCore::getPlatformFromString(const QString &platformName) {
978

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected