10 static const Platform qtDetectedPlatform = ([]() {
12 emscripten::val rawPlatform = emscripten::val::global(
"navigator")[
"platform"];
14 if (rawPlatform.call<
bool>(
"includes", emscripten::val(
"Mac")))
16 if (rawPlatform.call<
bool>(
"includes", emscripten::val(
"iPhone"))
17 || rawPlatform.call<
bool>(
"includes", emscripten::val(
"iPad")))
19 if (rawPlatform.call<
bool>(
"includes", emscripten::val(
"Win32")))
21 if (rawPlatform.call<
bool>(
"includes", emscripten::val(
"Linux"))) {
22 emscripten::val uAgent = emscripten::val::global(
"navigator")[
"userAgent"];
23 if (uAgent.call<
bool>(
"includes", emscripten::val(
"Android")))
29 return qtDetectedPlatform;
Combined button and popup list for selecting options.