History

Added option to select snapshot filename in scripts.

NissimHadar committed 8 years ago

Commit cf870521 parent b658d4a6 files · +30 −20Browse files

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

Unified · Split

interface/src/scripting/WindowScriptingInterface.cpp+4−4
@@ -430,12 +430,12 @@ bool WindowScriptingInterface::setDisplayTexture(const QString& name) { · 429 unmodified lines
430430 return qApp->getActiveDisplayPlugin()->setDisplayTexture(name); // Plugins that don't know how, answer false.
431431 }
432432
433−void WindowScriptingInterface::takeSnapshot(bool notify, bool includeAnimated, float aspectRatio) {
434− qApp->takeSnapshot(notify, includeAnimated, aspectRatio);
433+void WindowScriptingInterface::takeSnapshot(bool notify, bool includeAnimated, float aspectRatio, const QString& filename) {
434+ qApp->takeSnapshot(notify, includeAnimated, aspectRatio, filename);
435435 }
436436
437−void WindowScriptingInterface::takeSecondaryCameraSnapshot() {
438− qApp->takeSecondaryCameraSnapshot();
437+void WindowScriptingInterface::takeSecondaryCameraSnapshot(const QString& filename) {
438+ qApp->takeSecondaryCameraSnapshot(filename);
439439 }
440440
441441 void WindowScriptingInterface::shareSnapshot(const QString& path, const QUrl& href) {