Showing the changes to interface/src/scripting/DesktopScriptingInterface.cpp (1 of 6 files). Show all
Unified · Split
| @@ -31,6 +31,14 @@ int DesktopScriptingInterface::getHeight() { · 30 unmodified lines | ||
| 31 | 31 | return size.height(); |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | +QVariantMap DesktopScriptingInterface::getPresentationMode() { | |
| 35 | + static QVariantMap presentationModes { | |
| 36 | + { "VIRTUAL", Virtual }, | |
| 37 | + { "NATIVE", Native } | |
| 38 | + }; | |
| 39 | + return presentationModes; | |
| 40 | +} | |
| 41 | + | |
| 34 | 42 | void DesktopScriptingInterface::setHUDAlpha(float alpha) { |
| 35 | 43 | qApp->getApplicationCompositor().setAlpha(alpha); |
| 36 | 44 | } |