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
31 return size.height();31 return size.height();
32}32}
33 33
34QVariantMap DesktopScriptingInterface::getPresentationMode() {
35 static QVariantMap presentationModes {
36 { "VIRTUAL", Virtual },
37 { "NATIVE", Native }
38 };
39 return presentationModes;
40}
41
34void DesktopScriptingInterface::setHUDAlpha(float alpha) {42void DesktopScriptingInterface::setHUDAlpha(float alpha) {
35 qApp->getApplicationCompositor().setAlpha(alpha);43 qApp->getApplicationCompositor().setAlpha(alpha);
36}44}