Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 6 files). Show all
Unified · Split
| @@ -284,6 +284,11 @@ void WindowScriptingInterface::copyToClipboard(const QString& text) { · 283 unmodified lines | ||
| 284 | 284 | QApplication::clipboard()->setText(text); |
| 285 | 285 | } |
| 286 | 286 | |
| 287 | + | |
| 288 | +bool WindowScriptingInterface::setDisplayTexture(const QString& name) { | |
| 289 | + return qApp->getActiveDisplayPlugin()->setDisplayTexture(name); // Plugins that don't know how, answer false. | |
| 290 | +} | |
| 291 | + | |
| 287 | 292 | void WindowScriptingInterface::takeSnapshot(bool notify, bool includeAnimated, float aspectRatio) { |
| 288 | 293 | qApp->takeSnapshot(notify, includeAnimated, aspectRatio); |
| 289 | 294 | } |