History

introduce scriptable presentationMode instead of automatic mode switching windows

Thijs Wenker committed 8 years ago

Commit 73909831 parent c6e264e6 files · +218 −138Browse files

Showing the changes to interface/src/scripting/DesktopScriptingInterface.cpp (1 of 6 files). Show all

Unified · Split

interface/src/scripting/DesktopScriptingInterface.cpp+8−0
@@ -31,6 +31,14 @@ int DesktopScriptingInterface::getHeight() { · 30 unmodified lines
3131 return size.height();
3232 }
3333
34+QVariantMap DesktopScriptingInterface::getPresentationMode() {
35+ static QVariantMap presentationModes {
36+ { "VIRTUAL", Virtual },
37+ { "NATIVE", Native }
38+ };
39+ return presentationModes;
40+}
41+
3442 void DesktopScriptingInterface::setHUDAlpha(float alpha) {
3543 qApp->getApplicationCompositor().setAlpha(alpha);
3644 }