Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 6 files). Show all
Unified · Split
| @@ -430,12 +430,12 @@ bool WindowScriptingInterface::setDisplayTexture(const QString& name) { · 429 unmodified lines | |||
| 430 | return qApp->getActiveDisplayPlugin()->setDisplayTexture(name); // Plugins that don't know how, answer false. | 430 | return qApp->getActiveDisplayPlugin()->setDisplayTexture(name); // Plugins that don't know how, answer false. |
| 431 | } | 431 | } |
| 432 | 432 | ||
| 433 | void WindowScriptingInterface::takeSnapshot(bool notify, bool includeAnimated, float aspectRatio) { | 433 | void WindowScriptingInterface::takeSnapshot(bool notify, bool includeAnimated, float aspectRatio, const QString& filename) { |
| 434 | qApp->takeSnapshot(notify, includeAnimated, aspectRatio); | 434 | qApp->takeSnapshot(notify, includeAnimated, aspectRatio, filename); |
| 435 | } | 435 | } |
| 436 | 436 | ||
| 437 | void WindowScriptingInterface::takeSecondaryCameraSnapshot() { | 437 | void WindowScriptingInterface::takeSecondaryCameraSnapshot(const QString& filename) { |
| 438 | qApp->takeSecondaryCameraSnapshot(); | 438 | qApp->takeSecondaryCameraSnapshot(filename); |
| 439 | } | 439 | } |
| 440 | 440 | ||
| 441 | void WindowScriptingInterface::shareSnapshot(const QString& path, const QUrl& href) { | 441 | void WindowScriptingInterface::shareSnapshot(const QString& path, const QUrl& href) { |